В
Size: a a a
LA
CM
const servlet = (qs = '') => new Promise((resolve) => $.get(`myservlet${qs}`, {}, resolve, 'json'))
const chain = (data) => servlet(`?chain=${data.expected}`)
const tap = (effect) => (data) => {
effect(data)
return data
}
const show = (data) => console.info(data)
const logger = ({ steps }) => console.log(`Number of steps advanced is ${steps}`)
servlet()
.then(tap(show))
.then(chain)
.then(tap(show))
.then(chain)
.then(tap(show))
.then(chain)
.then(tap(show))
.then(chain)
.then(tap(logger))
.then(tap(show))
CM
AD
AD
AD
LA
AD
LA
AD
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
CM
AD
CM
LA