shell-mirror 1.5.140 → 1.5.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth.js +8 -2
- package/mac-agent/.env.example +9 -0
- package/mac-agent/agent.js +46 -18
- package/package.json +4 -1
- package/public/app/config.js +12 -0
- package/public/app/dashboard.html +1 -0
- package/public/app/dashboard.js +10 -4
- package/public/app/terminal.html +38 -10
- package/public/app/terminal.js +210 -59
- package/mac-agent/.env +0 -9
- package/mac-agent/agent-debug.log +0 -143
- package/mac-agent/authorized-users.json +0 -35
- package/mac-agent/logs/http-agent.log +0 -823
- package/mac-agent/node +0 -0
- package/mac-agent/node_modules/.package-lock.json +0 -2255
- package/mac-agent/node_modules/@colors/colors/LICENSE +0 -26
- package/mac-agent/node_modules/@colors/colors/README.md +0 -219
- package/mac-agent/node_modules/@colors/colors/examples/normal-usage.js +0 -83
- package/mac-agent/node_modules/@colors/colors/examples/safe-string.js +0 -80
- package/mac-agent/node_modules/@colors/colors/index.d.ts +0 -184
- package/mac-agent/node_modules/@colors/colors/lib/colors.js +0 -211
- package/mac-agent/node_modules/@colors/colors/lib/custom/trap.js +0 -46
- package/mac-agent/node_modules/@colors/colors/lib/custom/zalgo.js +0 -110
- package/mac-agent/node_modules/@colors/colors/lib/extendStringPrototype.js +0 -110
- package/mac-agent/node_modules/@colors/colors/lib/index.js +0 -13
- package/mac-agent/node_modules/@colors/colors/lib/maps/america.js +0 -10
- package/mac-agent/node_modules/@colors/colors/lib/maps/rainbow.js +0 -12
- package/mac-agent/node_modules/@colors/colors/lib/maps/random.js +0 -11
- package/mac-agent/node_modules/@colors/colors/lib/maps/zebra.js +0 -5
- package/mac-agent/node_modules/@colors/colors/lib/styles.js +0 -95
- package/mac-agent/node_modules/@colors/colors/lib/system/has-flag.js +0 -35
- package/mac-agent/node_modules/@colors/colors/lib/system/supports-colors.js +0 -151
- package/mac-agent/node_modules/@colors/colors/package.json +0 -45
- package/mac-agent/node_modules/@colors/colors/safe.d.ts +0 -64
- package/mac-agent/node_modules/@colors/colors/safe.js +0 -10
- package/mac-agent/node_modules/@colors/colors/themes/generic-logging.js +0 -12
- package/mac-agent/node_modules/@dabh/diagnostics/CHANGELOG.md +0 -26
- package/mac-agent/node_modules/@dabh/diagnostics/LICENSE +0 -20
- package/mac-agent/node_modules/@dabh/diagnostics/README.md +0 -473
- package/mac-agent/node_modules/@dabh/diagnostics/adapters/hash.js +0 -11
- package/mac-agent/node_modules/@dabh/diagnostics/adapters/index.js +0 -18
- package/mac-agent/node_modules/@dabh/diagnostics/adapters/localstorage.js +0 -11
- package/mac-agent/node_modules/@dabh/diagnostics/adapters/process.env.js +0 -11
- package/mac-agent/node_modules/@dabh/diagnostics/browser/development.js +0 -35
- package/mac-agent/node_modules/@dabh/diagnostics/browser/index.js +0 -8
- package/mac-agent/node_modules/@dabh/diagnostics/browser/override.js +0 -6
- package/mac-agent/node_modules/@dabh/diagnostics/browser/production.js +0 -24
- package/mac-agent/node_modules/@dabh/diagnostics/diagnostics.js +0 -212
- package/mac-agent/node_modules/@dabh/diagnostics/logger/console.js +0 -19
- package/mac-agent/node_modules/@dabh/diagnostics/modifiers/namespace-ansi.js +0 -20
- package/mac-agent/node_modules/@dabh/diagnostics/modifiers/namespace.js +0 -32
- package/mac-agent/node_modules/@dabh/diagnostics/node/development.js +0 -36
- package/mac-agent/node_modules/@dabh/diagnostics/node/index.js +0 -8
- package/mac-agent/node_modules/@dabh/diagnostics/node/override.js +0 -21
- package/mac-agent/node_modules/@dabh/diagnostics/node/production.js +0 -24
- package/mac-agent/node_modules/@dabh/diagnostics/package.json +0 -64
- package/mac-agent/node_modules/@koush/wrtc/CMakeLists.txt +0 -664
- package/mac-agent/node_modules/@koush/wrtc/LICENSE.md +0 -30
- package/mac-agent/node_modules/@koush/wrtc/NodeJS.cmake +0 -638
- package/mac-agent/node_modules/@koush/wrtc/README.md +0 -120
- package/mac-agent/node_modules/@koush/wrtc/THIRD_PARTY_LICENSES.md +0 -1314
- package/mac-agent/node_modules/@koush/wrtc/build/Release/wrtc.node +0 -0
- package/mac-agent/node_modules/@koush/wrtc/build-linux-variants.sh +0 -10
- package/mac-agent/node_modules/@koush/wrtc/build-mac-variants.sh +0 -14
- package/mac-agent/node_modules/@koush/wrtc/clean.sh +0 -2
- package/mac-agent/node_modules/@koush/wrtc/lib/binding.js +0 -7
- package/mac-agent/node_modules/@koush/wrtc/lib/browser.js +0 -18
- package/mac-agent/node_modules/@koush/wrtc/lib/datachannelevent.js +0 -26
- package/mac-agent/node_modules/@koush/wrtc/lib/datachannelmessageevent.js +0 -9
- package/mac-agent/node_modules/@koush/wrtc/lib/error.js +0 -20
- package/mac-agent/node_modules/@koush/wrtc/lib/eventtarget.js +0 -50
- package/mac-agent/node_modules/@koush/wrtc/lib/icecandidate.js +0 -28
- package/mac-agent/node_modules/@koush/wrtc/lib/index.js +0 -81
- package/mac-agent/node_modules/@koush/wrtc/lib/mediadevices.js +0 -24
- package/mac-agent/node_modules/@koush/wrtc/lib/peerconnection.js +0 -313
- package/mac-agent/node_modules/@koush/wrtc/lib/rtcpeerconnectioniceerrorevent.js +0 -36
- package/mac-agent/node_modules/@koush/wrtc/lib/rtcpeerconnectioniceevent.js +0 -20
- package/mac-agent/node_modules/@koush/wrtc/lib/sessiondescription.js +0 -10
- package/mac-agent/node_modules/@koush/wrtc/package.json +0 -95
- package/mac-agent/node_modules/@koush/wrtc/scripts/build-appveyor.bat +0 -73
- package/mac-agent/node_modules/@koush/wrtc/scripts/build-from-source.js +0 -45
- package/mac-agent/node_modules/@koush/wrtc/scripts/build-webrtc.bat +0 -20
- package/mac-agent/node_modules/@koush/wrtc/scripts/build-webrtc.sh +0 -23
- package/mac-agent/node_modules/@koush/wrtc/scripts/configure-webrtc.bat +0 -28
- package/mac-agent/node_modules/@koush/wrtc/scripts/configure-webrtc.sh +0 -25
- package/mac-agent/node_modules/@koush/wrtc/scripts/download-prebuilt-or-build-from-source.js +0 -25
- package/mac-agent/node_modules/@koush/wrtc/scripts/download-prebuilt.js +0 -35
- package/mac-agent/node_modules/@koush/wrtc/scripts/download-webrtc.bat +0 -47
- package/mac-agent/node_modules/@koush/wrtc/scripts/download-webrtc.sh +0 -21
- package/mac-agent/node_modules/@koush/wrtc/scripts/install-example.js +0 -80
- package/mac-agent/node_modules/@koush/wrtc/scripts/karma.js +0 -70
- package/mac-agent/node_modules/@koush/wrtc/scripts/pack-webrtc.bat +0 -1
- package/mac-agent/node_modules/@koush/wrtc/scripts/pack-webrtc.js +0 -93
- package/mac-agent/node_modules/@koush/wrtc/scripts/pack-webrtc.sh +0 -38
- package/mac-agent/node_modules/@koush/wrtc/scripts/publish-to-npm.js +0 -98
- package/mac-agent/node_modules/@koush/wrtc/scripts/publish.js +0 -26
- package/mac-agent/node_modules/@koush/wrtc/scripts/run-tests.bat +0 -25
- package/mac-agent/node_modules/@koush/wrtc/scripts/unpack-webrtc.bat +0 -1
- package/mac-agent/node_modules/@koush/wrtc/scripts/unpack-webrtc.js +0 -36
- package/mac-agent/node_modules/@koush/wrtc/scripts/unpack-webrtc.sh +0 -28
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/.github/workflows/codeql.yml +0 -74
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md +0 -510
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/LICENSE +0 -27
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/README.md +0 -742
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp +0 -4
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp.cmd +0 -2
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/contributing.md +0 -10
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/build.js +0 -51
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/clean.js +0 -31
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/configure.js +0 -52
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/info.js +0 -38
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/install.js +0 -235
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/main.js +0 -125
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js +0 -309
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/package.js +0 -73
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js +0 -34
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/publish.js +0 -81
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/rebuild.js +0 -20
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/reinstall.js +0 -19
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/reveal.js +0 -32
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/testbinary.js +0 -79
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/testpackage.js +0 -53
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/unpublish.js +0 -41
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.json +0 -2602
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js +0 -93
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/handle_gyp_opts.js +0 -102
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js +0 -205
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html +0 -26
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/package.json +0 -9
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js +0 -163
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +0 -335
- package/mac-agent/node_modules/@mapbox/node-pre-gyp/package.json +0 -62
- package/mac-agent/node_modules/@types/triple-beam/LICENSE +0 -21
- package/mac-agent/node_modules/@types/triple-beam/README.md +0 -36
- package/mac-agent/node_modules/@types/triple-beam/index.d.ts +0 -17
- package/mac-agent/node_modules/@types/triple-beam/package.json +0 -25
- package/mac-agent/node_modules/abbrev/LICENSE +0 -46
- package/mac-agent/node_modules/abbrev/README.md +0 -23
- package/mac-agent/node_modules/abbrev/abbrev.js +0 -61
- package/mac-agent/node_modules/abbrev/package.json +0 -21
- package/mac-agent/node_modules/agent-base/README.md +0 -145
- package/mac-agent/node_modules/agent-base/dist/src/index.d.ts +0 -78
- package/mac-agent/node_modules/agent-base/dist/src/index.js +0 -203
- package/mac-agent/node_modules/agent-base/dist/src/index.js.map +0 -1
- package/mac-agent/node_modules/agent-base/dist/src/promisify.d.ts +0 -4
- package/mac-agent/node_modules/agent-base/dist/src/promisify.js +0 -18
- package/mac-agent/node_modules/agent-base/dist/src/promisify.js.map +0 -1
- package/mac-agent/node_modules/agent-base/package.json +0 -64
- package/mac-agent/node_modules/agent-base/src/index.ts +0 -345
- package/mac-agent/node_modules/agent-base/src/promisify.ts +0 -33
- package/mac-agent/node_modules/ansi-regex/index.d.ts +0 -37
- package/mac-agent/node_modules/ansi-regex/index.js +0 -10
- package/mac-agent/node_modules/ansi-regex/license +0 -9
- package/mac-agent/node_modules/ansi-regex/package.json +0 -55
- package/mac-agent/node_modules/ansi-regex/readme.md +0 -78
- package/mac-agent/node_modules/anymatch/LICENSE +0 -15
- package/mac-agent/node_modules/anymatch/README.md +0 -87
- package/mac-agent/node_modules/anymatch/index.d.ts +0 -20
- package/mac-agent/node_modules/anymatch/index.js +0 -104
- package/mac-agent/node_modules/anymatch/package.json +0 -48
- package/mac-agent/node_modules/aproba/LICENSE +0 -14
- package/mac-agent/node_modules/aproba/README.md +0 -94
- package/mac-agent/node_modules/aproba/index.js +0 -105
- package/mac-agent/node_modules/aproba/package.json +0 -35
- package/mac-agent/node_modules/are-we-there-yet/LICENSE.md +0 -18
- package/mac-agent/node_modules/are-we-there-yet/README.md +0 -208
- package/mac-agent/node_modules/are-we-there-yet/lib/index.js +0 -4
- package/mac-agent/node_modules/are-we-there-yet/lib/tracker-base.js +0 -11
- package/mac-agent/node_modules/are-we-there-yet/lib/tracker-group.js +0 -116
- package/mac-agent/node_modules/are-we-there-yet/lib/tracker-stream.js +0 -36
- package/mac-agent/node_modules/are-we-there-yet/lib/tracker.js +0 -32
- package/mac-agent/node_modules/are-we-there-yet/package.json +0 -53
- package/mac-agent/node_modules/async/CHANGELOG.md +0 -351
- package/mac-agent/node_modules/async/LICENSE +0 -19
- package/mac-agent/node_modules/async/README.md +0 -59
- package/mac-agent/node_modules/async/all.js +0 -119
- package/mac-agent/node_modules/async/allLimit.js +0 -46
- package/mac-agent/node_modules/async/allSeries.js +0 -45
- package/mac-agent/node_modules/async/any.js +0 -122
- package/mac-agent/node_modules/async/anyLimit.js +0 -47
- package/mac-agent/node_modules/async/anySeries.js +0 -46
- package/mac-agent/node_modules/async/apply.js +0 -11
- package/mac-agent/node_modules/async/applyEach.js +0 -57
- package/mac-agent/node_modules/async/applyEachSeries.js +0 -37
- package/mac-agent/node_modules/async/asyncify.js +0 -118
- package/mac-agent/node_modules/async/auto.js +0 -333
- package/mac-agent/node_modules/async/autoInject.js +0 -182
- package/mac-agent/node_modules/async/bower.json +0 -17
- package/mac-agent/node_modules/async/cargo.js +0 -63
- package/mac-agent/node_modules/async/cargoQueue.js +0 -71
- package/mac-agent/node_modules/async/compose.js +0 -55
- package/mac-agent/node_modules/async/concat.js +0 -115
- package/mac-agent/node_modules/async/concatLimit.js +0 -60
- package/mac-agent/node_modules/async/concatSeries.js +0 -41
- package/mac-agent/node_modules/async/constant.js +0 -14
- package/mac-agent/node_modules/async/detect.js +0 -96
- package/mac-agent/node_modules/async/detectLimit.js +0 -48
- package/mac-agent/node_modules/async/detectSeries.js +0 -47
- package/mac-agent/node_modules/async/dir.js +0 -43
- package/mac-agent/node_modules/async/dist/async.js +0 -6061
- package/mac-agent/node_modules/async/dist/async.min.js +0 -1
- package/mac-agent/node_modules/async/dist/async.mjs +0 -5948
- package/mac-agent/node_modules/async/doDuring.js +0 -68
- package/mac-agent/node_modules/async/doUntil.js +0 -46
- package/mac-agent/node_modules/async/doWhilst.js +0 -68
- package/mac-agent/node_modules/async/during.js +0 -78
- package/mac-agent/node_modules/async/each.js +0 -129
- package/mac-agent/node_modules/async/eachLimit.js +0 -50
- package/mac-agent/node_modules/async/eachOf.js +0 -185
- package/mac-agent/node_modules/async/eachOfLimit.js +0 -47
- package/mac-agent/node_modules/async/eachOfSeries.js +0 -39
- package/mac-agent/node_modules/async/eachSeries.js +0 -44
- package/mac-agent/node_modules/async/ensureAsync.js +0 -67
- package/mac-agent/node_modules/async/every.js +0 -119
- package/mac-agent/node_modules/async/everyLimit.js +0 -46
- package/mac-agent/node_modules/async/everySeries.js +0 -45
- package/mac-agent/node_modules/async/filter.js +0 -93
- package/mac-agent/node_modules/async/filterLimit.js +0 -45
- package/mac-agent/node_modules/async/filterSeries.js +0 -43
- package/mac-agent/node_modules/async/find.js +0 -96
- package/mac-agent/node_modules/async/findLimit.js +0 -48
- package/mac-agent/node_modules/async/findSeries.js +0 -47
- package/mac-agent/node_modules/async/flatMap.js +0 -115
- package/mac-agent/node_modules/async/flatMapLimit.js +0 -60
- package/mac-agent/node_modules/async/flatMapSeries.js +0 -41
- package/mac-agent/node_modules/async/foldl.js +0 -153
- package/mac-agent/node_modules/async/foldr.js +0 -41
- package/mac-agent/node_modules/async/forEach.js +0 -129
- package/mac-agent/node_modules/async/forEachLimit.js +0 -50
- package/mac-agent/node_modules/async/forEachOf.js +0 -185
- package/mac-agent/node_modules/async/forEachOfLimit.js +0 -47
- package/mac-agent/node_modules/async/forEachOfSeries.js +0 -39
- package/mac-agent/node_modules/async/forEachSeries.js +0 -44
- package/mac-agent/node_modules/async/forever.js +0 -68
- package/mac-agent/node_modules/async/groupBy.js +0 -108
- package/mac-agent/node_modules/async/groupByLimit.js +0 -71
- package/mac-agent/node_modules/async/groupBySeries.js +0 -36
- package/mac-agent/node_modules/async/index.js +0 -588
- package/mac-agent/node_modules/async/inject.js +0 -153
- package/mac-agent/node_modules/async/internal/DoublyLinkedList.js +0 -92
- package/mac-agent/node_modules/async/internal/Heap.js +0 -120
- package/mac-agent/node_modules/async/internal/applyEach.js +0 -29
- package/mac-agent/node_modules/async/internal/asyncEachOfLimit.js +0 -75
- package/mac-agent/node_modules/async/internal/awaitify.js +0 -28
- package/mac-agent/node_modules/async/internal/breakLoop.js +0 -10
- package/mac-agent/node_modules/async/internal/consoleFunc.js +0 -31
- package/mac-agent/node_modules/async/internal/createTester.js +0 -40
- package/mac-agent/node_modules/async/internal/eachOfLimit.js +0 -90
- package/mac-agent/node_modules/async/internal/filter.js +0 -55
- package/mac-agent/node_modules/async/internal/getIterator.js +0 -11
- package/mac-agent/node_modules/async/internal/initialParams.js +0 -14
- package/mac-agent/node_modules/async/internal/isArrayLike.js +0 -10
- package/mac-agent/node_modules/async/internal/iterator.js +0 -57
- package/mac-agent/node_modules/async/internal/map.js +0 -30
- package/mac-agent/node_modules/async/internal/once.js +0 -17
- package/mac-agent/node_modules/async/internal/onlyOnce.js +0 -15
- package/mac-agent/node_modules/async/internal/parallel.js +0 -34
- package/mac-agent/node_modules/async/internal/promiseCallback.js +0 -23
- package/mac-agent/node_modules/async/internal/queue.js +0 -294
- package/mac-agent/node_modules/async/internal/range.js +0 -14
- package/mac-agent/node_modules/async/internal/reject.js +0 -26
- package/mac-agent/node_modules/async/internal/setImmediate.js +0 -34
- package/mac-agent/node_modules/async/internal/withoutIndex.js +0 -10
- package/mac-agent/node_modules/async/internal/wrapAsync.js +0 -34
- package/mac-agent/node_modules/async/log.js +0 -41
- package/mac-agent/node_modules/async/map.js +0 -142
- package/mac-agent/node_modules/async/mapLimit.js +0 -45
- package/mac-agent/node_modules/async/mapSeries.js +0 -44
- package/mac-agent/node_modules/async/mapValues.js +0 -152
- package/mac-agent/node_modules/async/mapValuesLimit.js +0 -61
- package/mac-agent/node_modules/async/mapValuesSeries.js +0 -37
- package/mac-agent/node_modules/async/memoize.js +0 -91
- package/mac-agent/node_modules/async/nextTick.js +0 -52
- package/mac-agent/node_modules/async/package.json +0 -75
- package/mac-agent/node_modules/async/parallel.js +0 -180
- package/mac-agent/node_modules/async/parallelLimit.js +0 -41
- package/mac-agent/node_modules/async/priorityQueue.js +0 -60
- package/mac-agent/node_modules/async/queue.js +0 -24
- package/mac-agent/node_modules/async/race.js +0 -67
- package/mac-agent/node_modules/async/reduce.js +0 -153
- package/mac-agent/node_modules/async/reduceRight.js +0 -41
- package/mac-agent/node_modules/async/reflect.js +0 -78
- package/mac-agent/node_modules/async/reflectAll.js +0 -93
- package/mac-agent/node_modules/async/reject.js +0 -87
- package/mac-agent/node_modules/async/rejectLimit.js +0 -45
- package/mac-agent/node_modules/async/rejectSeries.js +0 -43
- package/mac-agent/node_modules/async/retry.js +0 -159
- package/mac-agent/node_modules/async/retryable.js +0 -77
- package/mac-agent/node_modules/async/select.js +0 -93
- package/mac-agent/node_modules/async/selectLimit.js +0 -45
- package/mac-agent/node_modules/async/selectSeries.js +0 -43
- package/mac-agent/node_modules/async/seq.js +0 -79
- package/mac-agent/node_modules/async/series.js +0 -186
- package/mac-agent/node_modules/async/setImmediate.js +0 -45
- package/mac-agent/node_modules/async/some.js +0 -122
- package/mac-agent/node_modules/async/someLimit.js +0 -47
- package/mac-agent/node_modules/async/someSeries.js +0 -46
- package/mac-agent/node_modules/async/sortBy.js +0 -190
- package/mac-agent/node_modules/async/timeout.js +0 -89
- package/mac-agent/node_modules/async/times.js +0 -50
- package/mac-agent/node_modules/async/timesLimit.js +0 -43
- package/mac-agent/node_modules/async/timesSeries.js +0 -32
- package/mac-agent/node_modules/async/transform.js +0 -173
- package/mac-agent/node_modules/async/tryEach.js +0 -78
- package/mac-agent/node_modules/async/unmemoize.js +0 -25
- package/mac-agent/node_modules/async/until.js +0 -61
- package/mac-agent/node_modules/async/waterfall.js +0 -105
- package/mac-agent/node_modules/async/whilst.js +0 -78
- package/mac-agent/node_modules/async/wrapSync.js +0 -118
- package/mac-agent/node_modules/asynckit/LICENSE +0 -21
- package/mac-agent/node_modules/asynckit/README.md +0 -233
- package/mac-agent/node_modules/asynckit/bench.js +0 -76
- package/mac-agent/node_modules/asynckit/index.js +0 -6
- package/mac-agent/node_modules/asynckit/lib/abort.js +0 -29
- package/mac-agent/node_modules/asynckit/lib/async.js +0 -34
- package/mac-agent/node_modules/asynckit/lib/defer.js +0 -26
- package/mac-agent/node_modules/asynckit/lib/iterate.js +0 -75
- package/mac-agent/node_modules/asynckit/lib/readable_asynckit.js +0 -91
- package/mac-agent/node_modules/asynckit/lib/readable_parallel.js +0 -25
- package/mac-agent/node_modules/asynckit/lib/readable_serial.js +0 -25
- package/mac-agent/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
- package/mac-agent/node_modules/asynckit/lib/state.js +0 -37
- package/mac-agent/node_modules/asynckit/lib/streamify.js +0 -141
- package/mac-agent/node_modules/asynckit/lib/terminator.js +0 -29
- package/mac-agent/node_modules/asynckit/package.json +0 -63
- package/mac-agent/node_modules/asynckit/parallel.js +0 -43
- package/mac-agent/node_modules/asynckit/serial.js +0 -17
- package/mac-agent/node_modules/asynckit/serialOrdered.js +0 -75
- package/mac-agent/node_modules/asynckit/stream.js +0 -21
- package/mac-agent/node_modules/axios/CHANGELOG.md +0 -1220
- package/mac-agent/node_modules/axios/LICENSE +0 -7
- package/mac-agent/node_modules/axios/MIGRATION_GUIDE.md +0 -3
- package/mac-agent/node_modules/axios/README.md +0 -1682
- package/mac-agent/node_modules/axios/dist/axios.js +0 -4296
- package/mac-agent/node_modules/axios/dist/axios.js.map +0 -1
- package/mac-agent/node_modules/axios/dist/axios.min.js +0 -3
- package/mac-agent/node_modules/axios/dist/axios.min.js.map +0 -1
- package/mac-agent/node_modules/axios/dist/browser/axios.cjs +0 -3730
- package/mac-agent/node_modules/axios/dist/browser/axios.cjs.map +0 -1
- package/mac-agent/node_modules/axios/dist/esm/axios.js +0 -3753
- package/mac-agent/node_modules/axios/dist/esm/axios.js.map +0 -1
- package/mac-agent/node_modules/axios/dist/esm/axios.min.js +0 -3
- package/mac-agent/node_modules/axios/dist/esm/axios.min.js.map +0 -1
- package/mac-agent/node_modules/axios/dist/node/axios.cjs +0 -4787
- package/mac-agent/node_modules/axios/dist/node/axios.cjs.map +0 -1
- package/mac-agent/node_modules/axios/index.d.cts +0 -550
- package/mac-agent/node_modules/axios/index.d.ts +0 -572
- package/mac-agent/node_modules/axios/index.js +0 -43
- package/mac-agent/node_modules/axios/lib/adapters/README.md +0 -37
- package/mac-agent/node_modules/axios/lib/adapters/adapters.js +0 -79
- package/mac-agent/node_modules/axios/lib/adapters/fetch.js +0 -229
- package/mac-agent/node_modules/axios/lib/adapters/http.js +0 -695
- package/mac-agent/node_modules/axios/lib/adapters/xhr.js +0 -197
- package/mac-agent/node_modules/axios/lib/axios.js +0 -89
- package/mac-agent/node_modules/axios/lib/cancel/CancelToken.js +0 -135
- package/mac-agent/node_modules/axios/lib/cancel/CanceledError.js +0 -25
- package/mac-agent/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/mac-agent/node_modules/axios/lib/core/Axios.js +0 -242
- package/mac-agent/node_modules/axios/lib/core/AxiosError.js +0 -103
- package/mac-agent/node_modules/axios/lib/core/AxiosHeaders.js +0 -314
- package/mac-agent/node_modules/axios/lib/core/InterceptorManager.js +0 -71
- package/mac-agent/node_modules/axios/lib/core/README.md +0 -8
- package/mac-agent/node_modules/axios/lib/core/buildFullPath.js +0 -22
- package/mac-agent/node_modules/axios/lib/core/dispatchRequest.js +0 -81
- package/mac-agent/node_modules/axios/lib/core/mergeConfig.js +0 -106
- package/mac-agent/node_modules/axios/lib/core/settle.js +0 -27
- package/mac-agent/node_modules/axios/lib/core/transformData.js +0 -28
- package/mac-agent/node_modules/axios/lib/defaults/index.js +0 -161
- package/mac-agent/node_modules/axios/lib/defaults/transitional.js +0 -7
- package/mac-agent/node_modules/axios/lib/env/README.md +0 -3
- package/mac-agent/node_modules/axios/lib/env/classes/FormData.js +0 -2
- package/mac-agent/node_modules/axios/lib/env/data.js +0 -1
- package/mac-agent/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -143
- package/mac-agent/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -58
- package/mac-agent/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
- package/mac-agent/node_modules/axios/lib/helpers/README.md +0 -7
- package/mac-agent/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -28
- package/mac-agent/node_modules/axios/lib/helpers/bind.js +0 -7
- package/mac-agent/node_modules/axios/lib/helpers/buildURL.js +0 -69
- package/mac-agent/node_modules/axios/lib/helpers/callbackify.js +0 -16
- package/mac-agent/node_modules/axios/lib/helpers/combineURLs.js +0 -15
- package/mac-agent/node_modules/axios/lib/helpers/composeSignals.js +0 -48
- package/mac-agent/node_modules/axios/lib/helpers/cookies.js +0 -42
- package/mac-agent/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -26
- package/mac-agent/node_modules/axios/lib/helpers/formDataToJSON.js +0 -95
- package/mac-agent/node_modules/axios/lib/helpers/formDataToStream.js +0 -112
- package/mac-agent/node_modules/axios/lib/helpers/fromDataURI.js +0 -53
- package/mac-agent/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -15
- package/mac-agent/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
- package/mac-agent/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -14
- package/mac-agent/node_modules/axios/lib/helpers/null.js +0 -2
- package/mac-agent/node_modules/axios/lib/helpers/parseHeaders.js +0 -55
- package/mac-agent/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
- package/mac-agent/node_modules/axios/lib/helpers/progressEventReducer.js +0 -44
- package/mac-agent/node_modules/axios/lib/helpers/readBlob.js +0 -15
- package/mac-agent/node_modules/axios/lib/helpers/resolveConfig.js +0 -57
- package/mac-agent/node_modules/axios/lib/helpers/speedometer.js +0 -55
- package/mac-agent/node_modules/axios/lib/helpers/spread.js +0 -28
- package/mac-agent/node_modules/axios/lib/helpers/throttle.js +0 -44
- package/mac-agent/node_modules/axios/lib/helpers/toFormData.js +0 -223
- package/mac-agent/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
- package/mac-agent/node_modules/axios/lib/helpers/trackStream.js +0 -87
- package/mac-agent/node_modules/axios/lib/helpers/validator.js +0 -99
- package/mac-agent/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
- package/mac-agent/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
- package/mac-agent/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
- package/mac-agent/node_modules/axios/lib/platform/browser/index.js +0 -13
- package/mac-agent/node_modules/axios/lib/platform/common/utils.js +0 -51
- package/mac-agent/node_modules/axios/lib/platform/index.js +0 -7
- package/mac-agent/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
- package/mac-agent/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
- package/mac-agent/node_modules/axios/lib/platform/node/index.js +0 -38
- package/mac-agent/node_modules/axios/lib/utils.js +0 -744
- package/mac-agent/node_modules/axios/package.json +0 -228
- package/mac-agent/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/mac-agent/node_modules/balanced-match/LICENSE.md +0 -21
- package/mac-agent/node_modules/balanced-match/README.md +0 -97
- package/mac-agent/node_modules/balanced-match/index.js +0 -62
- package/mac-agent/node_modules/balanced-match/package.json +0 -48
- package/mac-agent/node_modules/binary-extensions/binary-extensions.json +0 -263
- package/mac-agent/node_modules/binary-extensions/binary-extensions.json.d.ts +0 -3
- package/mac-agent/node_modules/binary-extensions/index.d.ts +0 -14
- package/mac-agent/node_modules/binary-extensions/index.js +0 -1
- package/mac-agent/node_modules/binary-extensions/license +0 -10
- package/mac-agent/node_modules/binary-extensions/package.json +0 -40
- package/mac-agent/node_modules/binary-extensions/readme.md +0 -25
- package/mac-agent/node_modules/brace-expansion/LICENSE +0 -21
- package/mac-agent/node_modules/brace-expansion/README.md +0 -129
- package/mac-agent/node_modules/brace-expansion/index.js +0 -201
- package/mac-agent/node_modules/brace-expansion/package.json +0 -50
- package/mac-agent/node_modules/braces/LICENSE +0 -21
- package/mac-agent/node_modules/braces/README.md +0 -586
- package/mac-agent/node_modules/braces/index.js +0 -170
- package/mac-agent/node_modules/braces/lib/compile.js +0 -60
- package/mac-agent/node_modules/braces/lib/constants.js +0 -57
- package/mac-agent/node_modules/braces/lib/expand.js +0 -113
- package/mac-agent/node_modules/braces/lib/parse.js +0 -331
- package/mac-agent/node_modules/braces/lib/stringify.js +0 -32
- package/mac-agent/node_modules/braces/lib/utils.js +0 -122
- package/mac-agent/node_modules/braces/package.json +0 -77
- package/mac-agent/node_modules/call-bind/.eslintignore +0 -1
- package/mac-agent/node_modules/call-bind/.eslintrc +0 -16
- package/mac-agent/node_modules/call-bind/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/call-bind/.nycrc +0 -9
- package/mac-agent/node_modules/call-bind/CHANGELOG.md +0 -106
- package/mac-agent/node_modules/call-bind/LICENSE +0 -21
- package/mac-agent/node_modules/call-bind/README.md +0 -64
- package/mac-agent/node_modules/call-bind/callBound.js +0 -15
- package/mac-agent/node_modules/call-bind/index.js +0 -24
- package/mac-agent/node_modules/call-bind/package.json +0 -93
- package/mac-agent/node_modules/call-bind/test/callBound.js +0 -54
- package/mac-agent/node_modules/call-bind/test/index.js +0 -74
- package/mac-agent/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
- package/mac-agent/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/call-bind-apply-helpers/.nycrc +0 -9
- package/mac-agent/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
- package/mac-agent/node_modules/call-bind-apply-helpers/LICENSE +0 -21
- package/mac-agent/node_modules/call-bind-apply-helpers/README.md +0 -62
- package/mac-agent/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
- package/mac-agent/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
- package/mac-agent/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
- package/mac-agent/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
- package/mac-agent/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
- package/mac-agent/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
- package/mac-agent/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
- package/mac-agent/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
- package/mac-agent/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
- package/mac-agent/node_modules/call-bind-apply-helpers/index.js +0 -15
- package/mac-agent/node_modules/call-bind-apply-helpers/package.json +0 -85
- package/mac-agent/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
- package/mac-agent/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
- package/mac-agent/node_modules/call-bind-apply-helpers/test/index.js +0 -63
- package/mac-agent/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
- package/mac-agent/node_modules/call-bound/.eslintrc +0 -13
- package/mac-agent/node_modules/call-bound/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/call-bound/.nycrc +0 -9
- package/mac-agent/node_modules/call-bound/CHANGELOG.md +0 -42
- package/mac-agent/node_modules/call-bound/LICENSE +0 -21
- package/mac-agent/node_modules/call-bound/README.md +0 -53
- package/mac-agent/node_modules/call-bound/index.d.ts +0 -94
- package/mac-agent/node_modules/call-bound/index.js +0 -19
- package/mac-agent/node_modules/call-bound/package.json +0 -99
- package/mac-agent/node_modules/call-bound/test/index.js +0 -61
- package/mac-agent/node_modules/call-bound/tsconfig.json +0 -10
- package/mac-agent/node_modules/camelcase/index.js +0 -56
- package/mac-agent/node_modules/camelcase/license +0 -21
- package/mac-agent/node_modules/camelcase/package.json +0 -39
- package/mac-agent/node_modules/camelcase/readme.md +0 -57
- package/mac-agent/node_modules/chokidar/LICENSE +0 -21
- package/mac-agent/node_modules/chokidar/README.md +0 -308
- package/mac-agent/node_modules/chokidar/index.js +0 -973
- package/mac-agent/node_modules/chokidar/lib/constants.js +0 -66
- package/mac-agent/node_modules/chokidar/lib/fsevents-handler.js +0 -526
- package/mac-agent/node_modules/chokidar/lib/nodefs-handler.js +0 -654
- package/mac-agent/node_modules/chokidar/package.json +0 -70
- package/mac-agent/node_modules/chokidar/types/index.d.ts +0 -192
- package/mac-agent/node_modules/chownr/LICENSE +0 -15
- package/mac-agent/node_modules/chownr/README.md +0 -3
- package/mac-agent/node_modules/chownr/chownr.js +0 -167
- package/mac-agent/node_modules/chownr/package.json +0 -32
- package/mac-agent/node_modules/cliui/CHANGELOG.md +0 -15
- package/mac-agent/node_modules/cliui/LICENSE.txt +0 -14
- package/mac-agent/node_modules/cliui/README.md +0 -110
- package/mac-agent/node_modules/cliui/index.js +0 -316
- package/mac-agent/node_modules/cliui/node_modules/ansi-regex/index.js +0 -4
- package/mac-agent/node_modules/cliui/node_modules/ansi-regex/license +0 -21
- package/mac-agent/node_modules/cliui/node_modules/ansi-regex/package.json +0 -64
- package/mac-agent/node_modules/cliui/node_modules/ansi-regex/readme.md +0 -39
- package/mac-agent/node_modules/cliui/node_modules/is-fullwidth-code-point/index.js +0 -46
- package/mac-agent/node_modules/cliui/node_modules/is-fullwidth-code-point/license +0 -21
- package/mac-agent/node_modules/cliui/node_modules/is-fullwidth-code-point/package.json +0 -45
- package/mac-agent/node_modules/cliui/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/mac-agent/node_modules/cliui/node_modules/string-width/index.js +0 -37
- package/mac-agent/node_modules/cliui/node_modules/string-width/license +0 -21
- package/mac-agent/node_modules/cliui/node_modules/string-width/package.json +0 -56
- package/mac-agent/node_modules/cliui/node_modules/string-width/readme.md +0 -42
- package/mac-agent/node_modules/cliui/node_modules/strip-ansi/index.js +0 -6
- package/mac-agent/node_modules/cliui/node_modules/strip-ansi/license +0 -21
- package/mac-agent/node_modules/cliui/node_modules/strip-ansi/package.json +0 -57
- package/mac-agent/node_modules/cliui/node_modules/strip-ansi/readme.md +0 -33
- package/mac-agent/node_modules/cliui/package.json +0 -64
- package/mac-agent/node_modules/code-point-at/index.js +0 -32
- package/mac-agent/node_modules/code-point-at/license +0 -21
- package/mac-agent/node_modules/code-point-at/package.json +0 -38
- package/mac-agent/node_modules/code-point-at/readme.md +0 -32
- package/mac-agent/node_modules/color/LICENSE +0 -21
- package/mac-agent/node_modules/color/README.md +0 -123
- package/mac-agent/node_modules/color/index.js +0 -482
- package/mac-agent/node_modules/color/package.json +0 -40
- package/mac-agent/node_modules/color-convert/CHANGELOG.md +0 -54
- package/mac-agent/node_modules/color-convert/LICENSE +0 -21
- package/mac-agent/node_modules/color-convert/README.md +0 -68
- package/mac-agent/node_modules/color-convert/conversions.js +0 -868
- package/mac-agent/node_modules/color-convert/index.js +0 -78
- package/mac-agent/node_modules/color-convert/package.json +0 -46
- package/mac-agent/node_modules/color-convert/route.js +0 -97
- package/mac-agent/node_modules/color-name/.eslintrc.json +0 -43
- package/mac-agent/node_modules/color-name/LICENSE +0 -8
- package/mac-agent/node_modules/color-name/README.md +0 -11
- package/mac-agent/node_modules/color-name/index.js +0 -152
- package/mac-agent/node_modules/color-name/package.json +0 -25
- package/mac-agent/node_modules/color-name/test.js +0 -7
- package/mac-agent/node_modules/color-string/LICENSE +0 -21
- package/mac-agent/node_modules/color-string/README.md +0 -62
- package/mac-agent/node_modules/color-string/index.js +0 -242
- package/mac-agent/node_modules/color-string/package.json +0 -39
- package/mac-agent/node_modules/color-support/LICENSE +0 -15
- package/mac-agent/node_modules/color-support/README.md +0 -129
- package/mac-agent/node_modules/color-support/bin.js +0 -3
- package/mac-agent/node_modules/color-support/browser.js +0 -14
- package/mac-agent/node_modules/color-support/index.js +0 -134
- package/mac-agent/node_modules/color-support/package.json +0 -36
- package/mac-agent/node_modules/colorspace/LICENSE.md +0 -20
- package/mac-agent/node_modules/colorspace/README.md +0 -43
- package/mac-agent/node_modules/colorspace/index.js +0 -29
- package/mac-agent/node_modules/colorspace/package.json +0 -37
- package/mac-agent/node_modules/combined-stream/License +0 -19
- package/mac-agent/node_modules/combined-stream/Readme.md +0 -138
- package/mac-agent/node_modules/combined-stream/lib/combined_stream.js +0 -208
- package/mac-agent/node_modules/combined-stream/package.json +0 -25
- package/mac-agent/node_modules/combined-stream/yarn.lock +0 -17
- package/mac-agent/node_modules/concat-map/.travis.yml +0 -4
- package/mac-agent/node_modules/concat-map/LICENSE +0 -18
- package/mac-agent/node_modules/concat-map/README.markdown +0 -62
- package/mac-agent/node_modules/concat-map/example/map.js +0 -6
- package/mac-agent/node_modules/concat-map/index.js +0 -13
- package/mac-agent/node_modules/concat-map/package.json +0 -43
- package/mac-agent/node_modules/concat-map/test/map.js +0 -39
- package/mac-agent/node_modules/console-control-strings/LICENSE +0 -13
- package/mac-agent/node_modules/console-control-strings/README.md +0 -145
- package/mac-agent/node_modules/console-control-strings/README.md~ +0 -140
- package/mac-agent/node_modules/console-control-strings/index.js +0 -125
- package/mac-agent/node_modules/console-control-strings/package.json +0 -27
- package/mac-agent/node_modules/debug/LICENSE +0 -20
- package/mac-agent/node_modules/debug/README.md +0 -481
- package/mac-agent/node_modules/debug/package.json +0 -64
- package/mac-agent/node_modules/debug/src/browser.js +0 -272
- package/mac-agent/node_modules/debug/src/common.js +0 -292
- package/mac-agent/node_modules/debug/src/index.js +0 -10
- package/mac-agent/node_modules/debug/src/node.js +0 -263
- package/mac-agent/node_modules/decamelize/index.js +0 -13
- package/mac-agent/node_modules/decamelize/license +0 -21
- package/mac-agent/node_modules/decamelize/package.json +0 -38
- package/mac-agent/node_modules/decamelize/readme.md +0 -48
- package/mac-agent/node_modules/define-data-property/.eslintrc +0 -24
- package/mac-agent/node_modules/define-data-property/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/define-data-property/.nycrc +0 -13
- package/mac-agent/node_modules/define-data-property/CHANGELOG.md +0 -70
- package/mac-agent/node_modules/define-data-property/LICENSE +0 -21
- package/mac-agent/node_modules/define-data-property/README.md +0 -67
- package/mac-agent/node_modules/define-data-property/index.d.ts +0 -12
- package/mac-agent/node_modules/define-data-property/index.js +0 -56
- package/mac-agent/node_modules/define-data-property/package.json +0 -106
- package/mac-agent/node_modules/define-data-property/test/index.js +0 -392
- package/mac-agent/node_modules/define-data-property/tsconfig.json +0 -59
- package/mac-agent/node_modules/define-properties/.editorconfig +0 -13
- package/mac-agent/node_modules/define-properties/.eslintrc +0 -19
- package/mac-agent/node_modules/define-properties/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/define-properties/.nycrc +0 -9
- package/mac-agent/node_modules/define-properties/CHANGELOG.md +0 -91
- package/mac-agent/node_modules/define-properties/LICENSE +0 -21
- package/mac-agent/node_modules/define-properties/README.md +0 -84
- package/mac-agent/node_modules/define-properties/index.js +0 -47
- package/mac-agent/node_modules/define-properties/package.json +0 -88
- package/mac-agent/node_modules/delayed-stream/License +0 -19
- package/mac-agent/node_modules/delayed-stream/Makefile +0 -7
- package/mac-agent/node_modules/delayed-stream/Readme.md +0 -141
- package/mac-agent/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
- package/mac-agent/node_modules/delayed-stream/package.json +0 -27
- package/mac-agent/node_modules/delegates/History.md +0 -22
- package/mac-agent/node_modules/delegates/License +0 -20
- package/mac-agent/node_modules/delegates/Makefile +0 -8
- package/mac-agent/node_modules/delegates/Readme.md +0 -94
- package/mac-agent/node_modules/delegates/index.js +0 -121
- package/mac-agent/node_modules/delegates/package.json +0 -13
- package/mac-agent/node_modules/delegates/test/index.js +0 -94
- package/mac-agent/node_modules/detect-libc/LICENSE +0 -201
- package/mac-agent/node_modules/detect-libc/README.md +0 -163
- package/mac-agent/node_modules/detect-libc/index.d.ts +0 -14
- package/mac-agent/node_modules/detect-libc/lib/detect-libc.js +0 -267
- package/mac-agent/node_modules/detect-libc/lib/filesystem.js +0 -41
- package/mac-agent/node_modules/detect-libc/lib/process.js +0 -24
- package/mac-agent/node_modules/detect-libc/package.json +0 -41
- package/mac-agent/node_modules/domexception/LICENSE.txt +0 -21
- package/mac-agent/node_modules/domexception/README.md +0 -19
- package/mac-agent/node_modules/domexception/lib/DOMException-impl.js +0 -22
- package/mac-agent/node_modules/domexception/lib/DOMException.js +0 -368
- package/mac-agent/node_modules/domexception/lib/legacy-error-codes.json +0 -27
- package/mac-agent/node_modules/domexception/lib/public-api.js +0 -5
- package/mac-agent/node_modules/domexception/lib/utils.js +0 -86
- package/mac-agent/node_modules/domexception/package.json +0 -36
- package/mac-agent/node_modules/dotenv/CHANGELOG.md +0 -520
- package/mac-agent/node_modules/dotenv/LICENSE +0 -23
- package/mac-agent/node_modules/dotenv/README-es.md +0 -411
- package/mac-agent/node_modules/dotenv/README.md +0 -645
- package/mac-agent/node_modules/dotenv/SECURITY.md +0 -1
- package/mac-agent/node_modules/dotenv/config.d.ts +0 -1
- package/mac-agent/node_modules/dotenv/config.js +0 -9
- package/mac-agent/node_modules/dotenv/lib/cli-options.js +0 -17
- package/mac-agent/node_modules/dotenv/lib/env-options.js +0 -28
- package/mac-agent/node_modules/dotenv/lib/main.d.ts +0 -162
- package/mac-agent/node_modules/dotenv/lib/main.js +0 -386
- package/mac-agent/node_modules/dotenv/package.json +0 -62
- package/mac-agent/node_modules/dunder-proto/.eslintrc +0 -5
- package/mac-agent/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/dunder-proto/.nycrc +0 -13
- package/mac-agent/node_modules/dunder-proto/CHANGELOG.md +0 -24
- package/mac-agent/node_modules/dunder-proto/LICENSE +0 -21
- package/mac-agent/node_modules/dunder-proto/README.md +0 -54
- package/mac-agent/node_modules/dunder-proto/get.d.ts +0 -5
- package/mac-agent/node_modules/dunder-proto/get.js +0 -30
- package/mac-agent/node_modules/dunder-proto/package.json +0 -76
- package/mac-agent/node_modules/dunder-proto/set.d.ts +0 -5
- package/mac-agent/node_modules/dunder-proto/set.js +0 -35
- package/mac-agent/node_modules/dunder-proto/test/get.js +0 -34
- package/mac-agent/node_modules/dunder-proto/test/index.js +0 -4
- package/mac-agent/node_modules/dunder-proto/test/set.js +0 -50
- package/mac-agent/node_modules/dunder-proto/tsconfig.json +0 -9
- package/mac-agent/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/mac-agent/node_modules/emoji-regex/README.md +0 -73
- package/mac-agent/node_modules/emoji-regex/es2015/index.js +0 -6
- package/mac-agent/node_modules/emoji-regex/es2015/text.js +0 -6
- package/mac-agent/node_modules/emoji-regex/index.d.ts +0 -23
- package/mac-agent/node_modules/emoji-regex/index.js +0 -6
- package/mac-agent/node_modules/emoji-regex/package.json +0 -50
- package/mac-agent/node_modules/emoji-regex/text.js +0 -6
- package/mac-agent/node_modules/enabled/.travis.yml +0 -9
- package/mac-agent/node_modules/enabled/LICENSE +0 -20
- package/mac-agent/node_modules/enabled/README.md +0 -68
- package/mac-agent/node_modules/enabled/index.js +0 -34
- package/mac-agent/node_modules/enabled/package.json +0 -33
- package/mac-agent/node_modules/enabled/test.js +0 -39
- package/mac-agent/node_modules/error-ex/LICENSE +0 -21
- package/mac-agent/node_modules/error-ex/README.md +0 -144
- package/mac-agent/node_modules/error-ex/index.js +0 -141
- package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/.editorconfig +0 -18
- package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/.istanbul.yml +0 -4
- package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/.travis.yml +0 -17
- package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/LICENSE +0 -21
- package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/README.md +0 -16
- package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/index.js +0 -10
- package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/package.json +0 -34
- package/mac-agent/node_modules/error-ex/package.json +0 -46
- package/mac-agent/node_modules/es-define-property/.eslintrc +0 -13
- package/mac-agent/node_modules/es-define-property/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/es-define-property/.nycrc +0 -9
- package/mac-agent/node_modules/es-define-property/CHANGELOG.md +0 -29
- package/mac-agent/node_modules/es-define-property/LICENSE +0 -21
- package/mac-agent/node_modules/es-define-property/README.md +0 -49
- package/mac-agent/node_modules/es-define-property/index.d.ts +0 -3
- package/mac-agent/node_modules/es-define-property/index.js +0 -14
- package/mac-agent/node_modules/es-define-property/package.json +0 -81
- package/mac-agent/node_modules/es-define-property/test/index.js +0 -56
- package/mac-agent/node_modules/es-define-property/tsconfig.json +0 -10
- package/mac-agent/node_modules/es-errors/.eslintrc +0 -5
- package/mac-agent/node_modules/es-errors/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/es-errors/CHANGELOG.md +0 -40
- package/mac-agent/node_modules/es-errors/LICENSE +0 -21
- package/mac-agent/node_modules/es-errors/README.md +0 -55
- package/mac-agent/node_modules/es-errors/eval.d.ts +0 -3
- package/mac-agent/node_modules/es-errors/eval.js +0 -4
- package/mac-agent/node_modules/es-errors/index.d.ts +0 -3
- package/mac-agent/node_modules/es-errors/index.js +0 -4
- package/mac-agent/node_modules/es-errors/package.json +0 -80
- package/mac-agent/node_modules/es-errors/range.d.ts +0 -3
- package/mac-agent/node_modules/es-errors/range.js +0 -4
- package/mac-agent/node_modules/es-errors/ref.d.ts +0 -3
- package/mac-agent/node_modules/es-errors/ref.js +0 -4
- package/mac-agent/node_modules/es-errors/syntax.d.ts +0 -3
- package/mac-agent/node_modules/es-errors/syntax.js +0 -4
- package/mac-agent/node_modules/es-errors/test/index.js +0 -19
- package/mac-agent/node_modules/es-errors/tsconfig.json +0 -49
- package/mac-agent/node_modules/es-errors/type.d.ts +0 -3
- package/mac-agent/node_modules/es-errors/type.js +0 -4
- package/mac-agent/node_modules/es-errors/uri.d.ts +0 -3
- package/mac-agent/node_modules/es-errors/uri.js +0 -4
- package/mac-agent/node_modules/es-object-atoms/.eslintrc +0 -16
- package/mac-agent/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/es-object-atoms/CHANGELOG.md +0 -37
- package/mac-agent/node_modules/es-object-atoms/LICENSE +0 -21
- package/mac-agent/node_modules/es-object-atoms/README.md +0 -63
- package/mac-agent/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
- package/mac-agent/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
- package/mac-agent/node_modules/es-object-atoms/ToObject.d.ts +0 -7
- package/mac-agent/node_modules/es-object-atoms/ToObject.js +0 -10
- package/mac-agent/node_modules/es-object-atoms/index.d.ts +0 -3
- package/mac-agent/node_modules/es-object-atoms/index.js +0 -4
- package/mac-agent/node_modules/es-object-atoms/isObject.d.ts +0 -3
- package/mac-agent/node_modules/es-object-atoms/isObject.js +0 -6
- package/mac-agent/node_modules/es-object-atoms/package.json +0 -80
- package/mac-agent/node_modules/es-object-atoms/test/index.js +0 -38
- package/mac-agent/node_modules/es-object-atoms/tsconfig.json +0 -6
- package/mac-agent/node_modules/es-set-tostringtag/.eslintrc +0 -13
- package/mac-agent/node_modules/es-set-tostringtag/.nycrc +0 -9
- package/mac-agent/node_modules/es-set-tostringtag/CHANGELOG.md +0 -67
- package/mac-agent/node_modules/es-set-tostringtag/LICENSE +0 -21
- package/mac-agent/node_modules/es-set-tostringtag/README.md +0 -53
- package/mac-agent/node_modules/es-set-tostringtag/index.d.ts +0 -10
- package/mac-agent/node_modules/es-set-tostringtag/index.js +0 -35
- package/mac-agent/node_modules/es-set-tostringtag/package.json +0 -78
- package/mac-agent/node_modules/es-set-tostringtag/test/index.js +0 -85
- package/mac-agent/node_modules/es-set-tostringtag/tsconfig.json +0 -9
- package/mac-agent/node_modules/fecha/LICENSE +0 -22
- package/mac-agent/node_modules/fecha/README.md +0 -320
- package/mac-agent/node_modules/fecha/dist/fecha.min.js +0 -2
- package/mac-agent/node_modules/fecha/dist/fecha.min.js.map +0 -1
- package/mac-agent/node_modules/fecha/lib/fecha.d.ts +0 -52
- package/mac-agent/node_modules/fecha/lib/fecha.js +0 -403
- package/mac-agent/node_modules/fecha/lib/fecha.js.map +0 -1
- package/mac-agent/node_modules/fecha/lib/fecha.umd.js +0 -418
- package/mac-agent/node_modules/fecha/lib/fecha.umd.js.map +0 -1
- package/mac-agent/node_modules/fecha/package.json +0 -55
- package/mac-agent/node_modules/fecha/src/fecha.ts +0 -524
- package/mac-agent/node_modules/fill-range/LICENSE +0 -21
- package/mac-agent/node_modules/fill-range/README.md +0 -237
- package/mac-agent/node_modules/fill-range/index.js +0 -248
- package/mac-agent/node_modules/fill-range/package.json +0 -74
- package/mac-agent/node_modules/find-up/index.js +0 -53
- package/mac-agent/node_modules/find-up/license +0 -21
- package/mac-agent/node_modules/find-up/package.json +0 -51
- package/mac-agent/node_modules/find-up/readme.md +0 -72
- package/mac-agent/node_modules/fn.name/.gitattributes +0 -1
- package/mac-agent/node_modules/fn.name/.travis.yml +0 -10
- package/mac-agent/node_modules/fn.name/LICENSE +0 -22
- package/mac-agent/node_modules/fn.name/README.md +0 -42
- package/mac-agent/node_modules/fn.name/index.js +0 -42
- package/mac-agent/node_modules/fn.name/package.json +0 -37
- package/mac-agent/node_modules/fn.name/test.js +0 -73
- package/mac-agent/node_modules/follow-redirects/LICENSE +0 -18
- package/mac-agent/node_modules/follow-redirects/README.md +0 -155
- package/mac-agent/node_modules/follow-redirects/debug.js +0 -15
- package/mac-agent/node_modules/follow-redirects/http.js +0 -1
- package/mac-agent/node_modules/follow-redirects/https.js +0 -1
- package/mac-agent/node_modules/follow-redirects/index.js +0 -686
- package/mac-agent/node_modules/follow-redirects/package.json +0 -58
- package/mac-agent/node_modules/form-data/License +0 -19
- package/mac-agent/node_modules/form-data/README.md.bak +0 -355
- package/mac-agent/node_modules/form-data/Readme.md +0 -355
- package/mac-agent/node_modules/form-data/index.d.ts +0 -62
- package/mac-agent/node_modules/form-data/lib/browser.js +0 -4
- package/mac-agent/node_modules/form-data/lib/form_data.js +0 -498
- package/mac-agent/node_modules/form-data/lib/populate.js +0 -10
- package/mac-agent/node_modules/form-data/package.json +0 -66
- package/mac-agent/node_modules/fs-minipass/LICENSE +0 -15
- package/mac-agent/node_modules/fs-minipass/README.md +0 -70
- package/mac-agent/node_modules/fs-minipass/index.js +0 -422
- package/mac-agent/node_modules/fs-minipass/node_modules/minipass/LICENSE +0 -15
- package/mac-agent/node_modules/fs-minipass/node_modules/minipass/README.md +0 -728
- package/mac-agent/node_modules/fs-minipass/node_modules/minipass/index.d.ts +0 -155
- package/mac-agent/node_modules/fs-minipass/node_modules/minipass/index.js +0 -649
- package/mac-agent/node_modules/fs-minipass/node_modules/minipass/package.json +0 -56
- package/mac-agent/node_modules/fs-minipass/package.json +0 -39
- package/mac-agent/node_modules/fs.realpath/LICENSE +0 -43
- package/mac-agent/node_modules/fs.realpath/README.md +0 -33
- package/mac-agent/node_modules/fs.realpath/index.js +0 -66
- package/mac-agent/node_modules/fs.realpath/old.js +0 -303
- package/mac-agent/node_modules/fs.realpath/package.json +0 -26
- package/mac-agent/node_modules/fsevents/LICENSE +0 -22
- package/mac-agent/node_modules/fsevents/README.md +0 -89
- package/mac-agent/node_modules/fsevents/fsevents.d.ts +0 -46
- package/mac-agent/node_modules/fsevents/fsevents.js +0 -83
- package/mac-agent/node_modules/fsevents/fsevents.node +0 -0
- package/mac-agent/node_modules/fsevents/package.json +0 -62
- package/mac-agent/node_modules/function-bind/.eslintrc +0 -21
- package/mac-agent/node_modules/function-bind/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/function-bind/.github/SECURITY.md +0 -3
- package/mac-agent/node_modules/function-bind/.nycrc +0 -13
- package/mac-agent/node_modules/function-bind/CHANGELOG.md +0 -136
- package/mac-agent/node_modules/function-bind/LICENSE +0 -20
- package/mac-agent/node_modules/function-bind/README.md +0 -46
- package/mac-agent/node_modules/function-bind/implementation.js +0 -84
- package/mac-agent/node_modules/function-bind/index.js +0 -5
- package/mac-agent/node_modules/function-bind/package.json +0 -87
- package/mac-agent/node_modules/function-bind/test/.eslintrc +0 -9
- package/mac-agent/node_modules/function-bind/test/index.js +0 -252
- package/mac-agent/node_modules/gauge/CHANGELOG.md +0 -163
- package/mac-agent/node_modules/gauge/LICENSE +0 -13
- package/mac-agent/node_modules/gauge/README.md +0 -402
- package/mac-agent/node_modules/gauge/base-theme.js +0 -14
- package/mac-agent/node_modules/gauge/error.js +0 -24
- package/mac-agent/node_modules/gauge/has-color.js +0 -4
- package/mac-agent/node_modules/gauge/index.js +0 -233
- package/mac-agent/node_modules/gauge/package.json +0 -66
- package/mac-agent/node_modules/gauge/plumbing.js +0 -48
- package/mac-agent/node_modules/gauge/process.js +0 -3
- package/mac-agent/node_modules/gauge/progress-bar.js +0 -35
- package/mac-agent/node_modules/gauge/render-template.js +0 -178
- package/mac-agent/node_modules/gauge/set-immediate.js +0 -7
- package/mac-agent/node_modules/gauge/set-interval.js +0 -3
- package/mac-agent/node_modules/gauge/spin.js +0 -5
- package/mac-agent/node_modules/gauge/template-item.js +0 -72
- package/mac-agent/node_modules/gauge/theme-set.js +0 -114
- package/mac-agent/node_modules/gauge/themes.js +0 -56
- package/mac-agent/node_modules/gauge/wide-truncate.js +0 -25
- package/mac-agent/node_modules/get-caller-file/LICENSE.md +0 -6
- package/mac-agent/node_modules/get-caller-file/README.md +0 -4
- package/mac-agent/node_modules/get-caller-file/index.js +0 -20
- package/mac-agent/node_modules/get-caller-file/package.json +0 -31
- package/mac-agent/node_modules/get-intrinsic/.eslintrc +0 -42
- package/mac-agent/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/get-intrinsic/.nycrc +0 -9
- package/mac-agent/node_modules/get-intrinsic/CHANGELOG.md +0 -186
- package/mac-agent/node_modules/get-intrinsic/LICENSE +0 -21
- package/mac-agent/node_modules/get-intrinsic/README.md +0 -71
- package/mac-agent/node_modules/get-intrinsic/index.js +0 -378
- package/mac-agent/node_modules/get-intrinsic/package.json +0 -97
- package/mac-agent/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
- package/mac-agent/node_modules/get-proto/.eslintrc +0 -10
- package/mac-agent/node_modules/get-proto/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/get-proto/.nycrc +0 -9
- package/mac-agent/node_modules/get-proto/CHANGELOG.md +0 -21
- package/mac-agent/node_modules/get-proto/LICENSE +0 -21
- package/mac-agent/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
- package/mac-agent/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
- package/mac-agent/node_modules/get-proto/README.md +0 -50
- package/mac-agent/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
- package/mac-agent/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
- package/mac-agent/node_modules/get-proto/index.d.ts +0 -5
- package/mac-agent/node_modules/get-proto/index.js +0 -27
- package/mac-agent/node_modules/get-proto/package.json +0 -81
- package/mac-agent/node_modules/get-proto/test/index.js +0 -68
- package/mac-agent/node_modules/get-proto/tsconfig.json +0 -9
- package/mac-agent/node_modules/glob/LICENSE +0 -21
- package/mac-agent/node_modules/glob/README.md +0 -378
- package/mac-agent/node_modules/glob/common.js +0 -238
- package/mac-agent/node_modules/glob/glob.js +0 -790
- package/mac-agent/node_modules/glob/package.json +0 -55
- package/mac-agent/node_modules/glob/sync.js +0 -486
- package/mac-agent/node_modules/glob-parent/CHANGELOG.md +0 -110
- package/mac-agent/node_modules/glob-parent/LICENSE +0 -15
- package/mac-agent/node_modules/glob-parent/README.md +0 -137
- package/mac-agent/node_modules/glob-parent/index.js +0 -42
- package/mac-agent/node_modules/glob-parent/package.json +0 -48
- package/mac-agent/node_modules/gopd/.eslintrc +0 -16
- package/mac-agent/node_modules/gopd/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/gopd/CHANGELOG.md +0 -45
- package/mac-agent/node_modules/gopd/LICENSE +0 -21
- package/mac-agent/node_modules/gopd/README.md +0 -40
- package/mac-agent/node_modules/gopd/gOPD.d.ts +0 -1
- package/mac-agent/node_modules/gopd/gOPD.js +0 -4
- package/mac-agent/node_modules/gopd/index.d.ts +0 -5
- package/mac-agent/node_modules/gopd/index.js +0 -15
- package/mac-agent/node_modules/gopd/package.json +0 -77
- package/mac-agent/node_modules/gopd/test/index.js +0 -36
- package/mac-agent/node_modules/gopd/tsconfig.json +0 -9
- package/mac-agent/node_modules/graceful-fs/LICENSE +0 -15
- package/mac-agent/node_modules/graceful-fs/README.md +0 -143
- package/mac-agent/node_modules/graceful-fs/clone.js +0 -23
- package/mac-agent/node_modules/graceful-fs/graceful-fs.js +0 -448
- package/mac-agent/node_modules/graceful-fs/legacy-streams.js +0 -118
- package/mac-agent/node_modules/graceful-fs/package.json +0 -53
- package/mac-agent/node_modules/graceful-fs/polyfills.js +0 -355
- package/mac-agent/node_modules/has-flag/index.js +0 -8
- package/mac-agent/node_modules/has-flag/license +0 -9
- package/mac-agent/node_modules/has-flag/package.json +0 -44
- package/mac-agent/node_modules/has-flag/readme.md +0 -70
- package/mac-agent/node_modules/has-property-descriptors/.eslintrc +0 -13
- package/mac-agent/node_modules/has-property-descriptors/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/has-property-descriptors/.nycrc +0 -9
- package/mac-agent/node_modules/has-property-descriptors/CHANGELOG.md +0 -35
- package/mac-agent/node_modules/has-property-descriptors/LICENSE +0 -21
- package/mac-agent/node_modules/has-property-descriptors/README.md +0 -43
- package/mac-agent/node_modules/has-property-descriptors/index.js +0 -22
- package/mac-agent/node_modules/has-property-descriptors/package.json +0 -77
- package/mac-agent/node_modules/has-property-descriptors/test/index.js +0 -57
- package/mac-agent/node_modules/has-symbols/.eslintrc +0 -11
- package/mac-agent/node_modules/has-symbols/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/has-symbols/.nycrc +0 -9
- package/mac-agent/node_modules/has-symbols/CHANGELOG.md +0 -91
- package/mac-agent/node_modules/has-symbols/LICENSE +0 -21
- package/mac-agent/node_modules/has-symbols/README.md +0 -46
- package/mac-agent/node_modules/has-symbols/index.d.ts +0 -3
- package/mac-agent/node_modules/has-symbols/index.js +0 -14
- package/mac-agent/node_modules/has-symbols/package.json +0 -111
- package/mac-agent/node_modules/has-symbols/shams.d.ts +0 -3
- package/mac-agent/node_modules/has-symbols/shams.js +0 -45
- package/mac-agent/node_modules/has-symbols/test/index.js +0 -22
- package/mac-agent/node_modules/has-symbols/test/shams/core-js.js +0 -29
- package/mac-agent/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
- package/mac-agent/node_modules/has-symbols/test/tests.js +0 -58
- package/mac-agent/node_modules/has-symbols/tsconfig.json +0 -10
- package/mac-agent/node_modules/has-tostringtag/.eslintrc +0 -5
- package/mac-agent/node_modules/has-tostringtag/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/has-tostringtag/.nycrc +0 -13
- package/mac-agent/node_modules/has-tostringtag/CHANGELOG.md +0 -42
- package/mac-agent/node_modules/has-tostringtag/LICENSE +0 -21
- package/mac-agent/node_modules/has-tostringtag/README.md +0 -46
- package/mac-agent/node_modules/has-tostringtag/index.d.ts +0 -3
- package/mac-agent/node_modules/has-tostringtag/index.js +0 -8
- package/mac-agent/node_modules/has-tostringtag/package.json +0 -108
- package/mac-agent/node_modules/has-tostringtag/shams.d.ts +0 -3
- package/mac-agent/node_modules/has-tostringtag/shams.js +0 -8
- package/mac-agent/node_modules/has-tostringtag/test/index.js +0 -21
- package/mac-agent/node_modules/has-tostringtag/test/shams/core-js.js +0 -31
- package/mac-agent/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +0 -30
- package/mac-agent/node_modules/has-tostringtag/test/tests.js +0 -15
- package/mac-agent/node_modules/has-tostringtag/tsconfig.json +0 -49
- package/mac-agent/node_modules/has-unicode/LICENSE +0 -14
- package/mac-agent/node_modules/has-unicode/README.md +0 -43
- package/mac-agent/node_modules/has-unicode/index.js +0 -16
- package/mac-agent/node_modules/has-unicode/package.json +0 -30
- package/mac-agent/node_modules/hasown/.eslintrc +0 -5
- package/mac-agent/node_modules/hasown/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/hasown/.nycrc +0 -13
- package/mac-agent/node_modules/hasown/CHANGELOG.md +0 -40
- package/mac-agent/node_modules/hasown/LICENSE +0 -21
- package/mac-agent/node_modules/hasown/README.md +0 -40
- package/mac-agent/node_modules/hasown/index.d.ts +0 -3
- package/mac-agent/node_modules/hasown/index.js +0 -8
- package/mac-agent/node_modules/hasown/package.json +0 -92
- package/mac-agent/node_modules/hasown/tsconfig.json +0 -6
- package/mac-agent/node_modules/hosted-git-info/CHANGELOG.md +0 -151
- package/mac-agent/node_modules/hosted-git-info/LICENSE +0 -13
- package/mac-agent/node_modules/hosted-git-info/README.md +0 -133
- package/mac-agent/node_modules/hosted-git-info/git-host-info.js +0 -79
- package/mac-agent/node_modules/hosted-git-info/git-host.js +0 -156
- package/mac-agent/node_modules/hosted-git-info/index.js +0 -148
- package/mac-agent/node_modules/hosted-git-info/package.json +0 -40
- package/mac-agent/node_modules/https-proxy-agent/README.md +0 -137
- package/mac-agent/node_modules/https-proxy-agent/dist/agent.d.ts +0 -30
- package/mac-agent/node_modules/https-proxy-agent/dist/agent.js +0 -177
- package/mac-agent/node_modules/https-proxy-agent/dist/agent.js.map +0 -1
- package/mac-agent/node_modules/https-proxy-agent/dist/index.d.ts +0 -23
- package/mac-agent/node_modules/https-proxy-agent/dist/index.js +0 -14
- package/mac-agent/node_modules/https-proxy-agent/dist/index.js.map +0 -1
- package/mac-agent/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -7
- package/mac-agent/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -66
- package/mac-agent/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
- package/mac-agent/node_modules/https-proxy-agent/package.json +0 -56
- package/mac-agent/node_modules/ignore-by-default/LICENSE +0 -14
- package/mac-agent/node_modules/ignore-by-default/README.md +0 -26
- package/mac-agent/node_modules/ignore-by-default/index.js +0 -12
- package/mac-agent/node_modules/ignore-by-default/package.json +0 -34
- package/mac-agent/node_modules/inflight/LICENSE +0 -15
- package/mac-agent/node_modules/inflight/README.md +0 -37
- package/mac-agent/node_modules/inflight/inflight.js +0 -54
- package/mac-agent/node_modules/inflight/package.json +0 -29
- package/mac-agent/node_modules/inherits/LICENSE +0 -16
- package/mac-agent/node_modules/inherits/README.md +0 -42
- package/mac-agent/node_modules/inherits/inherits.js +0 -9
- package/mac-agent/node_modules/inherits/inherits_browser.js +0 -27
- package/mac-agent/node_modules/inherits/package.json +0 -29
- package/mac-agent/node_modules/invert-kv/index.js +0 -15
- package/mac-agent/node_modules/invert-kv/package.json +0 -33
- package/mac-agent/node_modules/invert-kv/readme.md +0 -25
- package/mac-agent/node_modules/is-arrayish/LICENSE +0 -21
- package/mac-agent/node_modules/is-arrayish/README.md +0 -16
- package/mac-agent/node_modules/is-arrayish/index.js +0 -9
- package/mac-agent/node_modules/is-arrayish/package.json +0 -45
- package/mac-agent/node_modules/is-arrayish/yarn-error.log +0 -1443
- package/mac-agent/node_modules/is-binary-path/index.d.ts +0 -17
- package/mac-agent/node_modules/is-binary-path/index.js +0 -7
- package/mac-agent/node_modules/is-binary-path/license +0 -9
- package/mac-agent/node_modules/is-binary-path/package.json +0 -40
- package/mac-agent/node_modules/is-binary-path/readme.md +0 -34
- package/mac-agent/node_modules/is-core-module/.eslintrc +0 -18
- package/mac-agent/node_modules/is-core-module/.nycrc +0 -9
- package/mac-agent/node_modules/is-core-module/CHANGELOG.md +0 -218
- package/mac-agent/node_modules/is-core-module/LICENSE +0 -20
- package/mac-agent/node_modules/is-core-module/README.md +0 -40
- package/mac-agent/node_modules/is-core-module/core.json +0 -162
- package/mac-agent/node_modules/is-core-module/index.js +0 -69
- package/mac-agent/node_modules/is-core-module/package.json +0 -76
- package/mac-agent/node_modules/is-core-module/test/index.js +0 -157
- package/mac-agent/node_modules/is-extglob/LICENSE +0 -21
- package/mac-agent/node_modules/is-extglob/README.md +0 -107
- package/mac-agent/node_modules/is-extglob/index.js +0 -20
- package/mac-agent/node_modules/is-extglob/package.json +0 -69
- package/mac-agent/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/mac-agent/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/mac-agent/node_modules/is-fullwidth-code-point/license +0 -9
- package/mac-agent/node_modules/is-fullwidth-code-point/package.json +0 -42
- package/mac-agent/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/mac-agent/node_modules/is-glob/LICENSE +0 -21
- package/mac-agent/node_modules/is-glob/README.md +0 -206
- package/mac-agent/node_modules/is-glob/index.js +0 -150
- package/mac-agent/node_modules/is-glob/package.json +0 -81
- package/mac-agent/node_modules/is-number/LICENSE +0 -21
- package/mac-agent/node_modules/is-number/README.md +0 -187
- package/mac-agent/node_modules/is-number/index.js +0 -18
- package/mac-agent/node_modules/is-number/package.json +0 -82
- package/mac-agent/node_modules/is-stream/index.d.ts +0 -79
- package/mac-agent/node_modules/is-stream/index.js +0 -28
- package/mac-agent/node_modules/is-stream/license +0 -9
- package/mac-agent/node_modules/is-stream/package.json +0 -42
- package/mac-agent/node_modules/is-stream/readme.md +0 -60
- package/mac-agent/node_modules/is-utf8/LICENSE +0 -9
- package/mac-agent/node_modules/is-utf8/README.md +0 -16
- package/mac-agent/node_modules/is-utf8/is-utf8.js +0 -76
- package/mac-agent/node_modules/is-utf8/package.json +0 -19
- package/mac-agent/node_modules/isexe/LICENSE +0 -15
- package/mac-agent/node_modules/isexe/README.md +0 -51
- package/mac-agent/node_modules/isexe/index.js +0 -57
- package/mac-agent/node_modules/isexe/mode.js +0 -41
- package/mac-agent/node_modules/isexe/package.json +0 -31
- package/mac-agent/node_modules/isexe/test/basic.js +0 -221
- package/mac-agent/node_modules/isexe/windows.js +0 -42
- package/mac-agent/node_modules/kuler/.travis.yml +0 -5
- package/mac-agent/node_modules/kuler/LICENSE +0 -7
- package/mac-agent/node_modules/kuler/README.md +0 -40
- package/mac-agent/node_modules/kuler/index.js +0 -118
- package/mac-agent/node_modules/kuler/package.json +0 -34
- package/mac-agent/node_modules/kuler/test.js +0 -23
- package/mac-agent/node_modules/lcid/index.js +0 -22
- package/mac-agent/node_modules/lcid/lcid.json +0 -203
- package/mac-agent/node_modules/lcid/license +0 -21
- package/mac-agent/node_modules/lcid/package.json +0 -46
- package/mac-agent/node_modules/lcid/readme.md +0 -35
- package/mac-agent/node_modules/load-json-file/index.js +0 -21
- package/mac-agent/node_modules/load-json-file/license +0 -21
- package/mac-agent/node_modules/load-json-file/package.json +0 -46
- package/mac-agent/node_modules/load-json-file/readme.md +0 -45
- package/mac-agent/node_modules/logform/.babelrc +0 -3
- package/mac-agent/node_modules/logform/.eslintrc +0 -7
- package/mac-agent/node_modules/logform/.gitattributes +0 -1
- package/mac-agent/node_modules/logform/CHANGELOG.md +0 -309
- package/mac-agent/node_modules/logform/LICENSE +0 -21
- package/mac-agent/node_modules/logform/README.md +0 -653
- package/mac-agent/node_modules/logform/align.js +0 -14
- package/mac-agent/node_modules/logform/browser.js +0 -38
- package/mac-agent/node_modules/logform/cli.js +0 -52
- package/mac-agent/node_modules/logform/colorize.js +0 -122
- package/mac-agent/node_modules/logform/combine.js +0 -66
- package/mac-agent/node_modules/logform/dist/align.js +0 -14
- package/mac-agent/node_modules/logform/dist/browser.js +0 -72
- package/mac-agent/node_modules/logform/dist/cli.js +0 -62
- package/mac-agent/node_modules/logform/dist/colorize.js +0 -131
- package/mac-agent/node_modules/logform/dist/combine.js +0 -62
- package/mac-agent/node_modules/logform/dist/errors.js +0 -44
- package/mac-agent/node_modules/logform/dist/format.js +0 -70
- package/mac-agent/node_modules/logform/dist/index.js +0 -86
- package/mac-agent/node_modules/logform/dist/json.js +0 -30
- package/mac-agent/node_modules/logform/dist/label.js +0 -18
- package/mac-agent/node_modules/logform/dist/levels.js +0 -13
- package/mac-agent/node_modules/logform/dist/logstash.js +0 -28
- package/mac-agent/node_modules/logform/dist/metadata.js +0 -56
- package/mac-agent/node_modules/logform/dist/ms.js +0 -18
- package/mac-agent/node_modules/logform/dist/pad-levels.js +0 -110
- package/mac-agent/node_modules/logform/dist/pretty-print.js +0 -32
- package/mac-agent/node_modules/logform/dist/printf.js +0 -33
- package/mac-agent/node_modules/logform/dist/simple.js +0 -32
- package/mac-agent/node_modules/logform/dist/splat.js +0 -143
- package/mac-agent/node_modules/logform/dist/timestamp.js +0 -26
- package/mac-agent/node_modules/logform/dist/uncolorize.js +0 -25
- package/mac-agent/node_modules/logform/errors.js +0 -41
- package/mac-agent/node_modules/logform/format.js +0 -52
- package/mac-agent/node_modules/logform/index.d.ts +0 -201
- package/mac-agent/node_modules/logform/index.js +0 -52
- package/mac-agent/node_modules/logform/json.js +0 -30
- package/mac-agent/node_modules/logform/label.js +0 -19
- package/mac-agent/node_modules/logform/levels.js +0 -12
- package/mac-agent/node_modules/logform/logstash.js +0 -29
- package/mac-agent/node_modules/logform/metadata.js +0 -61
- package/mac-agent/node_modules/logform/ms.js +0 -18
- package/mac-agent/node_modules/logform/package.json +0 -53
- package/mac-agent/node_modules/logform/pad-levels.js +0 -83
- package/mac-agent/node_modules/logform/pretty-print.js +0 -29
- package/mac-agent/node_modules/logform/printf.js +0 -26
- package/mac-agent/node_modules/logform/simple.js +0 -33
- package/mac-agent/node_modules/logform/splat.js +0 -132
- package/mac-agent/node_modules/logform/timestamp.js +0 -30
- package/mac-agent/node_modules/logform/tsconfig.json +0 -22
- package/mac-agent/node_modules/logform/uncolorize.js +0 -27
- package/mac-agent/node_modules/make-dir/index.d.ts +0 -66
- package/mac-agent/node_modules/make-dir/index.js +0 -156
- package/mac-agent/node_modules/make-dir/license +0 -9
- package/mac-agent/node_modules/make-dir/node_modules/semver/LICENSE +0 -15
- package/mac-agent/node_modules/make-dir/node_modules/semver/README.md +0 -443
- package/mac-agent/node_modules/make-dir/node_modules/semver/bin/semver.js +0 -174
- package/mac-agent/node_modules/make-dir/node_modules/semver/package.json +0 -38
- package/mac-agent/node_modules/make-dir/node_modules/semver/range.bnf +0 -16
- package/mac-agent/node_modules/make-dir/node_modules/semver/semver.js +0 -1643
- package/mac-agent/node_modules/make-dir/package.json +0 -59
- package/mac-agent/node_modules/make-dir/readme.md +0 -125
- package/mac-agent/node_modules/math-intrinsics/.eslintrc +0 -16
- package/mac-agent/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/math-intrinsics/CHANGELOG.md +0 -24
- package/mac-agent/node_modules/math-intrinsics/LICENSE +0 -21
- package/mac-agent/node_modules/math-intrinsics/README.md +0 -50
- package/mac-agent/node_modules/math-intrinsics/abs.d.ts +0 -1
- package/mac-agent/node_modules/math-intrinsics/abs.js +0 -4
- package/mac-agent/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
- package/mac-agent/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
- package/mac-agent/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
- package/mac-agent/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
- package/mac-agent/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
- package/mac-agent/node_modules/math-intrinsics/constants/maxValue.js +0 -5
- package/mac-agent/node_modules/math-intrinsics/floor.d.ts +0 -1
- package/mac-agent/node_modules/math-intrinsics/floor.js +0 -4
- package/mac-agent/node_modules/math-intrinsics/isFinite.d.ts +0 -3
- package/mac-agent/node_modules/math-intrinsics/isFinite.js +0 -12
- package/mac-agent/node_modules/math-intrinsics/isInteger.d.ts +0 -3
- package/mac-agent/node_modules/math-intrinsics/isInteger.js +0 -16
- package/mac-agent/node_modules/math-intrinsics/isNaN.d.ts +0 -1
- package/mac-agent/node_modules/math-intrinsics/isNaN.js +0 -6
- package/mac-agent/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
- package/mac-agent/node_modules/math-intrinsics/isNegativeZero.js +0 -6
- package/mac-agent/node_modules/math-intrinsics/max.d.ts +0 -1
- package/mac-agent/node_modules/math-intrinsics/max.js +0 -4
- package/mac-agent/node_modules/math-intrinsics/min.d.ts +0 -1
- package/mac-agent/node_modules/math-intrinsics/min.js +0 -4
- package/mac-agent/node_modules/math-intrinsics/mod.d.ts +0 -3
- package/mac-agent/node_modules/math-intrinsics/mod.js +0 -9
- package/mac-agent/node_modules/math-intrinsics/package.json +0 -86
- package/mac-agent/node_modules/math-intrinsics/pow.d.ts +0 -1
- package/mac-agent/node_modules/math-intrinsics/pow.js +0 -4
- package/mac-agent/node_modules/math-intrinsics/round.d.ts +0 -1
- package/mac-agent/node_modules/math-intrinsics/round.js +0 -4
- package/mac-agent/node_modules/math-intrinsics/sign.d.ts +0 -3
- package/mac-agent/node_modules/math-intrinsics/sign.js +0 -11
- package/mac-agent/node_modules/math-intrinsics/test/index.js +0 -192
- package/mac-agent/node_modules/math-intrinsics/tsconfig.json +0 -3
- package/mac-agent/node_modules/mime-db/HISTORY.md +0 -507
- package/mac-agent/node_modules/mime-db/LICENSE +0 -23
- package/mac-agent/node_modules/mime-db/README.md +0 -100
- package/mac-agent/node_modules/mime-db/db.json +0 -8519
- package/mac-agent/node_modules/mime-db/index.js +0 -12
- package/mac-agent/node_modules/mime-db/package.json +0 -60
- package/mac-agent/node_modules/mime-types/HISTORY.md +0 -397
- package/mac-agent/node_modules/mime-types/LICENSE +0 -23
- package/mac-agent/node_modules/mime-types/README.md +0 -113
- package/mac-agent/node_modules/mime-types/index.js +0 -188
- package/mac-agent/node_modules/mime-types/package.json +0 -44
- package/mac-agent/node_modules/minimatch/LICENSE +0 -15
- package/mac-agent/node_modules/minimatch/README.md +0 -230
- package/mac-agent/node_modules/minimatch/minimatch.js +0 -947
- package/mac-agent/node_modules/minimatch/package.json +0 -33
- package/mac-agent/node_modules/minipass/LICENSE +0 -15
- package/mac-agent/node_modules/minipass/README.md +0 -769
- package/mac-agent/node_modules/minipass/index.d.ts +0 -152
- package/mac-agent/node_modules/minipass/index.js +0 -702
- package/mac-agent/node_modules/minipass/index.mjs +0 -702
- package/mac-agent/node_modules/minipass/package.json +0 -76
- package/mac-agent/node_modules/minizlib/LICENSE +0 -26
- package/mac-agent/node_modules/minizlib/README.md +0 -60
- package/mac-agent/node_modules/minizlib/constants.js +0 -115
- package/mac-agent/node_modules/minizlib/index.js +0 -348
- package/mac-agent/node_modules/minizlib/node_modules/minipass/LICENSE +0 -15
- package/mac-agent/node_modules/minizlib/node_modules/minipass/README.md +0 -728
- package/mac-agent/node_modules/minizlib/node_modules/minipass/index.d.ts +0 -155
- package/mac-agent/node_modules/minizlib/node_modules/minipass/index.js +0 -649
- package/mac-agent/node_modules/minizlib/node_modules/minipass/package.json +0 -56
- package/mac-agent/node_modules/minizlib/package.json +0 -42
- package/mac-agent/node_modules/mkdirp/CHANGELOG.md +0 -15
- package/mac-agent/node_modules/mkdirp/LICENSE +0 -21
- package/mac-agent/node_modules/mkdirp/bin/cmd.js +0 -68
- package/mac-agent/node_modules/mkdirp/index.js +0 -31
- package/mac-agent/node_modules/mkdirp/lib/find-made.js +0 -29
- package/mac-agent/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
- package/mac-agent/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
- package/mac-agent/node_modules/mkdirp/lib/opts-arg.js +0 -23
- package/mac-agent/node_modules/mkdirp/lib/path-arg.js +0 -29
- package/mac-agent/node_modules/mkdirp/lib/use-native.js +0 -10
- package/mac-agent/node_modules/mkdirp/package.json +0 -44
- package/mac-agent/node_modules/mkdirp/readme.markdown +0 -266
- package/mac-agent/node_modules/ms/index.js +0 -162
- package/mac-agent/node_modules/ms/license.md +0 -21
- package/mac-agent/node_modules/ms/package.json +0 -38
- package/mac-agent/node_modules/ms/readme.md +0 -59
- package/mac-agent/node_modules/nan/.github/workflows/ci.yml +0 -52
- package/mac-agent/node_modules/nan/CHANGELOG.md +0 -577
- package/mac-agent/node_modules/nan/CMakeLists.txt +0 -138
- package/mac-agent/node_modules/nan/LICENSE.md +0 -9
- package/mac-agent/node_modules/nan/README.md +0 -455
- package/mac-agent/node_modules/nan/doc/asyncworker.md +0 -146
- package/mac-agent/node_modules/nan/doc/buffers.md +0 -54
- package/mac-agent/node_modules/nan/doc/callback.md +0 -76
- package/mac-agent/node_modules/nan/doc/converters.md +0 -41
- package/mac-agent/node_modules/nan/doc/errors.md +0 -226
- package/mac-agent/node_modules/nan/doc/json.md +0 -62
- package/mac-agent/node_modules/nan/doc/maybe_types.md +0 -583
- package/mac-agent/node_modules/nan/doc/methods.md +0 -672
- package/mac-agent/node_modules/nan/doc/new.md +0 -147
- package/mac-agent/node_modules/nan/doc/node_misc.md +0 -123
- package/mac-agent/node_modules/nan/doc/object_wrappers.md +0 -263
- package/mac-agent/node_modules/nan/doc/persistent.md +0 -296
- package/mac-agent/node_modules/nan/doc/scopes.md +0 -73
- package/mac-agent/node_modules/nan/doc/script.md +0 -58
- package/mac-agent/node_modules/nan/doc/string_bytes.md +0 -62
- package/mac-agent/node_modules/nan/doc/v8_internals.md +0 -199
- package/mac-agent/node_modules/nan/doc/v8_misc.md +0 -85
- package/mac-agent/node_modules/nan/include_dirs.js +0 -1
- package/mac-agent/node_modules/nan/nan.h +0 -3049
- package/mac-agent/node_modules/nan/nan_callbacks.h +0 -128
- package/mac-agent/node_modules/nan/nan_callbacks_12_inl.h +0 -676
- package/mac-agent/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
- package/mac-agent/node_modules/nan/nan_converters.h +0 -72
- package/mac-agent/node_modules/nan/nan_converters_43_inl.h +0 -68
- package/mac-agent/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
- package/mac-agent/node_modules/nan/nan_define_own_property_helper.h +0 -29
- package/mac-agent/node_modules/nan/nan_implementation_12_inl.h +0 -430
- package/mac-agent/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
- package/mac-agent/node_modules/nan/nan_json.h +0 -166
- package/mac-agent/node_modules/nan/nan_maybe_43_inl.h +0 -356
- package/mac-agent/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
- package/mac-agent/node_modules/nan/nan_new.h +0 -340
- package/mac-agent/node_modules/nan/nan_object_wrap.h +0 -156
- package/mac-agent/node_modules/nan/nan_persistent_12_inl.h +0 -132
- package/mac-agent/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
- package/mac-agent/node_modules/nan/nan_private.h +0 -73
- package/mac-agent/node_modules/nan/nan_scriptorigin.h +0 -95
- package/mac-agent/node_modules/nan/nan_string_bytes.h +0 -305
- package/mac-agent/node_modules/nan/nan_typedarray_contents.h +0 -96
- package/mac-agent/node_modules/nan/nan_weak.h +0 -437
- package/mac-agent/node_modules/nan/package.json +0 -38
- package/mac-agent/node_modules/nan/tools/1to2.js +0 -412
- package/mac-agent/node_modules/nan/tools/README.md +0 -14
- package/mac-agent/node_modules/nan/tools/package.json +0 -19
- package/mac-agent/node_modules/node-addon-api/.editorconfig +0 -8
- package/mac-agent/node_modules/node-addon-api/.travis.yml +0 -65
- package/mac-agent/node_modules/node-addon-api/CHANGELOG.md +0 -325
- package/mac-agent/node_modules/node-addon-api/CODE_OF_CONDUCT.md +0 -4
- package/mac-agent/node_modules/node-addon-api/CONTRIBUTING.md +0 -66
- package/mac-agent/node_modules/node-addon-api/LICENSE.md +0 -13
- package/mac-agent/node_modules/node-addon-api/README.md +0 -200
- package/mac-agent/node_modules/node-addon-api/appveyor.yml +0 -48
- package/mac-agent/node_modules/node-addon-api/doc/Doxyfile +0 -2450
- package/mac-agent/node_modules/node-addon-api/doc/array_buffer.md +0 -129
- package/mac-agent/node_modules/node-addon-api/doc/async_context.md +0 -76
- package/mac-agent/node_modules/node-addon-api/doc/async_operations.md +0 -31
- package/mac-agent/node_modules/node-addon-api/doc/async_worker.md +0 -397
- package/mac-agent/node_modules/node-addon-api/doc/basic_types.md +0 -415
- package/mac-agent/node_modules/node-addon-api/doc/bigint.md +0 -92
- package/mac-agent/node_modules/node-addon-api/doc/boolean.md +0 -64
- package/mac-agent/node_modules/node-addon-api/doc/buffer.md +0 -140
- package/mac-agent/node_modules/node-addon-api/doc/callback_scope.md +0 -54
- package/mac-agent/node_modules/node-addon-api/doc/callbackinfo.md +0 -97
- package/mac-agent/node_modules/node-addon-api/doc/checker-tool.md +0 -32
- package/mac-agent/node_modules/node-addon-api/doc/class_property_descriptor.md +0 -118
- package/mac-agent/node_modules/node-addon-api/doc/cmake-js.md +0 -19
- package/mac-agent/node_modules/node-addon-api/doc/conversion-tool.md +0 -28
- package/mac-agent/node_modules/node-addon-api/doc/creating_a_release.md +0 -62
- package/mac-agent/node_modules/node-addon-api/doc/dataview.md +0 -244
- package/mac-agent/node_modules/node-addon-api/doc/env.md +0 -63
- package/mac-agent/node_modules/node-addon-api/doc/error.md +0 -115
- package/mac-agent/node_modules/node-addon-api/doc/error_handling.md +0 -186
- package/mac-agent/node_modules/node-addon-api/doc/escapable_handle_scope.md +0 -82
- package/mac-agent/node_modules/node-addon-api/doc/external.md +0 -59
- package/mac-agent/node_modules/node-addon-api/doc/function.md +0 -294
- package/mac-agent/node_modules/node-addon-api/doc/function_reference.md +0 -238
- package/mac-agent/node_modules/node-addon-api/doc/generator.md +0 -13
- package/mac-agent/node_modules/node-addon-api/doc/handle_scope.md +0 -65
- package/mac-agent/node_modules/node-addon-api/doc/memory_management.md +0 -27
- package/mac-agent/node_modules/node-addon-api/doc/node-gyp.md +0 -82
- package/mac-agent/node_modules/node-addon-api/doc/number.md +0 -163
- package/mac-agent/node_modules/node-addon-api/doc/object.md +0 -202
- package/mac-agent/node_modules/node-addon-api/doc/object_lifetime_management.md +0 -83
- package/mac-agent/node_modules/node-addon-api/doc/object_reference.md +0 -117
- package/mac-agent/node_modules/node-addon-api/doc/object_wrap.md +0 -546
- package/mac-agent/node_modules/node-addon-api/doc/prebuild_tools.md +0 -16
- package/mac-agent/node_modules/node-addon-api/doc/promises.md +0 -74
- package/mac-agent/node_modules/node-addon-api/doc/property_descriptor.md +0 -231
- package/mac-agent/node_modules/node-addon-api/doc/range_error.md +0 -59
- package/mac-agent/node_modules/node-addon-api/doc/reference.md +0 -111
- package/mac-agent/node_modules/node-addon-api/doc/setup.md +0 -82
- package/mac-agent/node_modules/node-addon-api/doc/string.md +0 -89
- package/mac-agent/node_modules/node-addon-api/doc/symbol.md +0 -44
- package/mac-agent/node_modules/node-addon-api/doc/threadsafe_function.md +0 -303
- package/mac-agent/node_modules/node-addon-api/doc/type_error.md +0 -59
- package/mac-agent/node_modules/node-addon-api/doc/typed_array.md +0 -74
- package/mac-agent/node_modules/node-addon-api/doc/typed_array_of.md +0 -133
- package/mac-agent/node_modules/node-addon-api/doc/value.md +0 -269
- package/mac-agent/node_modules/node-addon-api/doc/version_management.md +0 -43
- package/mac-agent/node_modules/node-addon-api/doc/working_with_javascript_values.md +0 -14
- package/mac-agent/node_modules/node-addon-api/external-napi/node_api.h +0 -7
- package/mac-agent/node_modules/node-addon-api/index.js +0 -45
- package/mac-agent/node_modules/node-addon-api/napi-inl.deprecated.h +0 -192
- package/mac-agent/node_modules/node-addon-api/napi-inl.h +0 -4097
- package/mac-agent/node_modules/node-addon-api/napi.h +0 -2053
- package/mac-agent/node_modules/node-addon-api/package.json +0 -79
- package/mac-agent/node_modules/node-addon-api/src/node_api.cc +0 -3655
- package/mac-agent/node_modules/node-addon-api/src/node_api.gyp +0 -21
- package/mac-agent/node_modules/node-addon-api/src/node_api.h +0 -588
- package/mac-agent/node_modules/node-addon-api/src/node_api_types.h +0 -115
- package/mac-agent/node_modules/node-addon-api/src/node_internals.cc +0 -142
- package/mac-agent/node_modules/node-addon-api/src/node_internals.h +0 -157
- package/mac-agent/node_modules/node-addon-api/src/nothing.c +0 -0
- package/mac-agent/node_modules/node-addon-api/src/util-inl.h +0 -38
- package/mac-agent/node_modules/node-addon-api/src/util.h +0 -7
- package/mac-agent/node_modules/node-addon-api/tools/README.md +0 -67
- package/mac-agent/node_modules/node-addon-api/tools/check-napi.js +0 -100
- package/mac-agent/node_modules/node-addon-api/tools/conversion.js +0 -313
- package/mac-agent/node_modules/node-cmake/.jshintrc +0 -20
- package/mac-agent/node_modules/node-cmake/LICENSE.txt +0 -15
- package/mac-agent/node_modules/node-cmake/NodeJS.cmake +0 -637
- package/mac-agent/node_modules/node-cmake/README.md +0 -93
- package/mac-agent/node_modules/node-cmake/docs/Nan.md +0 -9
- package/mac-agent/node_modules/node-cmake/docs/NcmakeManual.md +0 -83
- package/mac-agent/node_modules/node-cmake/docs/NodeJSCmakeManual.md +0 -107
- package/mac-agent/node_modules/node-cmake/example/CMakeLists.txt +0 -8
- package/mac-agent/node_modules/node-cmake/example/README.md +0 -28
- package/mac-agent/node_modules/node-cmake/example/index.js +0 -2
- package/mac-agent/node_modules/node-cmake/example/package.json +0 -20
- package/mac-agent/node_modules/node-cmake/example/src/hello.cc +0 -16
- package/mac-agent/node_modules/node-cmake/index.js +0 -44
- package/mac-agent/node_modules/node-cmake/lib/embed.js +0 -17
- package/mac-agent/node_modules/node-cmake/lib/ncmake.js +0 -284
- package/mac-agent/node_modules/node-cmake/package.json +0 -34
- package/mac-agent/node_modules/node-cmake/src/win_delay_load_hook.c +0 -68
- package/mac-agent/node_modules/node-fetch/LICENSE.md +0 -22
- package/mac-agent/node_modules/node-fetch/README.md +0 -634
- package/mac-agent/node_modules/node-fetch/browser.js +0 -25
- package/mac-agent/node_modules/node-fetch/lib/index.es.js +0 -1777
- package/mac-agent/node_modules/node-fetch/lib/index.js +0 -1787
- package/mac-agent/node_modules/node-fetch/lib/index.mjs +0 -1775
- package/mac-agent/node_modules/node-fetch/package.json +0 -89
- package/mac-agent/node_modules/node-pty/LICENSE +0 -69
- package/mac-agent/node_modules/node-pty/README.md +0 -163
- package/mac-agent/node_modules/node-pty/binding.gyp +0 -117
- package/mac-agent/node_modules/node-pty/build/Makefile +0 -352
- package/mac-agent/node_modules/node-pty/build/Release/pty.node +0 -0
- package/mac-agent/node_modules/node-pty/build/Release/spawn-helper +0 -0
- package/mac-agent/node_modules/node-pty/build/binding.Makefile +0 -6
- package/mac-agent/node_modules/node-pty/build/gyp-mac-tool +0 -768
- package/mac-agent/node_modules/node-pty/build/pty.target.mk +0 -183
- package/mac-agent/node_modules/node-pty/build/spawn-helper.target.mk +0 -172
- package/mac-agent/node_modules/node-pty/deps/.editorconfig +0 -2
- package/mac-agent/node_modules/node-pty/deps/winpty/.drone.yml +0 -17
- package/mac-agent/node_modules/node-pty/deps/winpty/.gitattributes +0 -19
- package/mac-agent/node_modules/node-pty/deps/winpty/LICENSE +0 -21
- package/mac-agent/node_modules/node-pty/deps/winpty/Makefile +0 -166
- package/mac-agent/node_modules/node-pty/deps/winpty/README.md +0 -151
- package/mac-agent/node_modules/node-pty/deps/winpty/RELEASES.md +0 -280
- package/mac-agent/node_modules/node-pty/deps/winpty/VERSION.txt +0 -1
- package/mac-agent/node_modules/node-pty/deps/winpty/configure +0 -167
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/BufferResizeTests.cc +0 -90
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/ChangeScreenBuffer.cc +0 -53
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/ClearConsole.cc +0 -72
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/ConinMode.cc +0 -117
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +0 -116
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/ConoutMode.cc +0 -113
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/DebugClient.py +0 -42
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/DebugServer.py +0 -63
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/DumpLines.py +0 -5
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/EnableExtendedFlags.txt +0 -46
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Consolas.txt +0 -528
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Lucida.txt +0 -633
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP932.txt +0 -630
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP936.txt +0 -630
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP949.txt +0 -630
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP950.txt +0 -630
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/MinimumWindowWidths.txt +0 -16
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Results.txt +0 -4
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Windows10SetFontBugginess.txt +0 -144
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/FontSurvey.cc +0 -100
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/FormatChar.h +0 -21
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/FreezePerfTest.cc +0 -62
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/GetCh.cc +0 -20
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/GetConsolePos.cc +0 -41
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/GetFont.cc +0 -261
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +0 -51
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/IsNewConsole.cc +0 -87
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/MouseInputNotes.txt +0 -90
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/MoveConsoleWindow.cc +0 -34
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Notes.txt +0 -219
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/OSVersion.cc +0 -27
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/ScreenBufferFreezeInactive.cc +0 -101
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest.cc +0 -671
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest2.cc +0 -151
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/SelectAllTest.cc +0 -45
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/SetBufferSize.cc +0 -32
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/SetCursorPos.cc +0 -10
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/SetFont.cc +0 -145
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/SetWindowRect.cc +0 -36
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/ShowArgv.cc +0 -12
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/ShowConsoleInput.cc +0 -40
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Spew.py +0 -5
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/TestUtil.cc +0 -172
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/UnicodeDoubleWidthTest.cc +0 -102
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest1.cc +0 -246
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest2.cc +0 -130
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/UnixEcho.cc +0 -89
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Utf16Echo.cc +0 -46
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/VeryLargeRead.cc +0 -122
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/VkEscapeTest.cc +0 -56
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win10ResizeWhileFrozen.cc +0 -52
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win10WrapTest1.cc +0 -57
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win10WrapTest2.cc +0 -30
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win32Echo1.cc +0 -26
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win32Echo2.cc +0 -19
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win32Test1.cc +0 -46
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win32Test2.cc +0 -70
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win32Test3.cc +0 -78
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win32Write1.cc +0 -44
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/WindowsBugCrashReader.cc +0 -27
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/WriteConsole.cc +0 -106
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/build32.sh +0 -9
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/build64.sh +0 -9
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/color-test.sh +0 -212
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/font-notes.txt +0 -300
- package/mac-agent/node_modules/node-pty/deps/winpty/misc/winbug-15048.cc +0 -201
- package/mac-agent/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +0 -36
- package/mac-agent/node_modules/node-pty/deps/winpty/ship/common_ship.py +0 -53
- package/mac-agent/node_modules/node-pty/deps/winpty/ship/make_msvc_package.py +0 -165
- package/mac-agent/node_modules/node-pty/deps/winpty/ship/ship.py +0 -108
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Agent.cc +0 -605
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Agent.h +0 -103
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.cc +0 -84
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.h +0 -28
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.cc +0 -632
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.h +0 -28
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.cc +0 -852
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.h +0 -109
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.cc +0 -121
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.h +0 -36
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.cc +0 -152
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.h +0 -41
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Coord.h +0 -87
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.cc +0 -239
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.h +0 -32
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.cc +0 -422
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.h +0 -28
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/DsrSender.h +0 -30
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/EventLoop.cc +0 -99
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/EventLoop.h +0 -47
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/InputMap.cc +0 -246
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/InputMap.h +0 -114
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.cc +0 -71
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.h +0 -68
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.cc +0 -378
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.h +0 -125
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Scraper.cc +0 -699
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Scraper.h +0 -103
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/SimplePool.h +0 -75
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/SmallRect.h +0 -143
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Terminal.cc +0 -535
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Terminal.h +0 -69
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncoding.h +0 -157
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncodingTest.cc +0 -189
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Win32Console.cc +0 -107
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Win32Console.h +0 -67
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.cc +0 -193
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.h +0 -99
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/main.cc +0 -114
- package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/subdir.mk +0 -61
- package/mac-agent/node_modules/node-pty/deps/winpty/src/configurations.gypi +0 -60
- package/mac-agent/node_modules/node-pty/deps/winpty/src/debugserver/DebugServer.cc +0 -117
- package/mac-agent/node_modules/node-pty/deps/winpty/src/debugserver/subdir.mk +0 -41
- package/mac-agent/node_modules/node-pty/deps/winpty/src/include/winpty.h +0 -242
- package/mac-agent/node_modules/node-pty/deps/winpty/src/include/winpty_constants.h +0 -131
- package/mac-agent/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.cc +0 -75
- package/mac-agent/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.h +0 -28
- package/mac-agent/node_modules/node-pty/deps/winpty/src/libwinpty/LibWinptyException.h +0 -54
- package/mac-agent/node_modules/node-pty/deps/winpty/src/libwinpty/WinptyInternal.h +0 -72
- package/mac-agent/node_modules/node-pty/deps/winpty/src/libwinpty/subdir.mk +0 -46
- package/mac-agent/node_modules/node-pty/deps/winpty/src/libwinpty/winpty.cc +0 -970
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/AgentMsg.h +0 -38
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.cc +0 -122
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.h +0 -73
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/Buffer.cc +0 -103
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/Buffer.h +0 -102
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/DebugClient.cc +0 -187
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/DebugClient.h +0 -38
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/GenRandom.cc +0 -138
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/GenRandom.h +0 -55
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +0 -13
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/Mutex.h +0 -54
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/OsModule.h +0 -63
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.cc +0 -36
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.h +0 -45
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/PrecompiledHeader.h +0 -43
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/StringBuilder.h +0 -227
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/StringBuilderTest.cc +0 -114
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/StringUtil.cc +0 -55
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/StringUtil.h +0 -80
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/TimeMeasurement.h +0 -63
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/UnixCtrlChars.h +0 -45
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +0 -20
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.cc +0 -460
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.h +0 -104
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.cc +0 -252
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.h +0 -29
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.cc +0 -55
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.h +0 -64
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WinptyException.cc +0 -57
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WinptyException.h +0 -43
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.cc +0 -42
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.h +0 -27
- package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/winpty_snprintf.h +0 -99
- package/mac-agent/node_modules/node-pty/deps/winpty/src/subdir.mk +0 -5
- package/mac-agent/node_modules/node-pty/deps/winpty/src/tests/subdir.mk +0 -28
- package/mac-agent/node_modules/node-pty/deps/winpty/src/tests/trivial_test.cc +0 -158
- package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.cc +0 -114
- package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.h +0 -56
- package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.cc +0 -80
- package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.h +0 -53
- package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.cc +0 -86
- package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.h +0 -31
- package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.cc +0 -70
- package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.h +0 -42
- package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/main.cc +0 -729
- package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/subdir.mk +0 -41
- package/mac-agent/node_modules/node-pty/deps/winpty/src/winpty.gyp +0 -206
- package/mac-agent/node_modules/node-pty/deps/winpty/vcbuild.bat +0 -83
- package/mac-agent/node_modules/node-pty/lib/conpty_console_list_agent.js +0 -20
- package/mac-agent/node_modules/node-pty/lib/conpty_console_list_agent.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/eventEmitter2.js +0 -47
- package/mac-agent/node_modules/node-pty/lib/eventEmitter2.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
- package/mac-agent/node_modules/node-pty/lib/eventEmitter2.test.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/index.js +0 -51
- package/mac-agent/node_modules/node-pty/lib/index.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/interfaces.js +0 -7
- package/mac-agent/node_modules/node-pty/lib/interfaces.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/shared/conout.js +0 -11
- package/mac-agent/node_modules/node-pty/lib/shared/conout.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/terminal.js +0 -190
- package/mac-agent/node_modules/node-pty/lib/terminal.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/terminal.test.js +0 -139
- package/mac-agent/node_modules/node-pty/lib/terminal.test.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/testUtils.test.js +0 -28
- package/mac-agent/node_modules/node-pty/lib/testUtils.test.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/types.js +0 -7
- package/mac-agent/node_modules/node-pty/lib/types.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/unixTerminal.js +0 -304
- package/mac-agent/node_modules/node-pty/lib/unixTerminal.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/unixTerminal.test.js +0 -330
- package/mac-agent/node_modules/node-pty/lib/unixTerminal.test.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/utils.js +0 -17
- package/mac-agent/node_modules/node-pty/lib/utils.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/windowsConoutConnection.js +0 -122
- package/mac-agent/node_modules/node-pty/lib/windowsConoutConnection.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/windowsPtyAgent.js +0 -324
- package/mac-agent/node_modules/node-pty/lib/windowsPtyAgent.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
- package/mac-agent/node_modules/node-pty/lib/windowsPtyAgent.test.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/windowsTerminal.js +0 -201
- package/mac-agent/node_modules/node-pty/lib/windowsTerminal.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/windowsTerminal.test.js +0 -203
- package/mac-agent/node_modules/node-pty/lib/windowsTerminal.test.js.map +0 -1
- package/mac-agent/node_modules/node-pty/lib/worker/conoutSocketWorker.js +0 -22
- package/mac-agent/node_modules/node-pty/lib/worker/conoutSocketWorker.js.map +0 -1
- package/mac-agent/node_modules/node-pty/package.json +0 -59
- package/mac-agent/node_modules/node-pty/scripts/post-install.js +0 -42
- package/mac-agent/node_modules/node-pty/scripts/publish.js +0 -62
- package/mac-agent/node_modules/node-pty/src/conpty_console_list_agent.ts +0 -19
- package/mac-agent/node_modules/node-pty/src/eventEmitter2.test.ts +0 -30
- package/mac-agent/node_modules/node-pty/src/eventEmitter2.ts +0 -48
- package/mac-agent/node_modules/node-pty/src/index.ts +0 -51
- package/mac-agent/node_modules/node-pty/src/interfaces.ts +0 -129
- package/mac-agent/node_modules/node-pty/src/native.d.ts +0 -56
- package/mac-agent/node_modules/node-pty/src/shared/conout.ts +0 -15
- package/mac-agent/node_modules/node-pty/src/terminal.test.ts +0 -119
- package/mac-agent/node_modules/node-pty/src/terminal.ts +0 -211
- package/mac-agent/node_modules/node-pty/src/testUtils.test.ts +0 -23
- package/mac-agent/node_modules/node-pty/src/tsconfig.json +0 -22
- package/mac-agent/node_modules/node-pty/src/types.ts +0 -15
- package/mac-agent/node_modules/node-pty/src/unix/pty.cc +0 -826
- package/mac-agent/node_modules/node-pty/src/unix/spawn-helper.cc +0 -23
- package/mac-agent/node_modules/node-pty/src/unixTerminal.test.ts +0 -335
- package/mac-agent/node_modules/node-pty/src/unixTerminal.ts +0 -320
- package/mac-agent/node_modules/node-pty/src/utils.ts +0 -9
- package/mac-agent/node_modules/node-pty/src/win/conpty.cc +0 -498
- package/mac-agent/node_modules/node-pty/src/win/conpty_console_list.cc +0 -43
- package/mac-agent/node_modules/node-pty/src/win/path_util.cc +0 -73
- package/mac-agent/node_modules/node-pty/src/win/path_util.h +0 -22
- package/mac-agent/node_modules/node-pty/src/win/winpty.cc +0 -312
- package/mac-agent/node_modules/node-pty/src/windowsConoutConnection.ts +0 -79
- package/mac-agent/node_modules/node-pty/src/windowsPtyAgent.test.ts +0 -94
- package/mac-agent/node_modules/node-pty/src/windowsPtyAgent.ts +0 -323
- package/mac-agent/node_modules/node-pty/src/windowsTerminal.test.ts +0 -214
- package/mac-agent/node_modules/node-pty/src/windowsTerminal.ts +0 -208
- package/mac-agent/node_modules/node-pty/src/worker/conoutSocketWorker.ts +0 -22
- package/mac-agent/node_modules/node-pty/typings/node-pty.d.ts +0 -203
- package/mac-agent/node_modules/nodemon/.prettierrc.json +0 -3
- package/mac-agent/node_modules/nodemon/LICENSE +0 -21
- package/mac-agent/node_modules/nodemon/README.md +0 -441
- package/mac-agent/node_modules/nodemon/bin/nodemon.js +0 -16
- package/mac-agent/node_modules/nodemon/bin/windows-kill.exe +0 -0
- package/mac-agent/node_modules/nodemon/doc/cli/authors.txt +0 -8
- package/mac-agent/node_modules/nodemon/doc/cli/config.txt +0 -44
- package/mac-agent/node_modules/nodemon/doc/cli/help.txt +0 -29
- package/mac-agent/node_modules/nodemon/doc/cli/logo.txt +0 -20
- package/mac-agent/node_modules/nodemon/doc/cli/options.txt +0 -36
- package/mac-agent/node_modules/nodemon/doc/cli/topics.txt +0 -8
- package/mac-agent/node_modules/nodemon/doc/cli/usage.txt +0 -3
- package/mac-agent/node_modules/nodemon/doc/cli/whoami.txt +0 -9
- package/mac-agent/node_modules/nodemon/index.d.ts +0 -125
- package/mac-agent/node_modules/nodemon/jsconfig.json +0 -7
- package/mac-agent/node_modules/nodemon/lib/cli/index.js +0 -49
- package/mac-agent/node_modules/nodemon/lib/cli/parse.js +0 -230
- package/mac-agent/node_modules/nodemon/lib/config/command.js +0 -43
- package/mac-agent/node_modules/nodemon/lib/config/defaults.js +0 -34
- package/mac-agent/node_modules/nodemon/lib/config/exec.js +0 -234
- package/mac-agent/node_modules/nodemon/lib/config/index.js +0 -93
- package/mac-agent/node_modules/nodemon/lib/config/load.js +0 -225
- package/mac-agent/node_modules/nodemon/lib/help/index.js +0 -27
- package/mac-agent/node_modules/nodemon/lib/index.js +0 -1
- package/mac-agent/node_modules/nodemon/lib/monitor/index.js +0 -4
- package/mac-agent/node_modules/nodemon/lib/monitor/match.js +0 -287
- package/mac-agent/node_modules/nodemon/lib/monitor/run.js +0 -562
- package/mac-agent/node_modules/nodemon/lib/monitor/signals.js +0 -34
- package/mac-agent/node_modules/nodemon/lib/monitor/watch.js +0 -244
- package/mac-agent/node_modules/nodemon/lib/nodemon.js +0 -317
- package/mac-agent/node_modules/nodemon/lib/rules/add.js +0 -89
- package/mac-agent/node_modules/nodemon/lib/rules/index.js +0 -53
- package/mac-agent/node_modules/nodemon/lib/rules/parse.js +0 -43
- package/mac-agent/node_modules/nodemon/lib/spawn.js +0 -74
- package/mac-agent/node_modules/nodemon/lib/utils/bus.js +0 -44
- package/mac-agent/node_modules/nodemon/lib/utils/clone.js +0 -40
- package/mac-agent/node_modules/nodemon/lib/utils/colour.js +0 -26
- package/mac-agent/node_modules/nodemon/lib/utils/index.js +0 -103
- package/mac-agent/node_modules/nodemon/lib/utils/log.js +0 -82
- package/mac-agent/node_modules/nodemon/lib/utils/merge.js +0 -47
- package/mac-agent/node_modules/nodemon/lib/version.js +0 -100
- package/mac-agent/node_modules/nodemon/package.json +0 -75
- package/mac-agent/node_modules/nopt/CHANGELOG.md +0 -58
- package/mac-agent/node_modules/nopt/LICENSE +0 -15
- package/mac-agent/node_modules/nopt/README.md +0 -213
- package/mac-agent/node_modules/nopt/bin/nopt.js +0 -54
- package/mac-agent/node_modules/nopt/lib/nopt.js +0 -441
- package/mac-agent/node_modules/nopt/package.json +0 -34
- package/mac-agent/node_modules/normalize-package-data/AUTHORS +0 -4
- package/mac-agent/node_modules/normalize-package-data/LICENSE +0 -30
- package/mac-agent/node_modules/normalize-package-data/README.md +0 -106
- package/mac-agent/node_modules/normalize-package-data/lib/extract_description.js +0 -14
- package/mac-agent/node_modules/normalize-package-data/lib/fixer.js +0 -418
- package/mac-agent/node_modules/normalize-package-data/lib/make_warning.js +0 -23
- package/mac-agent/node_modules/normalize-package-data/lib/normalize.js +0 -39
- package/mac-agent/node_modules/normalize-package-data/lib/safe_format.js +0 -9
- package/mac-agent/node_modules/normalize-package-data/lib/typos.json +0 -25
- package/mac-agent/node_modules/normalize-package-data/lib/warning_messages.json +0 -30
- package/mac-agent/node_modules/normalize-package-data/node_modules/semver/LICENSE +0 -15
- package/mac-agent/node_modules/normalize-package-data/node_modules/semver/README.md +0 -412
- package/mac-agent/node_modules/normalize-package-data/node_modules/semver/bin/semver +0 -160
- package/mac-agent/node_modules/normalize-package-data/node_modules/semver/package.json +0 -38
- package/mac-agent/node_modules/normalize-package-data/node_modules/semver/range.bnf +0 -16
- package/mac-agent/node_modules/normalize-package-data/node_modules/semver/semver.js +0 -1525
- package/mac-agent/node_modules/normalize-package-data/package.json +0 -31
- package/mac-agent/node_modules/normalize-path/LICENSE +0 -21
- package/mac-agent/node_modules/normalize-path/README.md +0 -127
- package/mac-agent/node_modules/normalize-path/index.js +0 -35
- package/mac-agent/node_modules/normalize-path/package.json +0 -77
- package/mac-agent/node_modules/npmlog/LICENSE +0 -15
- package/mac-agent/node_modules/npmlog/README.md +0 -216
- package/mac-agent/node_modules/npmlog/log.js +0 -403
- package/mac-agent/node_modules/npmlog/package.json +0 -33
- package/mac-agent/node_modules/number-is-nan/index.js +0 -4
- package/mac-agent/node_modules/number-is-nan/license +0 -21
- package/mac-agent/node_modules/number-is-nan/package.json +0 -35
- package/mac-agent/node_modules/number-is-nan/readme.md +0 -28
- package/mac-agent/node_modules/object-assign/index.js +0 -90
- package/mac-agent/node_modules/object-assign/license +0 -21
- package/mac-agent/node_modules/object-assign/package.json +0 -42
- package/mac-agent/node_modules/object-assign/readme.md +0 -61
- package/mac-agent/node_modules/object-keys/.editorconfig +0 -13
- package/mac-agent/node_modules/object-keys/.eslintrc +0 -17
- package/mac-agent/node_modules/object-keys/.travis.yml +0 -277
- package/mac-agent/node_modules/object-keys/CHANGELOG.md +0 -232
- package/mac-agent/node_modules/object-keys/LICENSE +0 -21
- package/mac-agent/node_modules/object-keys/README.md +0 -76
- package/mac-agent/node_modules/object-keys/implementation.js +0 -122
- package/mac-agent/node_modules/object-keys/index.js +0 -32
- package/mac-agent/node_modules/object-keys/isArguments.js +0 -17
- package/mac-agent/node_modules/object-keys/package.json +0 -88
- package/mac-agent/node_modules/object-keys/test/index.js +0 -5
- package/mac-agent/node_modules/object.assign/.editorconfig +0 -20
- package/mac-agent/node_modules/object.assign/.eslintrc +0 -28
- package/mac-agent/node_modules/object.assign/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/object.assign/.nycrc +0 -9
- package/mac-agent/node_modules/object.assign/CHANGELOG.md +0 -246
- package/mac-agent/node_modules/object.assign/LICENSE +0 -21
- package/mac-agent/node_modules/object.assign/README.md +0 -136
- package/mac-agent/node_modules/object.assign/auto.js +0 -3
- package/mac-agent/node_modules/object.assign/dist/browser.js +0 -1304
- package/mac-agent/node_modules/object.assign/hasSymbols.js +0 -43
- package/mac-agent/node_modules/object.assign/implementation.js +0 -46
- package/mac-agent/node_modules/object.assign/index.js +0 -22
- package/mac-agent/node_modules/object.assign/package.json +0 -96
- package/mac-agent/node_modules/object.assign/polyfill.js +0 -55
- package/mac-agent/node_modules/object.assign/shim.js +0 -14
- package/mac-agent/node_modules/object.assign/test/implementation.js +0 -19
- package/mac-agent/node_modules/object.assign/test/index.js +0 -17
- package/mac-agent/node_modules/object.assign/test/native.js +0 -49
- package/mac-agent/node_modules/object.assign/test/ses-compat.js +0 -12
- package/mac-agent/node_modules/object.assign/test/shimmed.js +0 -52
- package/mac-agent/node_modules/object.assign/test/tests.js +0 -232
- package/mac-agent/node_modules/once/LICENSE +0 -15
- package/mac-agent/node_modules/once/README.md +0 -79
- package/mac-agent/node_modules/once/once.js +0 -42
- package/mac-agent/node_modules/once/package.json +0 -33
- package/mac-agent/node_modules/one-time/LICENSE +0 -22
- package/mac-agent/node_modules/one-time/README.md +0 -88
- package/mac-agent/node_modules/one-time/async.js +0 -43
- package/mac-agent/node_modules/one-time/index.js +0 -42
- package/mac-agent/node_modules/one-time/package.json +0 -34
- package/mac-agent/node_modules/os-locale/index.js +0 -127
- package/mac-agent/node_modules/os-locale/license +0 -21
- package/mac-agent/node_modules/os-locale/package.json +0 -43
- package/mac-agent/node_modules/os-locale/readme.md +0 -47
- package/mac-agent/node_modules/parse-json/index.js +0 -35
- package/mac-agent/node_modules/parse-json/license +0 -21
- package/mac-agent/node_modules/parse-json/package.json +0 -46
- package/mac-agent/node_modules/parse-json/readme.md +0 -83
- package/mac-agent/node_modules/parse-json/vendor/parse.js +0 -752
- package/mac-agent/node_modules/parse-json/vendor/unicode.js +0 -71
- package/mac-agent/node_modules/path-exists/index.js +0 -24
- package/mac-agent/node_modules/path-exists/license +0 -21
- package/mac-agent/node_modules/path-exists/package.json +0 -40
- package/mac-agent/node_modules/path-exists/readme.md +0 -45
- package/mac-agent/node_modules/path-is-absolute/index.js +0 -20
- package/mac-agent/node_modules/path-is-absolute/license +0 -21
- package/mac-agent/node_modules/path-is-absolute/package.json +0 -43
- package/mac-agent/node_modules/path-is-absolute/readme.md +0 -59
- package/mac-agent/node_modules/path-parse/LICENSE +0 -21
- package/mac-agent/node_modules/path-parse/README.md +0 -42
- package/mac-agent/node_modules/path-parse/index.js +0 -75
- package/mac-agent/node_modules/path-parse/package.json +0 -33
- package/mac-agent/node_modules/path-type/index.js +0 -29
- package/mac-agent/node_modules/path-type/license +0 -21
- package/mac-agent/node_modules/path-type/package.json +0 -52
- package/mac-agent/node_modules/path-type/readme.md +0 -42
- package/mac-agent/node_modules/picomatch/CHANGELOG.md +0 -136
- package/mac-agent/node_modules/picomatch/LICENSE +0 -21
- package/mac-agent/node_modules/picomatch/README.md +0 -708
- package/mac-agent/node_modules/picomatch/index.js +0 -3
- package/mac-agent/node_modules/picomatch/lib/constants.js +0 -179
- package/mac-agent/node_modules/picomatch/lib/parse.js +0 -1091
- package/mac-agent/node_modules/picomatch/lib/picomatch.js +0 -342
- package/mac-agent/node_modules/picomatch/lib/scan.js +0 -391
- package/mac-agent/node_modules/picomatch/lib/utils.js +0 -64
- package/mac-agent/node_modules/picomatch/package.json +0 -81
- package/mac-agent/node_modules/pify/index.js +0 -68
- package/mac-agent/node_modules/pify/license +0 -21
- package/mac-agent/node_modules/pify/package.json +0 -48
- package/mac-agent/node_modules/pify/readme.md +0 -119
- package/mac-agent/node_modules/pinkie/index.js +0 -292
- package/mac-agent/node_modules/pinkie/license +0 -21
- package/mac-agent/node_modules/pinkie/package.json +0 -36
- package/mac-agent/node_modules/pinkie/readme.md +0 -83
- package/mac-agent/node_modules/pinkie-promise/index.js +0 -3
- package/mac-agent/node_modules/pinkie-promise/license +0 -21
- package/mac-agent/node_modules/pinkie-promise/package.json +0 -35
- package/mac-agent/node_modules/pinkie-promise/readme.md +0 -28
- package/mac-agent/node_modules/proxy-from-env/.eslintrc +0 -29
- package/mac-agent/node_modules/proxy-from-env/.travis.yml +0 -10
- package/mac-agent/node_modules/proxy-from-env/LICENSE +0 -20
- package/mac-agent/node_modules/proxy-from-env/README.md +0 -131
- package/mac-agent/node_modules/proxy-from-env/index.js +0 -108
- package/mac-agent/node_modules/proxy-from-env/package.json +0 -34
- package/mac-agent/node_modules/proxy-from-env/test.js +0 -483
- package/mac-agent/node_modules/pstree.remy/.travis.yml +0 -8
- package/mac-agent/node_modules/pstree.remy/LICENSE +0 -7
- package/mac-agent/node_modules/pstree.remy/README.md +0 -26
- package/mac-agent/node_modules/pstree.remy/lib/index.js +0 -37
- package/mac-agent/node_modules/pstree.remy/lib/tree.js +0 -37
- package/mac-agent/node_modules/pstree.remy/lib/utils.js +0 -53
- package/mac-agent/node_modules/pstree.remy/package.json +0 -33
- package/mac-agent/node_modules/pstree.remy/tests/fixtures/index.js +0 -13
- package/mac-agent/node_modules/pstree.remy/tests/fixtures/out1 +0 -10
- package/mac-agent/node_modules/pstree.remy/tests/fixtures/out2 +0 -29
- package/mac-agent/node_modules/pstree.remy/tests/index.test.js +0 -51
- package/mac-agent/node_modules/read-pkg/index.js +0 -48
- package/mac-agent/node_modules/read-pkg/license +0 -21
- package/mac-agent/node_modules/read-pkg/package.json +0 -42
- package/mac-agent/node_modules/read-pkg/readme.md +0 -79
- package/mac-agent/node_modules/read-pkg-up/index.js +0 -31
- package/mac-agent/node_modules/read-pkg-up/license +0 -21
- package/mac-agent/node_modules/read-pkg-up/package.json +0 -59
- package/mac-agent/node_modules/read-pkg-up/readme.md +0 -79
- package/mac-agent/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/mac-agent/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/mac-agent/node_modules/readable-stream/LICENSE +0 -47
- package/mac-agent/node_modules/readable-stream/README.md +0 -106
- package/mac-agent/node_modules/readable-stream/errors-browser.js +0 -127
- package/mac-agent/node_modules/readable-stream/errors.js +0 -116
- package/mac-agent/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/mac-agent/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
- package/mac-agent/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
- package/mac-agent/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
- package/mac-agent/node_modules/readable-stream/lib/_stream_transform.js +0 -190
- package/mac-agent/node_modules/readable-stream/lib/_stream_writable.js +0 -641
- package/mac-agent/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
- package/mac-agent/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
- package/mac-agent/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
- package/mac-agent/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
- package/mac-agent/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/mac-agent/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
- package/mac-agent/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
- package/mac-agent/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
- package/mac-agent/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/mac-agent/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/mac-agent/node_modules/readable-stream/package.json +0 -68
- package/mac-agent/node_modules/readable-stream/readable-browser.js +0 -9
- package/mac-agent/node_modules/readable-stream/readable.js +0 -16
- package/mac-agent/node_modules/readdirp/LICENSE +0 -21
- package/mac-agent/node_modules/readdirp/README.md +0 -122
- package/mac-agent/node_modules/readdirp/index.d.ts +0 -43
- package/mac-agent/node_modules/readdirp/index.js +0 -287
- package/mac-agent/node_modules/readdirp/package.json +0 -122
- package/mac-agent/node_modules/require-directory/.jshintrc +0 -67
- package/mac-agent/node_modules/require-directory/.travis.yml +0 -3
- package/mac-agent/node_modules/require-directory/LICENSE +0 -22
- package/mac-agent/node_modules/require-directory/README.markdown +0 -184
- package/mac-agent/node_modules/require-directory/index.js +0 -86
- package/mac-agent/node_modules/require-directory/package.json +0 -40
- package/mac-agent/node_modules/require-main-filename/.travis.yml +0 -8
- package/mac-agent/node_modules/require-main-filename/LICENSE.txt +0 -14
- package/mac-agent/node_modules/require-main-filename/README.md +0 -26
- package/mac-agent/node_modules/require-main-filename/index.js +0 -18
- package/mac-agent/node_modules/require-main-filename/package.json +0 -30
- package/mac-agent/node_modules/require-main-filename/test.js +0 -36
- package/mac-agent/node_modules/resolve/.editorconfig +0 -37
- package/mac-agent/node_modules/resolve/.eslintrc +0 -65
- package/mac-agent/node_modules/resolve/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/resolve/LICENSE +0 -21
- package/mac-agent/node_modules/resolve/SECURITY.md +0 -3
- package/mac-agent/node_modules/resolve/async.js +0 -3
- package/mac-agent/node_modules/resolve/bin/resolve +0 -50
- package/mac-agent/node_modules/resolve/example/async.js +0 -5
- package/mac-agent/node_modules/resolve/example/sync.js +0 -3
- package/mac-agent/node_modules/resolve/index.js +0 -6
- package/mac-agent/node_modules/resolve/lib/async.js +0 -329
- package/mac-agent/node_modules/resolve/lib/caller.js +0 -8
- package/mac-agent/node_modules/resolve/lib/core.js +0 -12
- package/mac-agent/node_modules/resolve/lib/core.json +0 -162
- package/mac-agent/node_modules/resolve/lib/homedir.js +0 -24
- package/mac-agent/node_modules/resolve/lib/is-core.js +0 -5
- package/mac-agent/node_modules/resolve/lib/node-modules-paths.js +0 -42
- package/mac-agent/node_modules/resolve/lib/normalize-options.js +0 -10
- package/mac-agent/node_modules/resolve/lib/sync.js +0 -208
- package/mac-agent/node_modules/resolve/package.json +0 -75
- package/mac-agent/node_modules/resolve/readme.markdown +0 -301
- package/mac-agent/node_modules/resolve/sync.js +0 -3
- package/mac-agent/node_modules/resolve/test/core.js +0 -88
- package/mac-agent/node_modules/resolve/test/dotdot/abc/index.js +0 -2
- package/mac-agent/node_modules/resolve/test/dotdot/index.js +0 -1
- package/mac-agent/node_modules/resolve/test/dotdot.js +0 -29
- package/mac-agent/node_modules/resolve/test/faulty_basedir.js +0 -29
- package/mac-agent/node_modules/resolve/test/filter.js +0 -34
- package/mac-agent/node_modules/resolve/test/filter_sync.js +0 -33
- package/mac-agent/node_modules/resolve/test/home_paths.js +0 -127
- package/mac-agent/node_modules/resolve/test/home_paths_sync.js +0 -114
- package/mac-agent/node_modules/resolve/test/mock.js +0 -315
- package/mac-agent/node_modules/resolve/test/mock_sync.js +0 -214
- package/mac-agent/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +0 -1
- package/mac-agent/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +0 -1
- package/mac-agent/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +0 -1
- package/mac-agent/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +0 -3
- package/mac-agent/node_modules/resolve/test/module_dir.js +0 -56
- package/mac-agent/node_modules/resolve/test/node-modules-paths.js +0 -143
- package/mac-agent/node_modules/resolve/test/node_path/x/aaa/index.js +0 -1
- package/mac-agent/node_modules/resolve/test/node_path/x/ccc/index.js +0 -1
- package/mac-agent/node_modules/resolve/test/node_path/y/bbb/index.js +0 -1
- package/mac-agent/node_modules/resolve/test/node_path/y/ccc/index.js +0 -1
- package/mac-agent/node_modules/resolve/test/node_path.js +0 -70
- package/mac-agent/node_modules/resolve/test/nonstring.js +0 -9
- package/mac-agent/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- package/mac-agent/node_modules/resolve/test/pathfilter.js +0 -75
- package/mac-agent/node_modules/resolve/test/precedence/aaa/index.js +0 -1
- package/mac-agent/node_modules/resolve/test/precedence/aaa/main.js +0 -1
- package/mac-agent/node_modules/resolve/test/precedence/aaa.js +0 -1
- package/mac-agent/node_modules/resolve/test/precedence/bbb/main.js +0 -1
- package/mac-agent/node_modules/resolve/test/precedence/bbb.js +0 -1
- package/mac-agent/node_modules/resolve/test/precedence.js +0 -23
- package/mac-agent/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- package/mac-agent/node_modules/resolve/test/resolver/baz/package.json +0 -4
- package/mac-agent/node_modules/resolve/test/resolver/baz/quux.js +0 -1
- package/mac-agent/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
- package/mac-agent/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
- package/mac-agent/node_modules/resolve/test/resolver/browser_field/package.json +0 -5
- package/mac-agent/node_modules/resolve/test/resolver/cup.coffee +0 -1
- package/mac-agent/node_modules/resolve/test/resolver/dot_main/index.js +0 -1
- package/mac-agent/node_modules/resolve/test/resolver/dot_main/package.json +0 -3
- package/mac-agent/node_modules/resolve/test/resolver/dot_slash_main/index.js +0 -1
- package/mac-agent/node_modules/resolve/test/resolver/dot_slash_main/package.json +0 -3
- package/mac-agent/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- package/mac-agent/node_modules/resolve/test/resolver/false_main/package.json +0 -4
- package/mac-agent/node_modules/resolve/test/resolver/foo.js +0 -1
- package/mac-agent/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
- package/mac-agent/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
- package/mac-agent/node_modules/resolve/test/resolver/invalid_main/package.json +0 -7
- package/mac-agent/node_modules/resolve/test/resolver/mug.coffee +0 -0
- package/mac-agent/node_modules/resolve/test/resolver/mug.js +0 -0
- package/mac-agent/node_modules/resolve/test/resolver/multirepo/lerna.json +0 -6
- package/mac-agent/node_modules/resolve/test/resolver/multirepo/package.json +0 -20
- package/mac-agent/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +0 -35
- package/mac-agent/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +0 -14
- package/mac-agent/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
- package/mac-agent/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +0 -14
- package/mac-agent/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +0 -26
- package/mac-agent/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +0 -15
- package/mac-agent/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +0 -12
- package/mac-agent/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- package/mac-agent/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- package/mac-agent/node_modules/resolve/test/resolver/quux/foo/index.js +0 -1
- package/mac-agent/node_modules/resolve/test/resolver/same_names/foo/index.js +0 -1
- package/mac-agent/node_modules/resolve/test/resolver/same_names/foo.js +0 -1
- package/mac-agent/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
- package/mac-agent/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
- package/mac-agent/node_modules/resolve/test/resolver/symlinked/package/bar.js +0 -1
- package/mac-agent/node_modules/resolve/test/resolver/symlinked/package/package.json +0 -3
- package/mac-agent/node_modules/resolve/test/resolver/without_basedir/main.js +0 -5
- package/mac-agent/node_modules/resolve/test/resolver.js +0 -597
- package/mac-agent/node_modules/resolve/test/resolver_sync.js +0 -730
- package/mac-agent/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
- package/mac-agent/node_modules/resolve/test/shadowed_core.js +0 -54
- package/mac-agent/node_modules/resolve/test/subdirs.js +0 -13
- package/mac-agent/node_modules/resolve/test/symlinks.js +0 -176
- package/mac-agent/node_modules/rimraf/CHANGELOG.md +0 -65
- package/mac-agent/node_modules/rimraf/LICENSE +0 -15
- package/mac-agent/node_modules/rimraf/README.md +0 -101
- package/mac-agent/node_modules/rimraf/bin.js +0 -68
- package/mac-agent/node_modules/rimraf/package.json +0 -32
- package/mac-agent/node_modules/rimraf/rimraf.js +0 -360
- package/mac-agent/node_modules/safe-buffer/LICENSE +0 -21
- package/mac-agent/node_modules/safe-buffer/README.md +0 -584
- package/mac-agent/node_modules/safe-buffer/index.d.ts +0 -187
- package/mac-agent/node_modules/safe-buffer/index.js +0 -65
- package/mac-agent/node_modules/safe-buffer/package.json +0 -51
- package/mac-agent/node_modules/safe-stable-stringify/LICENSE +0 -21
- package/mac-agent/node_modules/safe-stable-stringify/esm/package.json +0 -4
- package/mac-agent/node_modules/safe-stable-stringify/esm/wrapper.d.ts +0 -4
- package/mac-agent/node_modules/safe-stable-stringify/esm/wrapper.js +0 -6
- package/mac-agent/node_modules/safe-stable-stringify/index.d.ts +0 -22
- package/mac-agent/node_modules/safe-stable-stringify/index.js +0 -625
- package/mac-agent/node_modules/safe-stable-stringify/package.json +0 -65
- package/mac-agent/node_modules/safe-stable-stringify/readme.md +0 -179
- package/mac-agent/node_modules/semver/LICENSE +0 -15
- package/mac-agent/node_modules/semver/README.md +0 -664
- package/mac-agent/node_modules/semver/bin/semver.js +0 -191
- package/mac-agent/node_modules/semver/classes/comparator.js +0 -143
- package/mac-agent/node_modules/semver/classes/index.js +0 -7
- package/mac-agent/node_modules/semver/classes/range.js +0 -556
- package/mac-agent/node_modules/semver/classes/semver.js +0 -319
- package/mac-agent/node_modules/semver/functions/clean.js +0 -8
- package/mac-agent/node_modules/semver/functions/cmp.js +0 -54
- package/mac-agent/node_modules/semver/functions/coerce.js +0 -62
- package/mac-agent/node_modules/semver/functions/compare-build.js +0 -9
- package/mac-agent/node_modules/semver/functions/compare-loose.js +0 -5
- package/mac-agent/node_modules/semver/functions/compare.js +0 -7
- package/mac-agent/node_modules/semver/functions/diff.js +0 -60
- package/mac-agent/node_modules/semver/functions/eq.js +0 -5
- package/mac-agent/node_modules/semver/functions/gt.js +0 -5
- package/mac-agent/node_modules/semver/functions/gte.js +0 -5
- package/mac-agent/node_modules/semver/functions/inc.js +0 -21
- package/mac-agent/node_modules/semver/functions/lt.js +0 -5
- package/mac-agent/node_modules/semver/functions/lte.js +0 -5
- package/mac-agent/node_modules/semver/functions/major.js +0 -5
- package/mac-agent/node_modules/semver/functions/minor.js +0 -5
- package/mac-agent/node_modules/semver/functions/neq.js +0 -5
- package/mac-agent/node_modules/semver/functions/parse.js +0 -18
- package/mac-agent/node_modules/semver/functions/patch.js +0 -5
- package/mac-agent/node_modules/semver/functions/prerelease.js +0 -8
- package/mac-agent/node_modules/semver/functions/rcompare.js +0 -5
- package/mac-agent/node_modules/semver/functions/rsort.js +0 -5
- package/mac-agent/node_modules/semver/functions/satisfies.js +0 -12
- package/mac-agent/node_modules/semver/functions/sort.js +0 -5
- package/mac-agent/node_modules/semver/functions/valid.js +0 -8
- package/mac-agent/node_modules/semver/index.js +0 -91
- package/mac-agent/node_modules/semver/internal/constants.js +0 -37
- package/mac-agent/node_modules/semver/internal/debug.js +0 -11
- package/mac-agent/node_modules/semver/internal/identifiers.js +0 -25
- package/mac-agent/node_modules/semver/internal/lrucache.js +0 -42
- package/mac-agent/node_modules/semver/internal/parse-options.js +0 -17
- package/mac-agent/node_modules/semver/internal/re.js +0 -223
- package/mac-agent/node_modules/semver/package.json +0 -78
- package/mac-agent/node_modules/semver/preload.js +0 -4
- package/mac-agent/node_modules/semver/range.bnf +0 -16
- package/mac-agent/node_modules/semver/ranges/gtr.js +0 -6
- package/mac-agent/node_modules/semver/ranges/intersects.js +0 -9
- package/mac-agent/node_modules/semver/ranges/ltr.js +0 -6
- package/mac-agent/node_modules/semver/ranges/max-satisfying.js +0 -27
- package/mac-agent/node_modules/semver/ranges/min-satisfying.js +0 -26
- package/mac-agent/node_modules/semver/ranges/min-version.js +0 -63
- package/mac-agent/node_modules/semver/ranges/outside.js +0 -82
- package/mac-agent/node_modules/semver/ranges/simplify.js +0 -49
- package/mac-agent/node_modules/semver/ranges/subset.js +0 -249
- package/mac-agent/node_modules/semver/ranges/to-comparators.js +0 -10
- package/mac-agent/node_modules/semver/ranges/valid.js +0 -13
- package/mac-agent/node_modules/set-blocking/CHANGELOG.md +0 -26
- package/mac-agent/node_modules/set-blocking/LICENSE.txt +0 -14
- package/mac-agent/node_modules/set-blocking/README.md +0 -31
- package/mac-agent/node_modules/set-blocking/index.js +0 -7
- package/mac-agent/node_modules/set-blocking/package.json +0 -42
- package/mac-agent/node_modules/set-function-length/.eslintrc +0 -27
- package/mac-agent/node_modules/set-function-length/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/set-function-length/.nycrc +0 -13
- package/mac-agent/node_modules/set-function-length/CHANGELOG.md +0 -70
- package/mac-agent/node_modules/set-function-length/LICENSE +0 -21
- package/mac-agent/node_modules/set-function-length/README.md +0 -56
- package/mac-agent/node_modules/set-function-length/env.d.ts +0 -9
- package/mac-agent/node_modules/set-function-length/env.js +0 -25
- package/mac-agent/node_modules/set-function-length/index.d.ts +0 -7
- package/mac-agent/node_modules/set-function-length/index.js +0 -42
- package/mac-agent/node_modules/set-function-length/package.json +0 -102
- package/mac-agent/node_modules/set-function-length/tsconfig.json +0 -9
- package/mac-agent/node_modules/signal-exit/LICENSE.txt +0 -16
- package/mac-agent/node_modules/signal-exit/README.md +0 -39
- package/mac-agent/node_modules/signal-exit/index.js +0 -202
- package/mac-agent/node_modules/signal-exit/package.json +0 -38
- package/mac-agent/node_modules/signal-exit/signals.js +0 -53
- package/mac-agent/node_modules/simple-swizzle/LICENSE +0 -21
- package/mac-agent/node_modules/simple-swizzle/README.md +0 -39
- package/mac-agent/node_modules/simple-swizzle/index.js +0 -29
- package/mac-agent/node_modules/simple-swizzle/package.json +0 -36
- package/mac-agent/node_modules/simple-update-notifier/LICENSE +0 -21
- package/mac-agent/node_modules/simple-update-notifier/README.md +0 -82
- package/mac-agent/node_modules/simple-update-notifier/build/index.d.ts +0 -13
- package/mac-agent/node_modules/simple-update-notifier/build/index.js +0 -210
- package/mac-agent/node_modules/simple-update-notifier/package.json +0 -100
- package/mac-agent/node_modules/simple-update-notifier/src/borderedText.ts +0 -12
- package/mac-agent/node_modules/simple-update-notifier/src/cache.spec.ts +0 -17
- package/mac-agent/node_modules/simple-update-notifier/src/cache.ts +0 -44
- package/mac-agent/node_modules/simple-update-notifier/src/getDistVersion.spec.ts +0 -35
- package/mac-agent/node_modules/simple-update-notifier/src/getDistVersion.ts +0 -29
- package/mac-agent/node_modules/simple-update-notifier/src/hasNewVersion.spec.ts +0 -82
- package/mac-agent/node_modules/simple-update-notifier/src/hasNewVersion.ts +0 -40
- package/mac-agent/node_modules/simple-update-notifier/src/index.spec.ts +0 -27
- package/mac-agent/node_modules/simple-update-notifier/src/index.ts +0 -34
- package/mac-agent/node_modules/simple-update-notifier/src/isNpmOrYarn.ts +0 -12
- package/mac-agent/node_modules/simple-update-notifier/src/types.ts +0 -8
- package/mac-agent/node_modules/spdx-correct/LICENSE +0 -202
- package/mac-agent/node_modules/spdx-correct/README.md +0 -22
- package/mac-agent/node_modules/spdx-correct/index.js +0 -386
- package/mac-agent/node_modules/spdx-correct/package.json +0 -32
- package/mac-agent/node_modules/spdx-exceptions/README.md +0 -36
- package/mac-agent/node_modules/spdx-exceptions/deprecated.json +0 -3
- package/mac-agent/node_modules/spdx-exceptions/index.json +0 -68
- package/mac-agent/node_modules/spdx-exceptions/package.json +0 -19
- package/mac-agent/node_modules/spdx-expression-parse/AUTHORS +0 -4
- package/mac-agent/node_modules/spdx-expression-parse/LICENSE +0 -22
- package/mac-agent/node_modules/spdx-expression-parse/README.md +0 -91
- package/mac-agent/node_modules/spdx-expression-parse/index.js +0 -8
- package/mac-agent/node_modules/spdx-expression-parse/package.json +0 -39
- package/mac-agent/node_modules/spdx-expression-parse/parse.js +0 -138
- package/mac-agent/node_modules/spdx-expression-parse/scan.js +0 -131
- package/mac-agent/node_modules/spdx-license-ids/README.md +0 -51
- package/mac-agent/node_modules/spdx-license-ids/deprecated.json +0 -28
- package/mac-agent/node_modules/spdx-license-ids/index.json +0 -650
- package/mac-agent/node_modules/spdx-license-ids/package.json +0 -29
- package/mac-agent/node_modules/stack-trace/License +0 -19
- package/mac-agent/node_modules/stack-trace/Makefile +0 -11
- package/mac-agent/node_modules/stack-trace/Readme.md +0 -98
- package/mac-agent/node_modules/stack-trace/lib/stack-trace.js +0 -136
- package/mac-agent/node_modules/stack-trace/package.json +0 -21
- package/mac-agent/node_modules/string-width/index.d.ts +0 -29
- package/mac-agent/node_modules/string-width/index.js +0 -47
- package/mac-agent/node_modules/string-width/license +0 -9
- package/mac-agent/node_modules/string-width/package.json +0 -56
- package/mac-agent/node_modules/string-width/readme.md +0 -50
- package/mac-agent/node_modules/string_decoder/LICENSE +0 -48
- package/mac-agent/node_modules/string_decoder/README.md +0 -47
- package/mac-agent/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/mac-agent/node_modules/string_decoder/package.json +0 -34
- package/mac-agent/node_modules/strip-ansi/index.d.ts +0 -17
- package/mac-agent/node_modules/strip-ansi/index.js +0 -4
- package/mac-agent/node_modules/strip-ansi/license +0 -9
- package/mac-agent/node_modules/strip-ansi/package.json +0 -54
- package/mac-agent/node_modules/strip-ansi/readme.md +0 -46
- package/mac-agent/node_modules/strip-bom/index.js +0 -17
- package/mac-agent/node_modules/strip-bom/license +0 -21
- package/mac-agent/node_modules/strip-bom/package.json +0 -42
- package/mac-agent/node_modules/strip-bom/readme.md +0 -39
- package/mac-agent/node_modules/supports-color/browser.js +0 -5
- package/mac-agent/node_modules/supports-color/index.js +0 -131
- package/mac-agent/node_modules/supports-color/license +0 -9
- package/mac-agent/node_modules/supports-color/package.json +0 -53
- package/mac-agent/node_modules/supports-color/readme.md +0 -66
- package/mac-agent/node_modules/supports-preserve-symlinks-flag/.eslintrc +0 -14
- package/mac-agent/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +0 -12
- package/mac-agent/node_modules/supports-preserve-symlinks-flag/.nycrc +0 -9
- package/mac-agent/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +0 -22
- package/mac-agent/node_modules/supports-preserve-symlinks-flag/LICENSE +0 -21
- package/mac-agent/node_modules/supports-preserve-symlinks-flag/README.md +0 -42
- package/mac-agent/node_modules/supports-preserve-symlinks-flag/browser.js +0 -3
- package/mac-agent/node_modules/supports-preserve-symlinks-flag/index.js +0 -9
- package/mac-agent/node_modules/supports-preserve-symlinks-flag/package.json +0 -70
- package/mac-agent/node_modules/supports-preserve-symlinks-flag/test/index.js +0 -29
- package/mac-agent/node_modules/tar/LICENSE +0 -15
- package/mac-agent/node_modules/tar/README.md +0 -1080
- package/mac-agent/node_modules/tar/index.js +0 -18
- package/mac-agent/node_modules/tar/lib/create.js +0 -111
- package/mac-agent/node_modules/tar/lib/extract.js +0 -113
- package/mac-agent/node_modules/tar/lib/get-write-flag.js +0 -20
- package/mac-agent/node_modules/tar/lib/header.js +0 -304
- package/mac-agent/node_modules/tar/lib/high-level-opt.js +0 -29
- package/mac-agent/node_modules/tar/lib/large-numbers.js +0 -104
- package/mac-agent/node_modules/tar/lib/list.js +0 -139
- package/mac-agent/node_modules/tar/lib/mkdir.js +0 -229
- package/mac-agent/node_modules/tar/lib/mode-fix.js +0 -27
- package/mac-agent/node_modules/tar/lib/normalize-unicode.js +0 -12
- package/mac-agent/node_modules/tar/lib/normalize-windows-path.js +0 -8
- package/mac-agent/node_modules/tar/lib/pack.js +0 -432
- package/mac-agent/node_modules/tar/lib/parse.js +0 -552
- package/mac-agent/node_modules/tar/lib/path-reservations.js +0 -156
- package/mac-agent/node_modules/tar/lib/pax.js +0 -150
- package/mac-agent/node_modules/tar/lib/read-entry.js +0 -107
- package/mac-agent/node_modules/tar/lib/replace.js +0 -246
- package/mac-agent/node_modules/tar/lib/strip-absolute-path.js +0 -24
- package/mac-agent/node_modules/tar/lib/strip-trailing-slashes.js +0 -13
- package/mac-agent/node_modules/tar/lib/types.js +0 -44
- package/mac-agent/node_modules/tar/lib/unpack.js +0 -923
- package/mac-agent/node_modules/tar/lib/update.js +0 -40
- package/mac-agent/node_modules/tar/lib/warn-mixin.js +0 -24
- package/mac-agent/node_modules/tar/lib/winchars.js +0 -23
- package/mac-agent/node_modules/tar/lib/write-entry.js +0 -546
- package/mac-agent/node_modules/tar/package.json +0 -70
- package/mac-agent/node_modules/text-hex/LICENSE +0 -21
- package/mac-agent/node_modules/text-hex/README.md +0 -20
- package/mac-agent/node_modules/text-hex/index.js +0 -24
- package/mac-agent/node_modules/text-hex/package.json +0 -30
- package/mac-agent/node_modules/text-hex/test.js +0 -11
- package/mac-agent/node_modules/to-regex-range/LICENSE +0 -21
- package/mac-agent/node_modules/to-regex-range/README.md +0 -305
- package/mac-agent/node_modules/to-regex-range/index.js +0 -288
- package/mac-agent/node_modules/to-regex-range/package.json +0 -88
- package/mac-agent/node_modules/touch/LICENSE +0 -15
- package/mac-agent/node_modules/touch/README.md +0 -52
- package/mac-agent/node_modules/touch/bin/nodetouch.js +0 -112
- package/mac-agent/node_modules/touch/index.js +0 -224
- package/mac-agent/node_modules/touch/package.json +0 -25
- package/mac-agent/node_modules/tr46/index.js +0 -193
- package/mac-agent/node_modules/tr46/lib/.gitkeep +0 -0
- package/mac-agent/node_modules/tr46/lib/mappingTable.json +0 -1
- package/mac-agent/node_modules/tr46/package.json +0 -31
- package/mac-agent/node_modules/triple-beam/.nyc_output/c579bf8f-6820-47a5-b2da-a11267eb8435.json +0 -1
- package/mac-agent/node_modules/triple-beam/.nyc_output/processinfo/c579bf8f-6820-47a5-b2da-a11267eb8435.json +0 -1
- package/mac-agent/node_modules/triple-beam/.nyc_output/processinfo/index.json +0 -1
- package/mac-agent/node_modules/triple-beam/CHANGELOG.md +0 -22
- package/mac-agent/node_modules/triple-beam/LICENSE +0 -21
- package/mac-agent/node_modules/triple-beam/README.md +0 -34
- package/mac-agent/node_modules/triple-beam/config/cli.js +0 -42
- package/mac-agent/node_modules/triple-beam/config/index.js +0 -32
- package/mac-agent/node_modules/triple-beam/config/npm.js +0 -36
- package/mac-agent/node_modules/triple-beam/config/syslog.js +0 -38
- package/mac-agent/node_modules/triple-beam/index.js +0 -46
- package/mac-agent/node_modules/triple-beam/package.json +0 -40
- package/mac-agent/node_modules/undefsafe/.github/workflows/release.yml +0 -25
- package/mac-agent/node_modules/undefsafe/.jscsrc +0 -13
- package/mac-agent/node_modules/undefsafe/.jshintrc +0 -16
- package/mac-agent/node_modules/undefsafe/.travis.yml +0 -18
- package/mac-agent/node_modules/undefsafe/LICENSE +0 -22
- package/mac-agent/node_modules/undefsafe/README.md +0 -63
- package/mac-agent/node_modules/undefsafe/example.js +0 -14
- package/mac-agent/node_modules/undefsafe/lib/undefsafe.js +0 -125
- package/mac-agent/node_modules/undefsafe/package.json +0 -34
- package/mac-agent/node_modules/util-deprecate/History.md +0 -16
- package/mac-agent/node_modules/util-deprecate/LICENSE +0 -24
- package/mac-agent/node_modules/util-deprecate/README.md +0 -53
- package/mac-agent/node_modules/util-deprecate/browser.js +0 -67
- package/mac-agent/node_modules/util-deprecate/node.js +0 -6
- package/mac-agent/node_modules/util-deprecate/package.json +0 -27
- package/mac-agent/node_modules/uuid/CHANGELOG.md +0 -229
- package/mac-agent/node_modules/uuid/CONTRIBUTING.md +0 -18
- package/mac-agent/node_modules/uuid/LICENSE.md +0 -9
- package/mac-agent/node_modules/uuid/README.md +0 -505
- package/mac-agent/node_modules/uuid/dist/bin/uuid +0 -2
- package/mac-agent/node_modules/uuid/dist/esm-browser/index.js +0 -9
- package/mac-agent/node_modules/uuid/dist/esm-browser/md5.js +0 -215
- package/mac-agent/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/mac-agent/node_modules/uuid/dist/esm-browser/parse.js +0 -35
- package/mac-agent/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/mac-agent/node_modules/uuid/dist/esm-browser/rng.js +0 -19
- package/mac-agent/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
- package/mac-agent/node_modules/uuid/dist/esm-browser/stringify.js +0 -30
- package/mac-agent/node_modules/uuid/dist/esm-browser/v1.js +0 -95
- package/mac-agent/node_modules/uuid/dist/esm-browser/v3.js +0 -4
- package/mac-agent/node_modules/uuid/dist/esm-browser/v35.js +0 -64
- package/mac-agent/node_modules/uuid/dist/esm-browser/v4.js +0 -24
- package/mac-agent/node_modules/uuid/dist/esm-browser/v5.js +0 -4
- package/mac-agent/node_modules/uuid/dist/esm-browser/validate.js +0 -7
- package/mac-agent/node_modules/uuid/dist/esm-browser/version.js +0 -11
- package/mac-agent/node_modules/uuid/dist/esm-node/index.js +0 -9
- package/mac-agent/node_modules/uuid/dist/esm-node/md5.js +0 -13
- package/mac-agent/node_modules/uuid/dist/esm-node/nil.js +0 -1
- package/mac-agent/node_modules/uuid/dist/esm-node/parse.js +0 -35
- package/mac-agent/node_modules/uuid/dist/esm-node/regex.js +0 -1
- package/mac-agent/node_modules/uuid/dist/esm-node/rng.js +0 -12
- package/mac-agent/node_modules/uuid/dist/esm-node/sha1.js +0 -13
- package/mac-agent/node_modules/uuid/dist/esm-node/stringify.js +0 -29
- package/mac-agent/node_modules/uuid/dist/esm-node/v1.js +0 -95
- package/mac-agent/node_modules/uuid/dist/esm-node/v3.js +0 -4
- package/mac-agent/node_modules/uuid/dist/esm-node/v35.js +0 -64
- package/mac-agent/node_modules/uuid/dist/esm-node/v4.js +0 -24
- package/mac-agent/node_modules/uuid/dist/esm-node/v5.js +0 -4
- package/mac-agent/node_modules/uuid/dist/esm-node/validate.js +0 -7
- package/mac-agent/node_modules/uuid/dist/esm-node/version.js +0 -11
- package/mac-agent/node_modules/uuid/dist/index.js +0 -79
- package/mac-agent/node_modules/uuid/dist/md5-browser.js +0 -223
- package/mac-agent/node_modules/uuid/dist/md5.js +0 -23
- package/mac-agent/node_modules/uuid/dist/nil.js +0 -8
- package/mac-agent/node_modules/uuid/dist/parse.js +0 -45
- package/mac-agent/node_modules/uuid/dist/regex.js +0 -8
- package/mac-agent/node_modules/uuid/dist/rng-browser.js +0 -26
- package/mac-agent/node_modules/uuid/dist/rng.js +0 -24
- package/mac-agent/node_modules/uuid/dist/sha1-browser.js +0 -104
- package/mac-agent/node_modules/uuid/dist/sha1.js +0 -23
- package/mac-agent/node_modules/uuid/dist/stringify.js +0 -39
- package/mac-agent/node_modules/uuid/dist/umd/uuid.min.js +0 -1
- package/mac-agent/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
- package/mac-agent/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
- package/mac-agent/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
- package/mac-agent/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
- package/mac-agent/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
- package/mac-agent/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
- package/mac-agent/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
- package/mac-agent/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
- package/mac-agent/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
- package/mac-agent/node_modules/uuid/dist/uuid-bin.js +0 -85
- package/mac-agent/node_modules/uuid/dist/v1.js +0 -107
- package/mac-agent/node_modules/uuid/dist/v3.js +0 -16
- package/mac-agent/node_modules/uuid/dist/v35.js +0 -78
- package/mac-agent/node_modules/uuid/dist/v4.js +0 -37
- package/mac-agent/node_modules/uuid/dist/v5.js +0 -16
- package/mac-agent/node_modules/uuid/dist/validate.js +0 -17
- package/mac-agent/node_modules/uuid/dist/version.js +0 -21
- package/mac-agent/node_modules/uuid/package.json +0 -135
- package/mac-agent/node_modules/uuid/wrapper.mjs +0 -10
- package/mac-agent/node_modules/validate-npm-package-license/LICENSE +0 -202
- package/mac-agent/node_modules/validate-npm-package-license/README.md +0 -113
- package/mac-agent/node_modules/validate-npm-package-license/index.js +0 -86
- package/mac-agent/node_modules/validate-npm-package-license/package.json +0 -28
- package/mac-agent/node_modules/webidl-conversions/LICENSE.md +0 -12
- package/mac-agent/node_modules/webidl-conversions/README.md +0 -80
- package/mac-agent/node_modules/webidl-conversions/lib/index.js +0 -332
- package/mac-agent/node_modules/webidl-conversions/package.json +0 -27
- package/mac-agent/node_modules/whatwg-url/LICENSE.txt +0 -21
- package/mac-agent/node_modules/whatwg-url/README.md +0 -67
- package/mac-agent/node_modules/whatwg-url/lib/URL-impl.js +0 -200
- package/mac-agent/node_modules/whatwg-url/lib/URL.js +0 -196
- package/mac-agent/node_modules/whatwg-url/lib/public-api.js +0 -11
- package/mac-agent/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
- package/mac-agent/node_modules/whatwg-url/lib/utils.js +0 -20
- package/mac-agent/node_modules/whatwg-url/node_modules/webidl-conversions/LICENSE.md +0 -12
- package/mac-agent/node_modules/whatwg-url/node_modules/webidl-conversions/README.md +0 -53
- package/mac-agent/node_modules/whatwg-url/node_modules/webidl-conversions/lib/index.js +0 -189
- package/mac-agent/node_modules/whatwg-url/node_modules/webidl-conversions/package.json +0 -23
- package/mac-agent/node_modules/whatwg-url/package.json +0 -32
- package/mac-agent/node_modules/which/CHANGELOG.md +0 -152
- package/mac-agent/node_modules/which/LICENSE +0 -15
- package/mac-agent/node_modules/which/README.md +0 -51
- package/mac-agent/node_modules/which/bin/which +0 -52
- package/mac-agent/node_modules/which/package.json +0 -30
- package/mac-agent/node_modules/which/which.js +0 -135
- package/mac-agent/node_modules/which-module/CHANGELOG.md +0 -11
- package/mac-agent/node_modules/which-module/LICENSE +0 -13
- package/mac-agent/node_modules/which-module/README.md +0 -55
- package/mac-agent/node_modules/which-module/index.js +0 -9
- package/mac-agent/node_modules/which-module/package.json +0 -41
- package/mac-agent/node_modules/wide-align/LICENSE +0 -14
- package/mac-agent/node_modules/wide-align/README.md +0 -47
- package/mac-agent/node_modules/wide-align/align.js +0 -65
- package/mac-agent/node_modules/wide-align/package.json +0 -33
- package/mac-agent/node_modules/winston/LICENSE +0 -19
- package/mac-agent/node_modules/winston/README.md +0 -1271
- package/mac-agent/node_modules/winston/dist/winston/common.js +0 -44
- package/mac-agent/node_modules/winston/dist/winston/config/index.js +0 -36
- package/mac-agent/node_modules/winston/dist/winston/container.js +0 -141
- package/mac-agent/node_modules/winston/dist/winston/create-logger.js +0 -123
- package/mac-agent/node_modules/winston/dist/winston/exception-handler.js +0 -265
- package/mac-agent/node_modules/winston/dist/winston/exception-stream.js +0 -75
- package/mac-agent/node_modules/winston/dist/winston/logger.js +0 -672
- package/mac-agent/node_modules/winston/dist/winston/profiler.js +0 -65
- package/mac-agent/node_modules/winston/dist/winston/rejection-handler.js +0 -265
- package/mac-agent/node_modules/winston/dist/winston/rejection-stream.js +0 -72
- package/mac-agent/node_modules/winston/dist/winston/tail-file.js +0 -113
- package/mac-agent/node_modules/winston/dist/winston/transports/console.js +0 -143
- package/mac-agent/node_modules/winston/dist/winston/transports/file.js +0 -788
- package/mac-agent/node_modules/winston/dist/winston/transports/http.js +0 -288
- package/mac-agent/node_modules/winston/dist/winston/transports/index.js +0 -56
- package/mac-agent/node_modules/winston/dist/winston/transports/stream.js +0 -86
- package/mac-agent/node_modules/winston/dist/winston.js +0 -171
- package/mac-agent/node_modules/winston/index.d.ts +0 -208
- package/mac-agent/node_modules/winston/lib/winston/common.js +0 -46
- package/mac-agent/node_modules/winston/lib/winston/config/index.d.ts +0 -99
- package/mac-agent/node_modules/winston/lib/winston/config/index.js +0 -35
- package/mac-agent/node_modules/winston/lib/winston/container.js +0 -118
- package/mac-agent/node_modules/winston/lib/winston/create-logger.js +0 -104
- package/mac-agent/node_modules/winston/lib/winston/exception-handler.js +0 -245
- package/mac-agent/node_modules/winston/lib/winston/exception-stream.js +0 -54
- package/mac-agent/node_modules/winston/lib/winston/logger.js +0 -677
- package/mac-agent/node_modules/winston/lib/winston/profiler.js +0 -53
- package/mac-agent/node_modules/winston/lib/winston/rejection-handler.js +0 -251
- package/mac-agent/node_modules/winston/lib/winston/rejection-stream.js +0 -52
- package/mac-agent/node_modules/winston/lib/winston/tail-file.js +0 -124
- package/mac-agent/node_modules/winston/lib/winston/transports/console.js +0 -125
- package/mac-agent/node_modules/winston/lib/winston/transports/file.js +0 -763
- package/mac-agent/node_modules/winston/lib/winston/transports/http.js +0 -262
- package/mac-agent/node_modules/winston/lib/winston/transports/index.d.ts +0 -117
- package/mac-agent/node_modules/winston/lib/winston/transports/index.js +0 -56
- package/mac-agent/node_modules/winston/lib/winston/transports/stream.js +0 -63
- package/mac-agent/node_modules/winston/lib/winston.js +0 -191
- package/mac-agent/node_modules/winston/package.json +0 -74
- package/mac-agent/node_modules/winston-transport/.babelrc +0 -3
- package/mac-agent/node_modules/winston-transport/.eslintrc +0 -7
- package/mac-agent/node_modules/winston-transport/.gitattributes +0 -1
- package/mac-agent/node_modules/winston-transport/.nyc_output/68e78020-c804-4f37-a68a-a967c6380da9.json +0 -1
- package/mac-agent/node_modules/winston-transport/.nyc_output/processinfo/68e78020-c804-4f37-a68a-a967c6380da9.json +0 -1
- package/mac-agent/node_modules/winston-transport/.nyc_output/processinfo/index.json +0 -1
- package/mac-agent/node_modules/winston-transport/CHANGELOG.md +0 -126
- package/mac-agent/node_modules/winston-transport/LICENSE +0 -22
- package/mac-agent/node_modules/winston-transport/README.md +0 -50
- package/mac-agent/node_modules/winston-transport/dist/index.js +0 -8
- package/mac-agent/node_modules/winston-transport/dist/legacy.js +0 -116
- package/mac-agent/node_modules/winston-transport/dist/modern.js +0 -212
- package/mac-agent/node_modules/winston-transport/index.d.ts +0 -39
- package/mac-agent/node_modules/winston-transport/index.js +0 -7
- package/mac-agent/node_modules/winston-transport/legacy.js +0 -119
- package/mac-agent/node_modules/winston-transport/modern.js +0 -211
- package/mac-agent/node_modules/winston-transport/package.json +0 -52
- package/mac-agent/node_modules/wrap-ansi/index.js +0 -168
- package/mac-agent/node_modules/wrap-ansi/license +0 -21
- package/mac-agent/node_modules/wrap-ansi/node_modules/ansi-regex/index.js +0 -4
- package/mac-agent/node_modules/wrap-ansi/node_modules/ansi-regex/license +0 -21
- package/mac-agent/node_modules/wrap-ansi/node_modules/ansi-regex/package.json +0 -64
- package/mac-agent/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +0 -39
- package/mac-agent/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js +0 -46
- package/mac-agent/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license +0 -21
- package/mac-agent/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json +0 -45
- package/mac-agent/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/mac-agent/node_modules/wrap-ansi/node_modules/string-width/index.js +0 -37
- package/mac-agent/node_modules/wrap-ansi/node_modules/string-width/license +0 -21
- package/mac-agent/node_modules/wrap-ansi/node_modules/string-width/package.json +0 -56
- package/mac-agent/node_modules/wrap-ansi/node_modules/string-width/readme.md +0 -42
- package/mac-agent/node_modules/wrap-ansi/node_modules/strip-ansi/index.js +0 -6
- package/mac-agent/node_modules/wrap-ansi/node_modules/strip-ansi/license +0 -21
- package/mac-agent/node_modules/wrap-ansi/node_modules/strip-ansi/package.json +0 -57
- package/mac-agent/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +0 -33
- package/mac-agent/node_modules/wrap-ansi/package.json +0 -68
- package/mac-agent/node_modules/wrap-ansi/readme.md +0 -73
- package/mac-agent/node_modules/wrappy/LICENSE +0 -15
- package/mac-agent/node_modules/wrappy/README.md +0 -36
- package/mac-agent/node_modules/wrappy/package.json +0 -29
- package/mac-agent/node_modules/wrappy/wrappy.js +0 -33
- package/mac-agent/node_modules/ws/LICENSE +0 -20
- package/mac-agent/node_modules/ws/README.md +0 -548
- package/mac-agent/node_modules/ws/browser.js +0 -8
- package/mac-agent/node_modules/ws/index.js +0 -13
- package/mac-agent/node_modules/ws/lib/buffer-util.js +0 -131
- package/mac-agent/node_modules/ws/lib/constants.js +0 -18
- package/mac-agent/node_modules/ws/lib/event-target.js +0 -292
- package/mac-agent/node_modules/ws/lib/extension.js +0 -203
- package/mac-agent/node_modules/ws/lib/limiter.js +0 -55
- package/mac-agent/node_modules/ws/lib/permessage-deflate.js +0 -528
- package/mac-agent/node_modules/ws/lib/receiver.js +0 -706
- package/mac-agent/node_modules/ws/lib/sender.js +0 -602
- package/mac-agent/node_modules/ws/lib/stream.js +0 -161
- package/mac-agent/node_modules/ws/lib/subprotocol.js +0 -62
- package/mac-agent/node_modules/ws/lib/validation.js +0 -152
- package/mac-agent/node_modules/ws/lib/websocket-server.js +0 -550
- package/mac-agent/node_modules/ws/lib/websocket.js +0 -1388
- package/mac-agent/node_modules/ws/package.json +0 -69
- package/mac-agent/node_modules/ws/wrapper.mjs +0 -8
- package/mac-agent/node_modules/y18n/CHANGELOG.md +0 -6
- package/mac-agent/node_modules/y18n/LICENSE +0 -13
- package/mac-agent/node_modules/y18n/README.md +0 -91
- package/mac-agent/node_modules/y18n/index.js +0 -172
- package/mac-agent/node_modules/y18n/package.json +0 -37
- package/mac-agent/node_modules/yallist/LICENSE +0 -15
- package/mac-agent/node_modules/yallist/README.md +0 -204
- package/mac-agent/node_modules/yallist/iterator.js +0 -8
- package/mac-agent/node_modules/yallist/package.json +0 -29
- package/mac-agent/node_modules/yallist/yallist.js +0 -426
- package/mac-agent/node_modules/yargs/CHANGELOG.md +0 -928
- package/mac-agent/node_modules/yargs/LICENSE +0 -22
- package/mac-agent/node_modules/yargs/README.md +0 -2017
- package/mac-agent/node_modules/yargs/completion.sh.hbs +0 -28
- package/mac-agent/node_modules/yargs/index.js +0 -31
- package/mac-agent/node_modules/yargs/lib/apply-extends.js +0 -41
- package/mac-agent/node_modules/yargs/lib/argsert.js +0 -72
- package/mac-agent/node_modules/yargs/lib/assign.js +0 -15
- package/mac-agent/node_modules/yargs/lib/command.js +0 -334
- package/mac-agent/node_modules/yargs/lib/completion.js +0 -104
- package/mac-agent/node_modules/yargs/lib/levenshtein.js +0 -47
- package/mac-agent/node_modules/yargs/lib/obj-filter.js +0 -10
- package/mac-agent/node_modules/yargs/lib/usage.js +0 -489
- package/mac-agent/node_modules/yargs/lib/validation.js +0 -363
- package/mac-agent/node_modules/yargs/lib/yerror.js +0 -10
- package/mac-agent/node_modules/yargs/locales/be.json +0 -39
- package/mac-agent/node_modules/yargs/locales/de.json +0 -39
- package/mac-agent/node_modules/yargs/locales/en.json +0 -40
- package/mac-agent/node_modules/yargs/locales/es.json +0 -39
- package/mac-agent/node_modules/yargs/locales/fr.json +0 -37
- package/mac-agent/node_modules/yargs/locales/hi.json +0 -39
- package/mac-agent/node_modules/yargs/locales/hu.json +0 -39
- package/mac-agent/node_modules/yargs/locales/id.json +0 -40
- package/mac-agent/node_modules/yargs/locales/it.json +0 -39
- package/mac-agent/node_modules/yargs/locales/ja.json +0 -39
- package/mac-agent/node_modules/yargs/locales/ko.json +0 -39
- package/mac-agent/node_modules/yargs/locales/nb.json +0 -37
- package/mac-agent/node_modules/yargs/locales/nl.json +0 -39
- package/mac-agent/node_modules/yargs/locales/pirate.json +0 -12
- package/mac-agent/node_modules/yargs/locales/pl.json +0 -39
- package/mac-agent/node_modules/yargs/locales/pt.json +0 -38
- package/mac-agent/node_modules/yargs/locales/pt_BR.json +0 -40
- package/mac-agent/node_modules/yargs/locales/ru.json +0 -39
- package/mac-agent/node_modules/yargs/locales/th.json +0 -39
- package/mac-agent/node_modules/yargs/locales/tr.json +0 -39
- package/mac-agent/node_modules/yargs/locales/zh_CN.json +0 -37
- package/mac-agent/node_modules/yargs/locales/zh_TW.json +0 -40
- package/mac-agent/node_modules/yargs/node_modules/ansi-regex/index.js +0 -4
- package/mac-agent/node_modules/yargs/node_modules/ansi-regex/license +0 -21
- package/mac-agent/node_modules/yargs/node_modules/ansi-regex/package.json +0 -64
- package/mac-agent/node_modules/yargs/node_modules/ansi-regex/readme.md +0 -39
- package/mac-agent/node_modules/yargs/node_modules/is-fullwidth-code-point/index.js +0 -46
- package/mac-agent/node_modules/yargs/node_modules/is-fullwidth-code-point/license +0 -21
- package/mac-agent/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json +0 -45
- package/mac-agent/node_modules/yargs/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/mac-agent/node_modules/yargs/node_modules/string-width/index.js +0 -37
- package/mac-agent/node_modules/yargs/node_modules/string-width/license +0 -21
- package/mac-agent/node_modules/yargs/node_modules/string-width/package.json +0 -56
- package/mac-agent/node_modules/yargs/node_modules/string-width/readme.md +0 -42
- package/mac-agent/node_modules/yargs/node_modules/strip-ansi/index.js +0 -6
- package/mac-agent/node_modules/yargs/node_modules/strip-ansi/license +0 -21
- package/mac-agent/node_modules/yargs/node_modules/strip-ansi/package.json +0 -57
- package/mac-agent/node_modules/yargs/node_modules/strip-ansi/readme.md +0 -33
- package/mac-agent/node_modules/yargs/package.json +0 -80
- package/mac-agent/node_modules/yargs/yargs.js +0 -1126
- package/mac-agent/node_modules/yargs-parser/CHANGELOG.md +0 -176
- package/mac-agent/node_modules/yargs-parser/LICENSE.txt +0 -14
- package/mac-agent/node_modules/yargs-parser/README.md +0 -257
- package/mac-agent/node_modules/yargs-parser/index.js +0 -753
- package/mac-agent/node_modules/yargs-parser/lib/tokenize-arg-string.js +0 -34
- package/mac-agent/node_modules/yargs-parser/package.json +0 -44
- package/mac-agent/package-lock.json +0 -2272
- package/mac-agent/shell-mirror@1.5.7 +0 -0
|
@@ -1,3049 +0,0 @@
|
|
|
1
|
-
/*********************************************************************
|
|
2
|
-
* NAN - Native Abstractions for Node.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2018 NAN contributors:
|
|
5
|
-
* - Rod Vagg <https://github.com/rvagg>
|
|
6
|
-
* - Benjamin Byholm <https://github.com/kkoopa>
|
|
7
|
-
* - Trevor Norris <https://github.com/trevnorris>
|
|
8
|
-
* - Nathan Rajlich <https://github.com/TooTallNate>
|
|
9
|
-
* - Brett Lawson <https://github.com/brett19>
|
|
10
|
-
* - Ben Noordhuis <https://github.com/bnoordhuis>
|
|
11
|
-
* - David Siegel <https://github.com/agnat>
|
|
12
|
-
* - Michael Ira Krufky <https://github.com/mkrufky>
|
|
13
|
-
*
|
|
14
|
-
* MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
|
|
15
|
-
*
|
|
16
|
-
* Version 2.22.2: current Node 22.14.0, Node 0.12: 0.12.18, Node 0.10: 0.10.48, iojs: 3.3.1
|
|
17
|
-
*
|
|
18
|
-
* See https://github.com/nodejs/nan for the latest update to this file
|
|
19
|
-
**********************************************************************************/
|
|
20
|
-
|
|
21
|
-
#ifndef NAN_H_
|
|
22
|
-
#define NAN_H_
|
|
23
|
-
|
|
24
|
-
#include <node_version.h>
|
|
25
|
-
|
|
26
|
-
#define NODE_0_10_MODULE_VERSION 11
|
|
27
|
-
#define NODE_0_12_MODULE_VERSION 14
|
|
28
|
-
#define ATOM_0_21_MODULE_VERSION 41
|
|
29
|
-
#define IOJS_1_0_MODULE_VERSION 42
|
|
30
|
-
#define IOJS_1_1_MODULE_VERSION 43
|
|
31
|
-
#define IOJS_2_0_MODULE_VERSION 44
|
|
32
|
-
#define IOJS_3_0_MODULE_VERSION 45
|
|
33
|
-
#define NODE_4_0_MODULE_VERSION 46
|
|
34
|
-
#define NODE_5_0_MODULE_VERSION 47
|
|
35
|
-
#define NODE_6_0_MODULE_VERSION 48
|
|
36
|
-
#define NODE_7_0_MODULE_VERSION 51
|
|
37
|
-
#define NODE_8_0_MODULE_VERSION 57
|
|
38
|
-
#define NODE_9_0_MODULE_VERSION 59
|
|
39
|
-
#define NODE_10_0_MODULE_VERSION 64
|
|
40
|
-
#define NODE_11_0_MODULE_VERSION 67
|
|
41
|
-
#define NODE_12_0_MODULE_VERSION 72
|
|
42
|
-
#define NODE_13_0_MODULE_VERSION 79
|
|
43
|
-
#define NODE_14_0_MODULE_VERSION 83
|
|
44
|
-
#define NODE_15_0_MODULE_VERSION 88
|
|
45
|
-
#define NODE_16_0_MODULE_VERSION 93
|
|
46
|
-
#define NODE_17_0_MODULE_VERSION 102
|
|
47
|
-
#define NODE_18_0_MODULE_VERSION 108
|
|
48
|
-
#define NODE_19_0_MODULE_VERSION 111
|
|
49
|
-
#define NODE_20_0_MODULE_VERSION 115
|
|
50
|
-
|
|
51
|
-
#ifdef _MSC_VER
|
|
52
|
-
# define NAN_HAS_CPLUSPLUS_11 (_MSC_VER >= 1800)
|
|
53
|
-
#else
|
|
54
|
-
# define NAN_HAS_CPLUSPLUS_11 (__cplusplus >= 201103L)
|
|
55
|
-
#endif
|
|
56
|
-
|
|
57
|
-
#if NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION && !NAN_HAS_CPLUSPLUS_11
|
|
58
|
-
# error This version of node/NAN/v8 requires a C++11 compiler
|
|
59
|
-
#endif
|
|
60
|
-
|
|
61
|
-
#include <uv.h>
|
|
62
|
-
#include <node.h>
|
|
63
|
-
#include <node_buffer.h>
|
|
64
|
-
#include <node_object_wrap.h>
|
|
65
|
-
#include <algorithm>
|
|
66
|
-
#include <cstring>
|
|
67
|
-
#include <climits>
|
|
68
|
-
#include <cstdlib>
|
|
69
|
-
#include <utility>
|
|
70
|
-
#if defined(_MSC_VER)
|
|
71
|
-
# pragma warning( push )
|
|
72
|
-
# pragma warning( disable : 4530 )
|
|
73
|
-
# include <queue>
|
|
74
|
-
# include <string>
|
|
75
|
-
# include <vector>
|
|
76
|
-
# pragma warning( pop )
|
|
77
|
-
#else
|
|
78
|
-
# include <queue>
|
|
79
|
-
# include <string>
|
|
80
|
-
# include <vector>
|
|
81
|
-
#endif
|
|
82
|
-
|
|
83
|
-
// uv helpers
|
|
84
|
-
#ifdef UV_VERSION_MAJOR
|
|
85
|
-
# ifndef UV_VERSION_PATCH
|
|
86
|
-
# define UV_VERSION_PATCH 0
|
|
87
|
-
# endif
|
|
88
|
-
# define NAUV_UVVERSION ((UV_VERSION_MAJOR << 16) | \
|
|
89
|
-
(UV_VERSION_MINOR << 8) | \
|
|
90
|
-
(UV_VERSION_PATCH))
|
|
91
|
-
#else
|
|
92
|
-
# define NAUV_UVVERSION 0x000b00
|
|
93
|
-
#endif
|
|
94
|
-
|
|
95
|
-
#if NAUV_UVVERSION < 0x000b0b
|
|
96
|
-
# ifdef WIN32
|
|
97
|
-
# include <windows.h>
|
|
98
|
-
# else
|
|
99
|
-
# include <pthread.h>
|
|
100
|
-
# endif
|
|
101
|
-
#endif
|
|
102
|
-
|
|
103
|
-
namespace Nan {
|
|
104
|
-
|
|
105
|
-
#define NAN_CONCAT(a, b) NAN_CONCAT_HELPER(a, b)
|
|
106
|
-
#define NAN_CONCAT_HELPER(a, b) a##b
|
|
107
|
-
|
|
108
|
-
#define NAN_INLINE inline // TODO(bnoordhuis) Remove in v3.0.0.
|
|
109
|
-
|
|
110
|
-
#if defined(__GNUC__) && \
|
|
111
|
-
!(defined(V8_DISABLE_DEPRECATIONS) && V8_DISABLE_DEPRECATIONS)
|
|
112
|
-
# define NAN_DEPRECATED __attribute__((deprecated))
|
|
113
|
-
#elif defined(_MSC_VER) && \
|
|
114
|
-
!(defined(V8_DISABLE_DEPRECATIONS) && V8_DISABLE_DEPRECATIONS)
|
|
115
|
-
# define NAN_DEPRECATED __declspec(deprecated)
|
|
116
|
-
#else
|
|
117
|
-
# define NAN_DEPRECATED
|
|
118
|
-
#endif
|
|
119
|
-
|
|
120
|
-
#if NAN_HAS_CPLUSPLUS_11
|
|
121
|
-
# define NAN_DISALLOW_ASSIGN(CLASS) void operator=(const CLASS&) = delete;
|
|
122
|
-
# define NAN_DISALLOW_COPY(CLASS) CLASS(const CLASS&) = delete;
|
|
123
|
-
# define NAN_DISALLOW_MOVE(CLASS) \
|
|
124
|
-
CLASS(CLASS&&) = delete; /* NOLINT(build/c++11) */ \
|
|
125
|
-
void operator=(CLASS&&) = delete;
|
|
126
|
-
#else
|
|
127
|
-
# define NAN_DISALLOW_ASSIGN(CLASS) void operator=(const CLASS&);
|
|
128
|
-
# define NAN_DISALLOW_COPY(CLASS) CLASS(const CLASS&);
|
|
129
|
-
# define NAN_DISALLOW_MOVE(CLASS)
|
|
130
|
-
#endif
|
|
131
|
-
|
|
132
|
-
#define NAN_DISALLOW_ASSIGN_COPY(CLASS) \
|
|
133
|
-
NAN_DISALLOW_ASSIGN(CLASS) \
|
|
134
|
-
NAN_DISALLOW_COPY(CLASS)
|
|
135
|
-
|
|
136
|
-
#define NAN_DISALLOW_ASSIGN_MOVE(CLASS) \
|
|
137
|
-
NAN_DISALLOW_ASSIGN(CLASS) \
|
|
138
|
-
NAN_DISALLOW_MOVE(CLASS)
|
|
139
|
-
|
|
140
|
-
#define NAN_DISALLOW_COPY_MOVE(CLASS) \
|
|
141
|
-
NAN_DISALLOW_COPY(CLASS) \
|
|
142
|
-
NAN_DISALLOW_MOVE(CLASS)
|
|
143
|
-
|
|
144
|
-
#define NAN_DISALLOW_ASSIGN_COPY_MOVE(CLASS) \
|
|
145
|
-
NAN_DISALLOW_ASSIGN(CLASS) \
|
|
146
|
-
NAN_DISALLOW_COPY(CLASS) \
|
|
147
|
-
NAN_DISALLOW_MOVE(CLASS)
|
|
148
|
-
|
|
149
|
-
#define TYPE_CHECK(T, S) \
|
|
150
|
-
while (false) { \
|
|
151
|
-
*(static_cast<T *volatile *>(0)) = static_cast<S*>(0); \
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
//=== RegistrationFunction =====================================================
|
|
155
|
-
|
|
156
|
-
#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
157
|
-
typedef v8::Handle<v8::Object> ADDON_REGISTER_FUNCTION_ARGS_TYPE;
|
|
158
|
-
#else
|
|
159
|
-
typedef v8::Local<v8::Object> ADDON_REGISTER_FUNCTION_ARGS_TYPE;
|
|
160
|
-
#endif
|
|
161
|
-
|
|
162
|
-
#define NAN_MODULE_INIT(name) \
|
|
163
|
-
void name(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE target)
|
|
164
|
-
|
|
165
|
-
#if NODE_MAJOR_VERSION >= 10 || \
|
|
166
|
-
NODE_MAJOR_VERSION == 9 && NODE_MINOR_VERSION >= 3
|
|
167
|
-
#define NAN_MODULE_WORKER_ENABLED(module_name, registration) \
|
|
168
|
-
extern "C" NODE_MODULE_EXPORT void \
|
|
169
|
-
NAN_CONCAT(node_register_module_v, NODE_MODULE_VERSION)( \
|
|
170
|
-
v8::Local<v8::Object> exports, v8::Local<v8::Value> module, \
|
|
171
|
-
v8::Local<v8::Context> context) \
|
|
172
|
-
{ \
|
|
173
|
-
registration(exports); \
|
|
174
|
-
}
|
|
175
|
-
#else
|
|
176
|
-
#define NAN_MODULE_WORKER_ENABLED(module_name, registration) \
|
|
177
|
-
NODE_MODULE(module_name, registration)
|
|
178
|
-
#endif
|
|
179
|
-
|
|
180
|
-
//=== CallbackInfo =============================================================
|
|
181
|
-
|
|
182
|
-
#include "nan_callbacks.h" // NOLINT(build/include)
|
|
183
|
-
|
|
184
|
-
//==============================================================================
|
|
185
|
-
|
|
186
|
-
#if (NODE_MODULE_VERSION < NODE_0_12_MODULE_VERSION)
|
|
187
|
-
typedef v8::Script UnboundScript;
|
|
188
|
-
typedef v8::Script BoundScript;
|
|
189
|
-
#else
|
|
190
|
-
typedef v8::UnboundScript UnboundScript;
|
|
191
|
-
typedef v8::Script BoundScript;
|
|
192
|
-
#endif
|
|
193
|
-
|
|
194
|
-
#if (NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION)
|
|
195
|
-
typedef v8::String::ExternalAsciiStringResource
|
|
196
|
-
ExternalOneByteStringResource;
|
|
197
|
-
#else
|
|
198
|
-
typedef v8::String::ExternalOneByteStringResource
|
|
199
|
-
ExternalOneByteStringResource;
|
|
200
|
-
#endif
|
|
201
|
-
|
|
202
|
-
#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
|
|
203
|
-
template<typename T>
|
|
204
|
-
class NonCopyablePersistentTraits :
|
|
205
|
-
public v8::NonCopyablePersistentTraits<T> {};
|
|
206
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 10 || \
|
|
207
|
-
(V8_MAJOR_VERSION == 10 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 5))
|
|
208
|
-
template<typename T> struct CopyablePersistentTraits {
|
|
209
|
-
typedef v8::Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
|
|
210
|
-
static const bool kResetInDestructor = true;
|
|
211
|
-
template <typename S, typename M>
|
|
212
|
-
static NAN_INLINE void Copy(const v8::Persistent<S, M> &source,
|
|
213
|
-
CopyablePersistent *dest) {
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
#else
|
|
217
|
-
template<typename T>
|
|
218
|
-
class CopyablePersistentTraits :
|
|
219
|
-
public v8::CopyablePersistentTraits<T> {};
|
|
220
|
-
#endif
|
|
221
|
-
|
|
222
|
-
template<typename T>
|
|
223
|
-
class PersistentBase :
|
|
224
|
-
public v8::PersistentBase<T> {};
|
|
225
|
-
|
|
226
|
-
template<typename T, typename M = v8::NonCopyablePersistentTraits<T> >
|
|
227
|
-
class Persistent;
|
|
228
|
-
#else
|
|
229
|
-
template<typename T> class NonCopyablePersistentTraits;
|
|
230
|
-
template<typename T> class PersistentBase;
|
|
231
|
-
template<typename T, typename P> class WeakCallbackData;
|
|
232
|
-
template<typename T, typename M = NonCopyablePersistentTraits<T> >
|
|
233
|
-
class Persistent;
|
|
234
|
-
#endif // NODE_MODULE_VERSION
|
|
235
|
-
|
|
236
|
-
template<typename T>
|
|
237
|
-
class Maybe {
|
|
238
|
-
public:
|
|
239
|
-
inline bool IsNothing() const { return !has_value_; }
|
|
240
|
-
inline bool IsJust() const { return has_value_; }
|
|
241
|
-
|
|
242
|
-
inline T ToChecked() const { return FromJust(); }
|
|
243
|
-
inline void Check() const { FromJust(); }
|
|
244
|
-
|
|
245
|
-
inline bool To(T* out) const {
|
|
246
|
-
if (IsJust()) *out = value_;
|
|
247
|
-
return IsJust();
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
inline T FromJust() const {
|
|
251
|
-
#if defined(V8_ENABLE_CHECKS)
|
|
252
|
-
assert(IsJust() && "FromJust is Nothing");
|
|
253
|
-
#endif // V8_ENABLE_CHECKS
|
|
254
|
-
return value_;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
inline T FromMaybe(const T& default_value) const {
|
|
258
|
-
return has_value_ ? value_ : default_value;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
inline bool operator==(const Maybe &other) const {
|
|
262
|
-
return (IsJust() == other.IsJust()) &&
|
|
263
|
-
(!IsJust() || FromJust() == other.FromJust());
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
inline bool operator!=(const Maybe &other) const {
|
|
267
|
-
return !operator==(other);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
|
|
271
|
-
(V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
|
|
272
|
-
// Allow implicit conversions from v8::Maybe<T> to Nan::Maybe<T>.
|
|
273
|
-
Maybe(const v8::Maybe<T>& that) // NOLINT(runtime/explicit)
|
|
274
|
-
: has_value_(that.IsJust())
|
|
275
|
-
, value_(that.FromMaybe(T())) {}
|
|
276
|
-
#endif
|
|
277
|
-
|
|
278
|
-
private:
|
|
279
|
-
Maybe() : has_value_(false) {}
|
|
280
|
-
explicit Maybe(const T& t) : has_value_(true), value_(t) {}
|
|
281
|
-
bool has_value_;
|
|
282
|
-
T value_;
|
|
283
|
-
|
|
284
|
-
template<typename U>
|
|
285
|
-
friend Maybe<U> Nothing();
|
|
286
|
-
template<typename U>
|
|
287
|
-
friend Maybe<U> Just(const U& u);
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
template<typename T>
|
|
291
|
-
inline Maybe<T> Nothing() {
|
|
292
|
-
return Maybe<T>();
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
template<typename T>
|
|
296
|
-
inline Maybe<T> Just(const T& t) {
|
|
297
|
-
return Maybe<T>(t);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
|
|
301
|
-
(V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
|
|
302
|
-
# include "nan_maybe_43_inl.h" // NOLINT(build/include)
|
|
303
|
-
#else
|
|
304
|
-
# include "nan_maybe_pre_43_inl.h" // NOLINT(build/include)
|
|
305
|
-
#endif
|
|
306
|
-
|
|
307
|
-
#include "nan_converters.h" // NOLINT(build/include)
|
|
308
|
-
#include "nan_new.h" // NOLINT(build/include)
|
|
309
|
-
|
|
310
|
-
#if NAUV_UVVERSION < 0x000b17
|
|
311
|
-
#define NAUV_WORK_CB(func) \
|
|
312
|
-
void func(uv_async_t *async, int)
|
|
313
|
-
#else
|
|
314
|
-
#define NAUV_WORK_CB(func) \
|
|
315
|
-
void func(uv_async_t *async)
|
|
316
|
-
#endif
|
|
317
|
-
|
|
318
|
-
#if NAUV_UVVERSION >= 0x000b0b
|
|
319
|
-
|
|
320
|
-
typedef uv_key_t nauv_key_t;
|
|
321
|
-
|
|
322
|
-
inline int nauv_key_create(nauv_key_t *key) {
|
|
323
|
-
return uv_key_create(key);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
inline void nauv_key_delete(nauv_key_t *key) {
|
|
327
|
-
uv_key_delete(key);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
inline void* nauv_key_get(nauv_key_t *key) {
|
|
331
|
-
return uv_key_get(key);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
inline void nauv_key_set(nauv_key_t *key, void *value) {
|
|
335
|
-
uv_key_set(key, value);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
#else
|
|
339
|
-
|
|
340
|
-
/* Implement thread local storage for older versions of libuv.
|
|
341
|
-
* This is essentially a backport of libuv commit 5d2434bf
|
|
342
|
-
* written by Ben Noordhuis, adjusted for names and inline.
|
|
343
|
-
*/
|
|
344
|
-
|
|
345
|
-
#ifndef WIN32
|
|
346
|
-
|
|
347
|
-
typedef pthread_key_t nauv_key_t;
|
|
348
|
-
|
|
349
|
-
inline int nauv_key_create(nauv_key_t* key) {
|
|
350
|
-
return -pthread_key_create(key, NULL);
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
inline void nauv_key_delete(nauv_key_t* key) {
|
|
354
|
-
if (pthread_key_delete(*key))
|
|
355
|
-
abort();
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
inline void* nauv_key_get(nauv_key_t* key) {
|
|
359
|
-
return pthread_getspecific(*key);
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
inline void nauv_key_set(nauv_key_t* key, void* value) {
|
|
363
|
-
if (pthread_setspecific(*key, value))
|
|
364
|
-
abort();
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
#else
|
|
368
|
-
|
|
369
|
-
typedef struct {
|
|
370
|
-
DWORD tls_index;
|
|
371
|
-
} nauv_key_t;
|
|
372
|
-
|
|
373
|
-
inline int nauv_key_create(nauv_key_t* key) {
|
|
374
|
-
key->tls_index = TlsAlloc();
|
|
375
|
-
if (key->tls_index == TLS_OUT_OF_INDEXES)
|
|
376
|
-
return UV_ENOMEM;
|
|
377
|
-
return 0;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
inline void nauv_key_delete(nauv_key_t* key) {
|
|
381
|
-
if (TlsFree(key->tls_index) == FALSE)
|
|
382
|
-
abort();
|
|
383
|
-
key->tls_index = TLS_OUT_OF_INDEXES;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
inline void* nauv_key_get(nauv_key_t* key) {
|
|
387
|
-
void* value = TlsGetValue(key->tls_index);
|
|
388
|
-
if (value == NULL)
|
|
389
|
-
if (GetLastError() != ERROR_SUCCESS)
|
|
390
|
-
abort();
|
|
391
|
-
return value;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
inline void nauv_key_set(nauv_key_t* key, void* value) {
|
|
395
|
-
if (TlsSetValue(key->tls_index, value) == FALSE)
|
|
396
|
-
abort();
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
#endif
|
|
400
|
-
#endif
|
|
401
|
-
|
|
402
|
-
#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
403
|
-
template<typename T>
|
|
404
|
-
v8::Local<T> New(v8::Handle<T>);
|
|
405
|
-
#endif
|
|
406
|
-
|
|
407
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
|
|
408
|
-
(V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
|
|
409
|
-
typedef v8::WeakCallbackType WeakCallbackType;
|
|
410
|
-
#else
|
|
411
|
-
struct WeakCallbackType {
|
|
412
|
-
enum E {kParameter, kInternalFields};
|
|
413
|
-
E type;
|
|
414
|
-
WeakCallbackType(E other) : type(other) {} // NOLINT(runtime/explicit)
|
|
415
|
-
inline bool operator==(E other) { return other == this->type; }
|
|
416
|
-
inline bool operator!=(E other) { return !operator==(other); }
|
|
417
|
-
};
|
|
418
|
-
#endif
|
|
419
|
-
|
|
420
|
-
template<typename P> class WeakCallbackInfo;
|
|
421
|
-
|
|
422
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
|
423
|
-
# include "nan_persistent_12_inl.h" // NOLINT(build/include)
|
|
424
|
-
#else
|
|
425
|
-
# include "nan_persistent_pre_12_inl.h" // NOLINT(build/include)
|
|
426
|
-
#endif
|
|
427
|
-
|
|
428
|
-
namespace imp {
|
|
429
|
-
static const size_t kMaxLength = 0x3fffffff;
|
|
430
|
-
// v8::String::REPLACE_INVALID_UTF8 was introduced
|
|
431
|
-
// in node.js v0.10.29 and v0.8.27.
|
|
432
|
-
#if NODE_MAJOR_VERSION > 0 || \
|
|
433
|
-
NODE_MINOR_VERSION > 10 || \
|
|
434
|
-
NODE_MINOR_VERSION == 10 && NODE_PATCH_VERSION >= 29 || \
|
|
435
|
-
NODE_MINOR_VERSION == 8 && NODE_PATCH_VERSION >= 27
|
|
436
|
-
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
|
|
437
|
-
#else
|
|
438
|
-
static const unsigned kReplaceInvalidUtf8 = 0;
|
|
439
|
-
#endif
|
|
440
|
-
} // end of namespace imp
|
|
441
|
-
|
|
442
|
-
//=== HandleScope ==============================================================
|
|
443
|
-
|
|
444
|
-
class HandleScope {
|
|
445
|
-
v8::HandleScope scope;
|
|
446
|
-
|
|
447
|
-
public:
|
|
448
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
|
449
|
-
inline HandleScope() : scope(v8::Isolate::GetCurrent()) {}
|
|
450
|
-
inline static int NumberOfHandles() {
|
|
451
|
-
return v8::HandleScope::NumberOfHandles(v8::Isolate::GetCurrent());
|
|
452
|
-
}
|
|
453
|
-
#else
|
|
454
|
-
inline HandleScope() : scope() {}
|
|
455
|
-
inline static int NumberOfHandles() {
|
|
456
|
-
return v8::HandleScope::NumberOfHandles();
|
|
457
|
-
}
|
|
458
|
-
#endif
|
|
459
|
-
|
|
460
|
-
private:
|
|
461
|
-
// Make it hard to create heap-allocated or illegal handle scopes by
|
|
462
|
-
// disallowing certain operations.
|
|
463
|
-
HandleScope(const HandleScope &);
|
|
464
|
-
void operator=(const HandleScope &);
|
|
465
|
-
void *operator new(size_t size);
|
|
466
|
-
void operator delete(void *, size_t) {
|
|
467
|
-
abort();
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
class EscapableHandleScope {
|
|
472
|
-
public:
|
|
473
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
|
474
|
-
inline EscapableHandleScope() : scope(v8::Isolate::GetCurrent()) {}
|
|
475
|
-
|
|
476
|
-
inline static int NumberOfHandles() {
|
|
477
|
-
return v8::EscapableHandleScope::NumberOfHandles(v8::Isolate::GetCurrent());
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
template<typename T>
|
|
481
|
-
inline v8::Local<T> Escape(v8::Local<T> value) {
|
|
482
|
-
return scope.Escape(value);
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
private:
|
|
486
|
-
v8::EscapableHandleScope scope;
|
|
487
|
-
#else
|
|
488
|
-
inline EscapableHandleScope() : scope() {}
|
|
489
|
-
|
|
490
|
-
inline static int NumberOfHandles() {
|
|
491
|
-
return v8::HandleScope::NumberOfHandles();
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
template<typename T>
|
|
495
|
-
inline v8::Local<T> Escape(v8::Local<T> value) {
|
|
496
|
-
return scope.Close(value);
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
private:
|
|
500
|
-
v8::HandleScope scope;
|
|
501
|
-
#endif
|
|
502
|
-
|
|
503
|
-
private:
|
|
504
|
-
// Make it hard to create heap-allocated or illegal handle scopes by
|
|
505
|
-
// disallowing certain operations.
|
|
506
|
-
EscapableHandleScope(const EscapableHandleScope &);
|
|
507
|
-
void operator=(const EscapableHandleScope &);
|
|
508
|
-
void *operator new(size_t size);
|
|
509
|
-
void operator delete(void *, size_t) {
|
|
510
|
-
abort();
|
|
511
|
-
}
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
//=== TryCatch =================================================================
|
|
515
|
-
|
|
516
|
-
class TryCatch {
|
|
517
|
-
v8::TryCatch try_catch_;
|
|
518
|
-
friend void FatalException(const TryCatch&);
|
|
519
|
-
|
|
520
|
-
public:
|
|
521
|
-
#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
|
|
522
|
-
TryCatch() : try_catch_(v8::Isolate::GetCurrent()) {}
|
|
523
|
-
#endif
|
|
524
|
-
|
|
525
|
-
inline bool HasCaught() const { return try_catch_.HasCaught(); }
|
|
526
|
-
|
|
527
|
-
inline bool CanContinue() const { return try_catch_.CanContinue(); }
|
|
528
|
-
|
|
529
|
-
inline v8::Local<v8::Value> ReThrow() {
|
|
530
|
-
#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
531
|
-
return New(try_catch_.ReThrow());
|
|
532
|
-
#else
|
|
533
|
-
return try_catch_.ReThrow();
|
|
534
|
-
#endif
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
inline v8::Local<v8::Value> Exception() const {
|
|
538
|
-
return try_catch_.Exception();
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
|
|
542
|
-
(V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
|
|
543
|
-
inline v8::MaybeLocal<v8::Value> StackTrace() const {
|
|
544
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
545
|
-
v8::EscapableHandleScope scope(isolate);
|
|
546
|
-
return scope.Escape(try_catch_.StackTrace(isolate->GetCurrentContext())
|
|
547
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
|
548
|
-
}
|
|
549
|
-
#else
|
|
550
|
-
inline MaybeLocal<v8::Value> StackTrace() const {
|
|
551
|
-
return try_catch_.StackTrace();
|
|
552
|
-
}
|
|
553
|
-
#endif
|
|
554
|
-
|
|
555
|
-
inline v8::Local<v8::Message> Message() const {
|
|
556
|
-
return try_catch_.Message();
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
inline void Reset() { try_catch_.Reset(); }
|
|
560
|
-
|
|
561
|
-
inline void SetVerbose(bool value) { try_catch_.SetVerbose(value); }
|
|
562
|
-
|
|
563
|
-
inline void SetCaptureMessage(bool value) {
|
|
564
|
-
try_catch_.SetCaptureMessage(value);
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
|
|
568
|
-
v8::Local<v8::Value> MakeCallback(v8::Local<v8::Object> target,
|
|
569
|
-
v8::Local<v8::Function> func,
|
|
570
|
-
int argc,
|
|
571
|
-
v8::Local<v8::Value>* argv);
|
|
572
|
-
v8::Local<v8::Value> MakeCallback(v8::Local<v8::Object> target,
|
|
573
|
-
v8::Local<v8::String> symbol,
|
|
574
|
-
int argc,
|
|
575
|
-
v8::Local<v8::Value>* argv);
|
|
576
|
-
v8::Local<v8::Value> MakeCallback(v8::Local<v8::Object> target,
|
|
577
|
-
const char* method,
|
|
578
|
-
int argc,
|
|
579
|
-
v8::Local<v8::Value>* argv);
|
|
580
|
-
|
|
581
|
-
// === AsyncResource ===========================================================
|
|
582
|
-
|
|
583
|
-
class AsyncResource {
|
|
584
|
-
public:
|
|
585
|
-
AsyncResource(
|
|
586
|
-
v8::Local<v8::String> name
|
|
587
|
-
, v8::Local<v8::Object> resource = New<v8::Object>()) {
|
|
588
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
589
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
|
590
|
-
|
|
591
|
-
if (resource.IsEmpty()) {
|
|
592
|
-
resource = New<v8::Object>();
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
context = node::EmitAsyncInit(isolate, resource, name);
|
|
596
|
-
#endif
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
AsyncResource(
|
|
600
|
-
const char* name
|
|
601
|
-
, v8::Local<v8::Object> resource = New<v8::Object>()) {
|
|
602
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
603
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
|
604
|
-
|
|
605
|
-
if (resource.IsEmpty()) {
|
|
606
|
-
resource = New<v8::Object>();
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
v8::Local<v8::String> name_string =
|
|
610
|
-
New<v8::String>(name).ToLocalChecked();
|
|
611
|
-
context = node::EmitAsyncInit(isolate, resource, name_string);
|
|
612
|
-
#endif
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
~AsyncResource() {
|
|
616
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
617
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
|
618
|
-
node::EmitAsyncDestroy(isolate, context);
|
|
619
|
-
#endif
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
inline MaybeLocal<v8::Value> runInAsyncScope(
|
|
623
|
-
v8::Local<v8::Object> target
|
|
624
|
-
, v8::Local<v8::Function> func
|
|
625
|
-
, int argc
|
|
626
|
-
, v8::Local<v8::Value>* argv) {
|
|
627
|
-
#if NODE_MODULE_VERSION < NODE_9_0_MODULE_VERSION
|
|
628
|
-
return MakeCallback(target, func, argc, argv);
|
|
629
|
-
#else
|
|
630
|
-
return node::MakeCallback(
|
|
631
|
-
v8::Isolate::GetCurrent(), target, func, argc, argv, context);
|
|
632
|
-
#endif
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
inline MaybeLocal<v8::Value> runInAsyncScope(
|
|
636
|
-
v8::Local<v8::Object> target
|
|
637
|
-
, v8::Local<v8::String> symbol
|
|
638
|
-
, int argc
|
|
639
|
-
, v8::Local<v8::Value>* argv) {
|
|
640
|
-
#if NODE_MODULE_VERSION < NODE_9_0_MODULE_VERSION
|
|
641
|
-
return MakeCallback(target, symbol, argc, argv);
|
|
642
|
-
#else
|
|
643
|
-
return node::MakeCallback(
|
|
644
|
-
v8::Isolate::GetCurrent(), target, symbol, argc, argv, context);
|
|
645
|
-
#endif
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
inline MaybeLocal<v8::Value> runInAsyncScope(
|
|
649
|
-
v8::Local<v8::Object> target
|
|
650
|
-
, const char* method
|
|
651
|
-
, int argc
|
|
652
|
-
, v8::Local<v8::Value>* argv) {
|
|
653
|
-
#if NODE_MODULE_VERSION < NODE_9_0_MODULE_VERSION
|
|
654
|
-
return MakeCallback(target, method, argc, argv);
|
|
655
|
-
#else
|
|
656
|
-
return node::MakeCallback(
|
|
657
|
-
v8::Isolate::GetCurrent(), target, method, argc, argv, context);
|
|
658
|
-
#endif
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
private:
|
|
662
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(AsyncResource)
|
|
663
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
664
|
-
node::async_context context;
|
|
665
|
-
#endif
|
|
666
|
-
};
|
|
667
|
-
|
|
668
|
-
inline uv_loop_t* GetCurrentEventLoop() {
|
|
669
|
-
#if NODE_MAJOR_VERSION >= 10 || \
|
|
670
|
-
NODE_MAJOR_VERSION == 9 && NODE_MINOR_VERSION >= 3 || \
|
|
671
|
-
NODE_MAJOR_VERSION == 8 && NODE_MINOR_VERSION >= 10
|
|
672
|
-
return node::GetCurrentEventLoop(v8::Isolate::GetCurrent());
|
|
673
|
-
#else
|
|
674
|
-
return uv_default_loop();
|
|
675
|
-
#endif
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
//============ =================================================================
|
|
679
|
-
|
|
680
|
-
/* node 0.12 */
|
|
681
|
-
#if NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION
|
|
682
|
-
inline
|
|
683
|
-
void SetCounterFunction(v8::CounterLookupCallback cb) {
|
|
684
|
-
v8::Isolate::GetCurrent()->SetCounterFunction(cb);
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
inline
|
|
688
|
-
void SetCreateHistogramFunction(v8::CreateHistogramCallback cb) {
|
|
689
|
-
v8::Isolate::GetCurrent()->SetCreateHistogramFunction(cb);
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
inline
|
|
693
|
-
void SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb) {
|
|
694
|
-
v8::Isolate::GetCurrent()->SetAddHistogramSampleFunction(cb);
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
#if defined(V8_MAJOR_VERSION) && \
|
|
698
|
-
(V8_MAJOR_VERSION > 12 || \
|
|
699
|
-
(V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && \
|
|
700
|
-
V8_MINOR_VERSION >= 7))
|
|
701
|
-
NAN_DEPRECATED inline bool IdleNotification(int) {
|
|
702
|
-
return true;
|
|
703
|
-
}
|
|
704
|
-
# elif defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
|
|
705
|
-
(V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
|
|
706
|
-
NAN_DEPRECATED inline bool IdleNotification(int idle_time_in_ms) {
|
|
707
|
-
return v8::Isolate::GetCurrent()->IdleNotificationDeadline(
|
|
708
|
-
idle_time_in_ms * 0.001);
|
|
709
|
-
}
|
|
710
|
-
# else
|
|
711
|
-
NAN_DEPRECATED inline bool IdleNotification(int idle_time_in_ms) {
|
|
712
|
-
return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);
|
|
713
|
-
}
|
|
714
|
-
#endif
|
|
715
|
-
|
|
716
|
-
inline void LowMemoryNotification() {
|
|
717
|
-
v8::Isolate::GetCurrent()->LowMemoryNotification();
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
inline void ContextDisposedNotification() {
|
|
721
|
-
v8::Isolate::GetCurrent()->ContextDisposedNotification();
|
|
722
|
-
}
|
|
723
|
-
#else
|
|
724
|
-
inline
|
|
725
|
-
void SetCounterFunction(v8::CounterLookupCallback cb) {
|
|
726
|
-
v8::V8::SetCounterFunction(cb);
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
inline
|
|
730
|
-
void SetCreateHistogramFunction(v8::CreateHistogramCallback cb) {
|
|
731
|
-
v8::V8::SetCreateHistogramFunction(cb);
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
inline
|
|
735
|
-
void SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb) {
|
|
736
|
-
v8::V8::SetAddHistogramSampleFunction(cb);
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
inline bool IdleNotification(int idle_time_in_ms) {
|
|
740
|
-
return v8::V8::IdleNotification(idle_time_in_ms);
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
inline void LowMemoryNotification() {
|
|
744
|
-
v8::V8::LowMemoryNotification();
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
inline void ContextDisposedNotification() {
|
|
748
|
-
v8::V8::ContextDisposedNotification();
|
|
749
|
-
}
|
|
750
|
-
#endif
|
|
751
|
-
|
|
752
|
-
#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION) // Node 0.12
|
|
753
|
-
inline v8::Local<v8::Primitive> Undefined() {
|
|
754
|
-
# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
755
|
-
EscapableHandleScope scope;
|
|
756
|
-
return scope.Escape(New(v8::Undefined(v8::Isolate::GetCurrent())));
|
|
757
|
-
# else
|
|
758
|
-
return v8::Undefined(v8::Isolate::GetCurrent());
|
|
759
|
-
# endif
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
inline v8::Local<v8::Primitive> Null() {
|
|
763
|
-
# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
764
|
-
EscapableHandleScope scope;
|
|
765
|
-
return scope.Escape(New(v8::Null(v8::Isolate::GetCurrent())));
|
|
766
|
-
# else
|
|
767
|
-
return v8::Null(v8::Isolate::GetCurrent());
|
|
768
|
-
# endif
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
inline v8::Local<v8::Boolean> True() {
|
|
772
|
-
# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
773
|
-
EscapableHandleScope scope;
|
|
774
|
-
return scope.Escape(New(v8::True(v8::Isolate::GetCurrent())));
|
|
775
|
-
# else
|
|
776
|
-
return v8::True(v8::Isolate::GetCurrent());
|
|
777
|
-
# endif
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
inline v8::Local<v8::Boolean> False() {
|
|
781
|
-
# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
782
|
-
EscapableHandleScope scope;
|
|
783
|
-
return scope.Escape(New(v8::False(v8::Isolate::GetCurrent())));
|
|
784
|
-
# else
|
|
785
|
-
return v8::False(v8::Isolate::GetCurrent());
|
|
786
|
-
# endif
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
inline v8::Local<v8::String> EmptyString() {
|
|
790
|
-
return v8::String::Empty(v8::Isolate::GetCurrent());
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
inline int AdjustExternalMemory(int bc) {
|
|
794
|
-
return static_cast<int>(
|
|
795
|
-
v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(bc));
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
inline void SetTemplate(
|
|
799
|
-
v8::Local<v8::Template> templ
|
|
800
|
-
, const char *name
|
|
801
|
-
, v8::Local<v8::Data> value) {
|
|
802
|
-
templ->Set(v8::Isolate::GetCurrent(), name, value);
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
inline void SetTemplate(
|
|
806
|
-
v8::Local<v8::Template> templ
|
|
807
|
-
, v8::Local<v8::String> name
|
|
808
|
-
, v8::Local<v8::Data> value
|
|
809
|
-
, v8::PropertyAttribute attributes) {
|
|
810
|
-
templ->Set(name, value, attributes);
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
inline v8::Local<v8::Context> GetCurrentContext() {
|
|
814
|
-
return v8::Isolate::GetCurrent()->GetCurrentContext();
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
inline void* GetInternalFieldPointer(
|
|
818
|
-
v8::Local<v8::Object> object
|
|
819
|
-
, int index) {
|
|
820
|
-
return object->GetAlignedPointerFromInternalField(index);
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
inline void SetInternalFieldPointer(
|
|
824
|
-
v8::Local<v8::Object> object
|
|
825
|
-
, int index
|
|
826
|
-
, void* value) {
|
|
827
|
-
object->SetAlignedPointerInInternalField(index, value);
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
# define NAN_GC_CALLBACK(name) \
|
|
831
|
-
void name(v8::Isolate *isolate, v8::GCType type, v8::GCCallbackFlags flags)
|
|
832
|
-
|
|
833
|
-
#if NODE_MODULE_VERSION <= NODE_4_0_MODULE_VERSION
|
|
834
|
-
typedef v8::Isolate::GCEpilogueCallback GCEpilogueCallback;
|
|
835
|
-
typedef v8::Isolate::GCPrologueCallback GCPrologueCallback;
|
|
836
|
-
#else
|
|
837
|
-
typedef v8::Isolate::GCCallback GCEpilogueCallback;
|
|
838
|
-
typedef v8::Isolate::GCCallback GCPrologueCallback;
|
|
839
|
-
#endif
|
|
840
|
-
|
|
841
|
-
inline void AddGCEpilogueCallback(
|
|
842
|
-
GCEpilogueCallback callback
|
|
843
|
-
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
|
|
844
|
-
v8::Isolate::GetCurrent()->AddGCEpilogueCallback(callback, gc_type_filter);
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
inline void RemoveGCEpilogueCallback(
|
|
848
|
-
GCEpilogueCallback callback) {
|
|
849
|
-
v8::Isolate::GetCurrent()->RemoveGCEpilogueCallback(callback);
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
inline void AddGCPrologueCallback(
|
|
853
|
-
GCPrologueCallback callback
|
|
854
|
-
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
|
|
855
|
-
v8::Isolate::GetCurrent()->AddGCPrologueCallback(callback, gc_type_filter);
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
inline void RemoveGCPrologueCallback(
|
|
859
|
-
GCPrologueCallback callback) {
|
|
860
|
-
v8::Isolate::GetCurrent()->RemoveGCPrologueCallback(callback);
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
inline void GetHeapStatistics(
|
|
864
|
-
v8::HeapStatistics *heap_statistics) {
|
|
865
|
-
v8::Isolate::GetCurrent()->GetHeapStatistics(heap_statistics);
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
# define X(NAME) \
|
|
869
|
-
inline v8::Local<v8::Value> NAME(const char *msg) { \
|
|
870
|
-
EscapableHandleScope scope; \
|
|
871
|
-
return scope.Escape(v8::Exception::NAME(New(msg).ToLocalChecked())); \
|
|
872
|
-
} \
|
|
873
|
-
\
|
|
874
|
-
inline \
|
|
875
|
-
v8::Local<v8::Value> NAME(v8::Local<v8::String> msg) { \
|
|
876
|
-
return v8::Exception::NAME(msg); \
|
|
877
|
-
} \
|
|
878
|
-
\
|
|
879
|
-
inline void Throw ## NAME(const char *msg) { \
|
|
880
|
-
HandleScope scope; \
|
|
881
|
-
v8::Isolate::GetCurrent()->ThrowException( \
|
|
882
|
-
v8::Exception::NAME(New(msg).ToLocalChecked())); \
|
|
883
|
-
} \
|
|
884
|
-
\
|
|
885
|
-
inline void Throw ## NAME(v8::Local<v8::String> msg) { \
|
|
886
|
-
HandleScope scope; \
|
|
887
|
-
v8::Isolate::GetCurrent()->ThrowException( \
|
|
888
|
-
v8::Exception::NAME(msg)); \
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
X(Error)
|
|
892
|
-
X(RangeError)
|
|
893
|
-
X(ReferenceError)
|
|
894
|
-
X(SyntaxError)
|
|
895
|
-
X(TypeError)
|
|
896
|
-
|
|
897
|
-
# undef X
|
|
898
|
-
|
|
899
|
-
inline void ThrowError(v8::Local<v8::Value> error) {
|
|
900
|
-
v8::Isolate::GetCurrent()->ThrowException(error);
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
inline MaybeLocal<v8::Object> NewBuffer(
|
|
904
|
-
char *data
|
|
905
|
-
, size_t length
|
|
906
|
-
#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
|
|
907
|
-
, node::Buffer::FreeCallback callback
|
|
908
|
-
#else
|
|
909
|
-
, node::smalloc::FreeCallback callback
|
|
910
|
-
#endif
|
|
911
|
-
, void *hint
|
|
912
|
-
) {
|
|
913
|
-
// arbitrary buffer lengths requires
|
|
914
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
|
915
|
-
assert(length <= imp::kMaxLength && "too large buffer");
|
|
916
|
-
#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
|
|
917
|
-
return node::Buffer::New(
|
|
918
|
-
v8::Isolate::GetCurrent(), data, length, callback, hint);
|
|
919
|
-
#else
|
|
920
|
-
return node::Buffer::New(v8::Isolate::GetCurrent(), data, length, callback,
|
|
921
|
-
hint);
|
|
922
|
-
#endif
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
inline MaybeLocal<v8::Object> CopyBuffer(
|
|
926
|
-
const char *data
|
|
927
|
-
, uint32_t size
|
|
928
|
-
) {
|
|
929
|
-
// arbitrary buffer lengths requires
|
|
930
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
|
931
|
-
assert(size <= imp::kMaxLength && "too large buffer");
|
|
932
|
-
#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
|
|
933
|
-
return node::Buffer::Copy(
|
|
934
|
-
v8::Isolate::GetCurrent(), data, size);
|
|
935
|
-
#else
|
|
936
|
-
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
|
|
937
|
-
#endif
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
inline MaybeLocal<v8::Object> NewBuffer(uint32_t size) {
|
|
941
|
-
// arbitrary buffer lengths requires
|
|
942
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
|
943
|
-
assert(size <= imp::kMaxLength && "too large buffer");
|
|
944
|
-
#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
|
|
945
|
-
return node::Buffer::New(
|
|
946
|
-
v8::Isolate::GetCurrent(), size);
|
|
947
|
-
#else
|
|
948
|
-
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
|
|
949
|
-
#endif
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
inline MaybeLocal<v8::Object> NewBuffer(
|
|
953
|
-
char* data
|
|
954
|
-
, uint32_t size
|
|
955
|
-
) {
|
|
956
|
-
// arbitrary buffer lengths requires
|
|
957
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
|
958
|
-
assert(size <= imp::kMaxLength && "too large buffer");
|
|
959
|
-
#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
|
|
960
|
-
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
|
|
961
|
-
#else
|
|
962
|
-
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
|
|
963
|
-
#endif
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
|
|
967
|
-
(V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
|
|
968
|
-
inline MaybeLocal<v8::String>
|
|
969
|
-
NewOneByteString(const uint8_t * value, int length = -1) {
|
|
970
|
-
return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), value,
|
|
971
|
-
v8::NewStringType::kNormal, length);
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
inline MaybeLocal<BoundScript> CompileScript(
|
|
975
|
-
v8::Local<v8::String> s
|
|
976
|
-
, const v8::ScriptOrigin& origin
|
|
977
|
-
) {
|
|
978
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
979
|
-
v8::EscapableHandleScope scope(isolate);
|
|
980
|
-
v8::ScriptCompiler::Source source(s, origin);
|
|
981
|
-
return scope.Escape(
|
|
982
|
-
v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &source)
|
|
983
|
-
.FromMaybe(v8::Local<BoundScript>()));
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
inline MaybeLocal<BoundScript> CompileScript(
|
|
987
|
-
v8::Local<v8::String> s
|
|
988
|
-
) {
|
|
989
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
990
|
-
v8::EscapableHandleScope scope(isolate);
|
|
991
|
-
v8::ScriptCompiler::Source source(s);
|
|
992
|
-
return scope.Escape(
|
|
993
|
-
v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &source)
|
|
994
|
-
.FromMaybe(v8::Local<BoundScript>()));
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
inline MaybeLocal<v8::Value> RunScript(
|
|
998
|
-
v8::Local<UnboundScript> script
|
|
999
|
-
) {
|
|
1000
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
1001
|
-
v8::EscapableHandleScope scope(isolate);
|
|
1002
|
-
return scope.Escape(script->BindToCurrentContext()
|
|
1003
|
-
->Run(isolate->GetCurrentContext())
|
|
1004
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
inline MaybeLocal<v8::Value> RunScript(
|
|
1008
|
-
v8::Local<BoundScript> script
|
|
1009
|
-
) {
|
|
1010
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
1011
|
-
v8::EscapableHandleScope scope(isolate);
|
|
1012
|
-
return scope.Escape(script->Run(isolate->GetCurrentContext())
|
|
1013
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
|
1014
|
-
}
|
|
1015
|
-
#else
|
|
1016
|
-
inline MaybeLocal<v8::String>
|
|
1017
|
-
NewOneByteString(const uint8_t * value, int length = -1) {
|
|
1018
|
-
return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), value,
|
|
1019
|
-
v8::String::kNormalString, length);
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
inline MaybeLocal<BoundScript> CompileScript(
|
|
1023
|
-
v8::Local<v8::String> s
|
|
1024
|
-
, const v8::ScriptOrigin& origin
|
|
1025
|
-
) {
|
|
1026
|
-
v8::ScriptCompiler::Source source(s, origin);
|
|
1027
|
-
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
inline MaybeLocal<BoundScript> CompileScript(
|
|
1031
|
-
v8::Local<v8::String> s
|
|
1032
|
-
) {
|
|
1033
|
-
v8::ScriptCompiler::Source source(s);
|
|
1034
|
-
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
inline MaybeLocal<v8::Value> RunScript(
|
|
1038
|
-
v8::Local<UnboundScript> script
|
|
1039
|
-
) {
|
|
1040
|
-
EscapableHandleScope scope;
|
|
1041
|
-
return scope.Escape(script->BindToCurrentContext()->Run());
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
inline MaybeLocal<v8::Value> RunScript(
|
|
1045
|
-
v8::Local<BoundScript> script
|
|
1046
|
-
) {
|
|
1047
|
-
return script->Run();
|
|
1048
|
-
}
|
|
1049
|
-
#endif
|
|
1050
|
-
|
|
1051
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
|
|
1052
|
-
v8::Local<v8::Object> target
|
|
1053
|
-
, v8::Local<v8::Function> func
|
|
1054
|
-
, int argc
|
|
1055
|
-
, v8::Local<v8::Value>* argv) {
|
|
1056
|
-
#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
1057
|
-
EscapableHandleScope scope;
|
|
1058
|
-
return scope.Escape(New(node::MakeCallback(
|
|
1059
|
-
v8::Isolate::GetCurrent(), target, func, argc, argv)));
|
|
1060
|
-
#else
|
|
1061
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1062
|
-
AsyncResource res("nan:makeCallback");
|
|
1063
|
-
return res.runInAsyncScope(target, func, argc, argv)
|
|
1064
|
-
.FromMaybe(v8::Local<v8::Value>());
|
|
1065
|
-
# else
|
|
1066
|
-
return node::MakeCallback(
|
|
1067
|
-
v8::Isolate::GetCurrent(), target, func, argc, argv);
|
|
1068
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1069
|
-
#endif // NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
|
|
1073
|
-
v8::Local<v8::Object> target
|
|
1074
|
-
, v8::Local<v8::String> symbol
|
|
1075
|
-
, int argc
|
|
1076
|
-
, v8::Local<v8::Value>* argv) {
|
|
1077
|
-
#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
1078
|
-
EscapableHandleScope scope;
|
|
1079
|
-
return scope.Escape(New(node::MakeCallback(
|
|
1080
|
-
v8::Isolate::GetCurrent(), target, symbol, argc, argv)));
|
|
1081
|
-
#else
|
|
1082
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1083
|
-
AsyncResource res("nan:makeCallback");
|
|
1084
|
-
return res.runInAsyncScope(target, symbol, argc, argv)
|
|
1085
|
-
.FromMaybe(v8::Local<v8::Value>());
|
|
1086
|
-
# else
|
|
1087
|
-
return node::MakeCallback(
|
|
1088
|
-
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
|
|
1089
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1090
|
-
#endif // NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
|
|
1094
|
-
v8::Local<v8::Object> target
|
|
1095
|
-
, const char* method
|
|
1096
|
-
, int argc
|
|
1097
|
-
, v8::Local<v8::Value>* argv) {
|
|
1098
|
-
#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
1099
|
-
EscapableHandleScope scope;
|
|
1100
|
-
return scope.Escape(New(node::MakeCallback(
|
|
1101
|
-
v8::Isolate::GetCurrent(), target, method, argc, argv)));
|
|
1102
|
-
#else
|
|
1103
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1104
|
-
AsyncResource res("nan:makeCallback");
|
|
1105
|
-
return res.runInAsyncScope(target, method, argc, argv)
|
|
1106
|
-
.FromMaybe(v8::Local<v8::Value>());
|
|
1107
|
-
# else
|
|
1108
|
-
return node::MakeCallback(
|
|
1109
|
-
v8::Isolate::GetCurrent(), target, method, argc, argv);
|
|
1110
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1111
|
-
#endif // NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
inline void FatalException(const TryCatch& try_catch) {
|
|
1115
|
-
node::FatalException(v8::Isolate::GetCurrent(), try_catch.try_catch_);
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
inline v8::Local<v8::Value> ErrnoException(
|
|
1119
|
-
int errorno
|
|
1120
|
-
, const char* syscall = NULL
|
|
1121
|
-
, const char* message = NULL
|
|
1122
|
-
, const char* path = NULL) {
|
|
1123
|
-
return node::ErrnoException(v8::Isolate::GetCurrent(), errorno, syscall,
|
|
1124
|
-
message, path);
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> NanErrnoException(
|
|
1128
|
-
int errorno
|
|
1129
|
-
, const char* syscall = NULL
|
|
1130
|
-
, const char* message = NULL
|
|
1131
|
-
, const char* path = NULL) {
|
|
1132
|
-
return ErrnoException(errorno, syscall, message, path);
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
template<typename T>
|
|
1136
|
-
inline void SetIsolateData(
|
|
1137
|
-
v8::Isolate *isolate
|
|
1138
|
-
, T *data
|
|
1139
|
-
) {
|
|
1140
|
-
isolate->SetData(0, data);
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
template<typename T>
|
|
1144
|
-
inline T *GetIsolateData(
|
|
1145
|
-
v8::Isolate *isolate
|
|
1146
|
-
) {
|
|
1147
|
-
return static_cast<T*>(isolate->GetData(0));
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
class Utf8String {
|
|
1151
|
-
public:
|
|
1152
|
-
inline explicit Utf8String(v8::Local<v8::Value> from) :
|
|
1153
|
-
length_(0), str_(str_st_) {
|
|
1154
|
-
HandleScope scope;
|
|
1155
|
-
if (!from.IsEmpty()) {
|
|
1156
|
-
#if NODE_MAJOR_VERSION >= 10
|
|
1157
|
-
v8::Local<v8::Context> context = GetCurrentContext();
|
|
1158
|
-
v8::Local<v8::String> string =
|
|
1159
|
-
from->ToString(context).FromMaybe(v8::Local<v8::String>());
|
|
1160
|
-
#else
|
|
1161
|
-
v8::Local<v8::String> string = from->ToString();
|
|
1162
|
-
#endif
|
|
1163
|
-
if (!string.IsEmpty()) {
|
|
1164
|
-
size_t len = 3 * string->Length() + 1;
|
|
1165
|
-
assert(len <= INT_MAX);
|
|
1166
|
-
if (len > sizeof (str_st_)) {
|
|
1167
|
-
str_ = static_cast<char*>(malloc(len));
|
|
1168
|
-
assert(str_ != 0);
|
|
1169
|
-
}
|
|
1170
|
-
const int flags =
|
|
1171
|
-
v8::String::NO_NULL_TERMINATION | imp::kReplaceInvalidUtf8;
|
|
1172
|
-
#if NODE_MAJOR_VERSION >= 11
|
|
1173
|
-
length_ = string->WriteUtf8(v8::Isolate::GetCurrent(), str_,
|
|
1174
|
-
static_cast<int>(len), 0, flags);
|
|
1175
|
-
#else
|
|
1176
|
-
// See https://github.com/nodejs/nan/issues/832.
|
|
1177
|
-
// Disable the warning as there is no way around it.
|
|
1178
|
-
#ifdef _MSC_VER
|
|
1179
|
-
#pragma warning(push)
|
|
1180
|
-
#pragma warning(disable : 4996)
|
|
1181
|
-
#endif
|
|
1182
|
-
#ifdef __GNUC__
|
|
1183
|
-
#pragma GCC diagnostic push
|
|
1184
|
-
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
1185
|
-
#endif
|
|
1186
|
-
length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
|
|
1187
|
-
#ifdef __GNUC__
|
|
1188
|
-
#pragma GCC diagnostic pop
|
|
1189
|
-
#endif
|
|
1190
|
-
#ifdef _MSC_VER
|
|
1191
|
-
#pragma warning(pop)
|
|
1192
|
-
#endif
|
|
1193
|
-
#endif // NODE_MAJOR_VERSION < 11
|
|
1194
|
-
str_[length_] = '\0';
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
inline int length() const {
|
|
1200
|
-
return length_;
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
inline char* operator*() { return str_; }
|
|
1204
|
-
inline const char* operator*() const { return str_; }
|
|
1205
|
-
|
|
1206
|
-
inline ~Utf8String() {
|
|
1207
|
-
if (str_ != str_st_) {
|
|
1208
|
-
free(str_);
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
private:
|
|
1213
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(Utf8String)
|
|
1214
|
-
|
|
1215
|
-
int length_;
|
|
1216
|
-
char *str_;
|
|
1217
|
-
char str_st_[1024];
|
|
1218
|
-
};
|
|
1219
|
-
|
|
1220
|
-
#else // Node 0.8 and 0.10
|
|
1221
|
-
inline v8::Local<v8::Primitive> Undefined() {
|
|
1222
|
-
EscapableHandleScope scope;
|
|
1223
|
-
return scope.Escape(New(v8::Undefined()));
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
inline v8::Local<v8::Primitive> Null() {
|
|
1227
|
-
EscapableHandleScope scope;
|
|
1228
|
-
return scope.Escape(New(v8::Null()));
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
inline v8::Local<v8::Boolean> True() {
|
|
1232
|
-
EscapableHandleScope scope;
|
|
1233
|
-
return scope.Escape(New(v8::True()));
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
inline v8::Local<v8::Boolean> False() {
|
|
1237
|
-
EscapableHandleScope scope;
|
|
1238
|
-
return scope.Escape(New(v8::False()));
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
inline v8::Local<v8::String> EmptyString() {
|
|
1242
|
-
return v8::String::Empty();
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
inline int AdjustExternalMemory(int bc) {
|
|
1246
|
-
return static_cast<int>(v8::V8::AdjustAmountOfExternalAllocatedMemory(bc));
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
inline void SetTemplate(
|
|
1250
|
-
v8::Local<v8::Template> templ
|
|
1251
|
-
, const char *name
|
|
1252
|
-
, v8::Local<v8::Data> value) {
|
|
1253
|
-
templ->Set(name, value);
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
inline void SetTemplate(
|
|
1257
|
-
v8::Local<v8::Template> templ
|
|
1258
|
-
, v8::Local<v8::String> name
|
|
1259
|
-
, v8::Local<v8::Data> value
|
|
1260
|
-
, v8::PropertyAttribute attributes) {
|
|
1261
|
-
templ->Set(name, value, attributes);
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
inline v8::Local<v8::Context> GetCurrentContext() {
|
|
1265
|
-
return v8::Context::GetCurrent();
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
inline void* GetInternalFieldPointer(
|
|
1269
|
-
v8::Local<v8::Object> object
|
|
1270
|
-
, int index) {
|
|
1271
|
-
return object->GetPointerFromInternalField(index);
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
inline void SetInternalFieldPointer(
|
|
1275
|
-
v8::Local<v8::Object> object
|
|
1276
|
-
, int index
|
|
1277
|
-
, void* value) {
|
|
1278
|
-
object->SetPointerInInternalField(index, value);
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
# define NAN_GC_CALLBACK(name) \
|
|
1282
|
-
void name(v8::GCType type, v8::GCCallbackFlags flags)
|
|
1283
|
-
|
|
1284
|
-
inline void AddGCEpilogueCallback(
|
|
1285
|
-
v8::GCEpilogueCallback callback
|
|
1286
|
-
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
|
|
1287
|
-
v8::V8::AddGCEpilogueCallback(callback, gc_type_filter);
|
|
1288
|
-
}
|
|
1289
|
-
inline void RemoveGCEpilogueCallback(
|
|
1290
|
-
v8::GCEpilogueCallback callback) {
|
|
1291
|
-
v8::V8::RemoveGCEpilogueCallback(callback);
|
|
1292
|
-
}
|
|
1293
|
-
inline void AddGCPrologueCallback(
|
|
1294
|
-
v8::GCPrologueCallback callback
|
|
1295
|
-
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
|
|
1296
|
-
v8::V8::AddGCPrologueCallback(callback, gc_type_filter);
|
|
1297
|
-
}
|
|
1298
|
-
inline void RemoveGCPrologueCallback(
|
|
1299
|
-
v8::GCPrologueCallback callback) {
|
|
1300
|
-
v8::V8::RemoveGCPrologueCallback(callback);
|
|
1301
|
-
}
|
|
1302
|
-
inline void GetHeapStatistics(
|
|
1303
|
-
v8::HeapStatistics *heap_statistics) {
|
|
1304
|
-
v8::V8::GetHeapStatistics(heap_statistics);
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
# define X(NAME) \
|
|
1308
|
-
inline v8::Local<v8::Value> NAME(const char *msg) { \
|
|
1309
|
-
EscapableHandleScope scope; \
|
|
1310
|
-
return scope.Escape(v8::Exception::NAME(New(msg).ToLocalChecked())); \
|
|
1311
|
-
} \
|
|
1312
|
-
\
|
|
1313
|
-
inline \
|
|
1314
|
-
v8::Local<v8::Value> NAME(v8::Local<v8::String> msg) { \
|
|
1315
|
-
return v8::Exception::NAME(msg); \
|
|
1316
|
-
} \
|
|
1317
|
-
\
|
|
1318
|
-
inline void Throw ## NAME(const char *msg) { \
|
|
1319
|
-
HandleScope scope; \
|
|
1320
|
-
v8::ThrowException(v8::Exception::NAME(New(msg).ToLocalChecked())); \
|
|
1321
|
-
} \
|
|
1322
|
-
\
|
|
1323
|
-
inline \
|
|
1324
|
-
void Throw ## NAME(v8::Local<v8::String> errmsg) { \
|
|
1325
|
-
HandleScope scope; \
|
|
1326
|
-
v8::ThrowException(v8::Exception::NAME(errmsg)); \
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
X(Error)
|
|
1330
|
-
X(RangeError)
|
|
1331
|
-
X(ReferenceError)
|
|
1332
|
-
X(SyntaxError)
|
|
1333
|
-
X(TypeError)
|
|
1334
|
-
|
|
1335
|
-
# undef X
|
|
1336
|
-
|
|
1337
|
-
inline void ThrowError(v8::Local<v8::Value> error) {
|
|
1338
|
-
v8::ThrowException(error);
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
inline MaybeLocal<v8::Object> NewBuffer(
|
|
1342
|
-
char *data
|
|
1343
|
-
, size_t length
|
|
1344
|
-
, node::Buffer::free_callback callback
|
|
1345
|
-
, void *hint
|
|
1346
|
-
) {
|
|
1347
|
-
EscapableHandleScope scope;
|
|
1348
|
-
// arbitrary buffer lengths requires
|
|
1349
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
|
1350
|
-
assert(length <= imp::kMaxLength && "too large buffer");
|
|
1351
|
-
return scope.Escape(
|
|
1352
|
-
New(node::Buffer::New(data, length, callback, hint)->handle_));
|
|
1353
|
-
}
|
|
1354
|
-
|
|
1355
|
-
inline MaybeLocal<v8::Object> CopyBuffer(
|
|
1356
|
-
const char *data
|
|
1357
|
-
, uint32_t size
|
|
1358
|
-
) {
|
|
1359
|
-
EscapableHandleScope scope;
|
|
1360
|
-
// arbitrary buffer lengths requires
|
|
1361
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
|
1362
|
-
assert(size <= imp::kMaxLength && "too large buffer");
|
|
1363
|
-
#if NODE_MODULE_VERSION >= NODE_0_10_MODULE_VERSION
|
|
1364
|
-
return scope.Escape(New(node::Buffer::New(data, size)->handle_));
|
|
1365
|
-
#else
|
|
1366
|
-
return scope.Escape(
|
|
1367
|
-
New(node::Buffer::New(const_cast<char *>(data), size)->handle_));
|
|
1368
|
-
#endif
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
inline MaybeLocal<v8::Object> NewBuffer(uint32_t size) {
|
|
1372
|
-
// arbitrary buffer lengths requires
|
|
1373
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
|
1374
|
-
EscapableHandleScope scope;
|
|
1375
|
-
assert(size <= imp::kMaxLength && "too large buffer");
|
|
1376
|
-
return scope.Escape(New(node::Buffer::New(size)->handle_));
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
inline void FreeData(char *data, void *hint) {
|
|
1380
|
-
(void) hint; // unused
|
|
1381
|
-
delete[] data;
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
inline MaybeLocal<v8::Object> NewBuffer(
|
|
1385
|
-
char* data
|
|
1386
|
-
, uint32_t size
|
|
1387
|
-
) {
|
|
1388
|
-
EscapableHandleScope scope;
|
|
1389
|
-
// arbitrary buffer lengths requires
|
|
1390
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
|
1391
|
-
assert(size <= imp::kMaxLength && "too large buffer");
|
|
1392
|
-
return scope.Escape(
|
|
1393
|
-
New(node::Buffer::New(data, size, FreeData, NULL)->handle_));
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
namespace imp {
|
|
1397
|
-
inline void
|
|
1398
|
-
widenString(std::vector<uint16_t> *ws, const uint8_t *s, int l) {
|
|
1399
|
-
size_t len = static_cast<size_t>(l);
|
|
1400
|
-
if (l < 0) {
|
|
1401
|
-
len = strlen(reinterpret_cast<const char*>(s));
|
|
1402
|
-
}
|
|
1403
|
-
assert(len <= INT_MAX && "string too long");
|
|
1404
|
-
ws->resize(len);
|
|
1405
|
-
std::copy(s, s + len, ws->begin()); // NOLINT(build/include_what_you_use)
|
|
1406
|
-
}
|
|
1407
|
-
} // end of namespace imp
|
|
1408
|
-
|
|
1409
|
-
inline MaybeLocal<v8::String>
|
|
1410
|
-
NewOneByteString(const uint8_t * value, int length = -1) {
|
|
1411
|
-
std::vector<uint16_t> wideString; // NOLINT(build/include_what_you_use)
|
|
1412
|
-
imp::widenString(&wideString, value, length);
|
|
1413
|
-
return v8::String::New(wideString.data(),
|
|
1414
|
-
static_cast<int>(wideString.size()));
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
inline MaybeLocal<BoundScript> CompileScript(
|
|
1418
|
-
v8::Local<v8::String> s
|
|
1419
|
-
, const v8::ScriptOrigin& origin
|
|
1420
|
-
) {
|
|
1421
|
-
return v8::Script::Compile(s, const_cast<v8::ScriptOrigin *>(&origin));
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
inline MaybeLocal<BoundScript> CompileScript(
|
|
1425
|
-
v8::Local<v8::String> s
|
|
1426
|
-
) {
|
|
1427
|
-
return v8::Script::Compile(s);
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
inline
|
|
1431
|
-
MaybeLocal<v8::Value> RunScript(v8::Local<v8::Script> script) {
|
|
1432
|
-
return script->Run();
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
inline v8::Local<v8::Value> MakeCallback(
|
|
1436
|
-
v8::Local<v8::Object> target
|
|
1437
|
-
, v8::Local<v8::Function> func
|
|
1438
|
-
, int argc
|
|
1439
|
-
, v8::Local<v8::Value>* argv) {
|
|
1440
|
-
v8::HandleScope scope;
|
|
1441
|
-
return scope.Close(New(node::MakeCallback(target, func, argc, argv)));
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
inline v8::Local<v8::Value> MakeCallback(
|
|
1445
|
-
v8::Local<v8::Object> target
|
|
1446
|
-
, v8::Local<v8::String> symbol
|
|
1447
|
-
, int argc
|
|
1448
|
-
, v8::Local<v8::Value>* argv) {
|
|
1449
|
-
v8::HandleScope scope;
|
|
1450
|
-
return scope.Close(New(node::MakeCallback(target, symbol, argc, argv)));
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
inline v8::Local<v8::Value> MakeCallback(
|
|
1454
|
-
v8::Local<v8::Object> target
|
|
1455
|
-
, const char* method
|
|
1456
|
-
, int argc
|
|
1457
|
-
, v8::Local<v8::Value>* argv) {
|
|
1458
|
-
v8::HandleScope scope;
|
|
1459
|
-
return scope.Close(New(node::MakeCallback(target, method, argc, argv)));
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
inline void FatalException(const TryCatch& try_catch) {
|
|
1463
|
-
node::FatalException(const_cast<v8::TryCatch &>(try_catch.try_catch_));
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
inline v8::Local<v8::Value> ErrnoException(
|
|
1467
|
-
int errorno
|
|
1468
|
-
, const char* syscall = NULL
|
|
1469
|
-
, const char* message = NULL
|
|
1470
|
-
, const char* path = NULL) {
|
|
1471
|
-
return node::ErrnoException(errorno, syscall, message, path);
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> NanErrnoException(
|
|
1475
|
-
int errorno
|
|
1476
|
-
, const char* syscall = NULL
|
|
1477
|
-
, const char* message = NULL
|
|
1478
|
-
, const char* path = NULL) {
|
|
1479
|
-
return ErrnoException(errorno, syscall, message, path);
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
template<typename T>
|
|
1484
|
-
inline void SetIsolateData(
|
|
1485
|
-
v8::Isolate *isolate
|
|
1486
|
-
, T *data
|
|
1487
|
-
) {
|
|
1488
|
-
isolate->SetData(data);
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
template<typename T>
|
|
1492
|
-
inline T *GetIsolateData(
|
|
1493
|
-
v8::Isolate *isolate
|
|
1494
|
-
) {
|
|
1495
|
-
return static_cast<T*>(isolate->GetData());
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
class Utf8String {
|
|
1499
|
-
public:
|
|
1500
|
-
inline explicit Utf8String(v8::Local<v8::Value> from) :
|
|
1501
|
-
length_(0), str_(str_st_) {
|
|
1502
|
-
v8::HandleScope scope;
|
|
1503
|
-
if (!from.IsEmpty()) {
|
|
1504
|
-
v8::Local<v8::String> string = from->ToString();
|
|
1505
|
-
if (!string.IsEmpty()) {
|
|
1506
|
-
size_t len = 3 * string->Length() + 1;
|
|
1507
|
-
assert(len <= INT_MAX);
|
|
1508
|
-
if (len > sizeof (str_st_)) {
|
|
1509
|
-
str_ = static_cast<char*>(malloc(len));
|
|
1510
|
-
assert(str_ != 0);
|
|
1511
|
-
}
|
|
1512
|
-
const int flags =
|
|
1513
|
-
v8::String::NO_NULL_TERMINATION | imp::kReplaceInvalidUtf8;
|
|
1514
|
-
length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
|
|
1515
|
-
str_[length_] = '\0';
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
inline int length() const {
|
|
1521
|
-
return length_;
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
inline char* operator*() { return str_; }
|
|
1525
|
-
inline const char* operator*() const { return str_; }
|
|
1526
|
-
|
|
1527
|
-
inline ~Utf8String() {
|
|
1528
|
-
if (str_ != str_st_) {
|
|
1529
|
-
free(str_);
|
|
1530
|
-
}
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
private:
|
|
1534
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(Utf8String)
|
|
1535
|
-
|
|
1536
|
-
int length_;
|
|
1537
|
-
char *str_;
|
|
1538
|
-
char str_st_[1024];
|
|
1539
|
-
};
|
|
1540
|
-
|
|
1541
|
-
#endif // NODE_MODULE_VERSION
|
|
1542
|
-
|
|
1543
|
-
typedef void (*FreeCallback)(char *data, void *hint);
|
|
1544
|
-
|
|
1545
|
-
typedef const FunctionCallbackInfo<v8::Value>& NAN_METHOD_ARGS_TYPE;
|
|
1546
|
-
typedef void NAN_METHOD_RETURN_TYPE;
|
|
1547
|
-
|
|
1548
|
-
typedef const PropertyCallbackInfo<v8::Value>& NAN_GETTER_ARGS_TYPE;
|
|
1549
|
-
typedef void NAN_GETTER_RETURN_TYPE;
|
|
1550
|
-
|
|
1551
|
-
typedef const PropertyCallbackInfo<void>& NAN_SETTER_ARGS_TYPE;
|
|
1552
|
-
typedef void NAN_SETTER_RETURN_TYPE;
|
|
1553
|
-
|
|
1554
|
-
typedef const PropertyCallbackInfo<v8::Value>&
|
|
1555
|
-
NAN_PROPERTY_GETTER_ARGS_TYPE;
|
|
1556
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
|
|
1557
|
-
(V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
|
|
1558
|
-
typedef v8::Intercepted NAN_PROPERTY_GETTER_RETURN_TYPE;
|
|
1559
|
-
#else
|
|
1560
|
-
typedef void NAN_PROPERTY_GETTER_RETURN_TYPE;
|
|
1561
|
-
#endif
|
|
1562
|
-
|
|
1563
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
|
|
1564
|
-
(V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
|
|
1565
|
-
typedef const PropertyCallbackInfo<void>&
|
|
1566
|
-
NAN_PROPERTY_SETTER_ARGS_TYPE;
|
|
1567
|
-
typedef v8::Intercepted NAN_PROPERTY_SETTER_RETURN_TYPE;
|
|
1568
|
-
#else
|
|
1569
|
-
typedef const PropertyCallbackInfo<v8::Value>&
|
|
1570
|
-
NAN_PROPERTY_SETTER_ARGS_TYPE;
|
|
1571
|
-
typedef void NAN_PROPERTY_SETTER_RETURN_TYPE;
|
|
1572
|
-
#endif
|
|
1573
|
-
|
|
1574
|
-
typedef const PropertyCallbackInfo<v8::Array>&
|
|
1575
|
-
NAN_PROPERTY_ENUMERATOR_ARGS_TYPE;
|
|
1576
|
-
typedef void NAN_PROPERTY_ENUMERATOR_RETURN_TYPE;
|
|
1577
|
-
|
|
1578
|
-
typedef const PropertyCallbackInfo<v8::Boolean>&
|
|
1579
|
-
NAN_PROPERTY_DELETER_ARGS_TYPE;
|
|
1580
|
-
|
|
1581
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
|
|
1582
|
-
(V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
|
|
1583
|
-
typedef v8::Intercepted NAN_PROPERTY_DELETER_RETURN_TYPE;
|
|
1584
|
-
#else
|
|
1585
|
-
typedef void NAN_PROPERTY_DELETER_RETURN_TYPE;
|
|
1586
|
-
#endif
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
typedef const PropertyCallbackInfo<v8::Integer>&
|
|
1590
|
-
NAN_PROPERTY_QUERY_ARGS_TYPE;
|
|
1591
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
|
|
1592
|
-
(V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
|
|
1593
|
-
typedef v8::Intercepted NAN_PROPERTY_QUERY_RETURN_TYPE;
|
|
1594
|
-
#else
|
|
1595
|
-
typedef void NAN_PROPERTY_QUERY_RETURN_TYPE;
|
|
1596
|
-
#endif
|
|
1597
|
-
|
|
1598
|
-
typedef const PropertyCallbackInfo<v8::Value>& NAN_INDEX_GETTER_ARGS_TYPE;
|
|
1599
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
|
|
1600
|
-
(V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
|
|
1601
|
-
typedef v8::Intercepted NAN_INDEX_GETTER_RETURN_TYPE;
|
|
1602
|
-
#else
|
|
1603
|
-
typedef void NAN_INDEX_GETTER_RETURN_TYPE;
|
|
1604
|
-
#endif
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
|
|
1608
|
-
(V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
|
|
1609
|
-
typedef const PropertyCallbackInfo<void>& NAN_INDEX_SETTER_ARGS_TYPE;
|
|
1610
|
-
typedef v8::Intercepted NAN_INDEX_SETTER_RETURN_TYPE;
|
|
1611
|
-
#else
|
|
1612
|
-
typedef const PropertyCallbackInfo<v8::Value>& NAN_INDEX_SETTER_ARGS_TYPE;
|
|
1613
|
-
typedef void NAN_INDEX_SETTER_RETURN_TYPE;
|
|
1614
|
-
#endif
|
|
1615
|
-
|
|
1616
|
-
typedef const PropertyCallbackInfo<v8::Array>&
|
|
1617
|
-
NAN_INDEX_ENUMERATOR_ARGS_TYPE;
|
|
1618
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
|
|
1619
|
-
(V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
|
|
1620
|
-
typedef v8::Intercepted NAN_INDEX_ENUMERATOR_RETURN_TYPE;
|
|
1621
|
-
#else
|
|
1622
|
-
typedef void NAN_INDEX_ENUMERATOR_RETURN_TYPE;
|
|
1623
|
-
#endif
|
|
1624
|
-
|
|
1625
|
-
typedef const PropertyCallbackInfo<v8::Boolean>&
|
|
1626
|
-
NAN_INDEX_DELETER_ARGS_TYPE;
|
|
1627
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
|
|
1628
|
-
(V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
|
|
1629
|
-
typedef v8::Intercepted NAN_INDEX_DELETER_RETURN_TYPE;
|
|
1630
|
-
#else
|
|
1631
|
-
typedef void NAN_INDEX_DELETER_RETURN_TYPE;
|
|
1632
|
-
#endif
|
|
1633
|
-
|
|
1634
|
-
typedef const PropertyCallbackInfo<v8::Integer>&
|
|
1635
|
-
NAN_INDEX_QUERY_ARGS_TYPE;
|
|
1636
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
|
|
1637
|
-
(V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
|
|
1638
|
-
typedef v8::Intercepted NAN_INDEX_QUERY_RETURN_TYPE;
|
|
1639
|
-
#else
|
|
1640
|
-
typedef void NAN_INDEX_QUERY_RETURN_TYPE;
|
|
1641
|
-
#endif
|
|
1642
|
-
|
|
1643
|
-
#define NAN_METHOD(name) \
|
|
1644
|
-
Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
|
|
1645
|
-
#define NAN_GETTER(name) \
|
|
1646
|
-
Nan::NAN_GETTER_RETURN_TYPE name( \
|
|
1647
|
-
v8::Local<v8::String> property \
|
|
1648
|
-
, Nan::NAN_GETTER_ARGS_TYPE info)
|
|
1649
|
-
#define NAN_SETTER(name) \
|
|
1650
|
-
Nan::NAN_SETTER_RETURN_TYPE name( \
|
|
1651
|
-
v8::Local<v8::String> property \
|
|
1652
|
-
, v8::Local<v8::Value> value \
|
|
1653
|
-
, Nan::NAN_SETTER_ARGS_TYPE info)
|
|
1654
|
-
#define NAN_PROPERTY_GETTER(name) \
|
|
1655
|
-
Nan::NAN_PROPERTY_GETTER_RETURN_TYPE name( \
|
|
1656
|
-
v8::Local<v8::String> property \
|
|
1657
|
-
, Nan::NAN_PROPERTY_GETTER_ARGS_TYPE info)
|
|
1658
|
-
#define NAN_PROPERTY_SETTER(name) \
|
|
1659
|
-
Nan::NAN_PROPERTY_SETTER_RETURN_TYPE name( \
|
|
1660
|
-
v8::Local<v8::String> property \
|
|
1661
|
-
, v8::Local<v8::Value> value \
|
|
1662
|
-
, Nan::NAN_PROPERTY_SETTER_ARGS_TYPE info)
|
|
1663
|
-
#define NAN_PROPERTY_ENUMERATOR(name) \
|
|
1664
|
-
Nan::NAN_PROPERTY_ENUMERATOR_RETURN_TYPE name( \
|
|
1665
|
-
Nan::NAN_PROPERTY_ENUMERATOR_ARGS_TYPE info)
|
|
1666
|
-
#define NAN_PROPERTY_DELETER(name) \
|
|
1667
|
-
Nan::NAN_PROPERTY_DELETER_RETURN_TYPE name( \
|
|
1668
|
-
v8::Local<v8::String> property \
|
|
1669
|
-
, Nan::NAN_PROPERTY_DELETER_ARGS_TYPE info)
|
|
1670
|
-
#define NAN_PROPERTY_QUERY(name) \
|
|
1671
|
-
Nan::NAN_PROPERTY_QUERY_RETURN_TYPE name( \
|
|
1672
|
-
v8::Local<v8::String> property \
|
|
1673
|
-
, Nan::NAN_PROPERTY_QUERY_ARGS_TYPE info)
|
|
1674
|
-
# define NAN_INDEX_GETTER(name) \
|
|
1675
|
-
Nan::NAN_INDEX_GETTER_RETURN_TYPE name( \
|
|
1676
|
-
uint32_t index \
|
|
1677
|
-
, Nan::NAN_INDEX_GETTER_ARGS_TYPE info)
|
|
1678
|
-
#define NAN_INDEX_SETTER(name) \
|
|
1679
|
-
Nan::NAN_INDEX_SETTER_RETURN_TYPE name( \
|
|
1680
|
-
uint32_t index \
|
|
1681
|
-
, v8::Local<v8::Value> value \
|
|
1682
|
-
, Nan::NAN_INDEX_SETTER_ARGS_TYPE info)
|
|
1683
|
-
#define NAN_INDEX_ENUMERATOR(name) \
|
|
1684
|
-
Nan::NAN_INDEX_ENUMERATOR_RETURN_TYPE \
|
|
1685
|
-
name(Nan::NAN_INDEX_ENUMERATOR_ARGS_TYPE info)
|
|
1686
|
-
#define NAN_INDEX_DELETER(name) \
|
|
1687
|
-
Nan::NAN_INDEX_DELETER_RETURN_TYPE name( \
|
|
1688
|
-
uint32_t index \
|
|
1689
|
-
, Nan::NAN_INDEX_DELETER_ARGS_TYPE info)
|
|
1690
|
-
#define NAN_INDEX_QUERY(name) \
|
|
1691
|
-
Nan::NAN_INDEX_QUERY_RETURN_TYPE name( \
|
|
1692
|
-
uint32_t index \
|
|
1693
|
-
, Nan::NAN_INDEX_QUERY_ARGS_TYPE info)
|
|
1694
|
-
|
|
1695
|
-
class Callback {
|
|
1696
|
-
public:
|
|
1697
|
-
Callback() {}
|
|
1698
|
-
|
|
1699
|
-
explicit Callback(const v8::Local<v8::Function> &fn) : handle_(fn) {}
|
|
1700
|
-
|
|
1701
|
-
~Callback() {
|
|
1702
|
-
handle_.Reset();
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1705
|
-
bool operator==(const Callback &other) const {
|
|
1706
|
-
return handle_ == other.handle_;
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
bool operator!=(const Callback &other) const {
|
|
1710
|
-
return !operator==(other);
|
|
1711
|
-
}
|
|
1712
|
-
|
|
1713
|
-
inline
|
|
1714
|
-
v8::Local<v8::Function> operator*() const { return GetFunction(); }
|
|
1715
|
-
|
|
1716
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> operator()(
|
|
1717
|
-
v8::Local<v8::Object> target
|
|
1718
|
-
, int argc = 0
|
|
1719
|
-
, v8::Local<v8::Value> argv[] = 0) const {
|
|
1720
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
|
1721
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
1722
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1723
|
-
AsyncResource async("nan:Callback:operator()");
|
|
1724
|
-
return Call_(isolate, target, argc, argv, &async)
|
|
1725
|
-
.FromMaybe(v8::Local<v8::Value>());
|
|
1726
|
-
# else
|
|
1727
|
-
return Call_(isolate, target, argc, argv);
|
|
1728
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1729
|
-
#else
|
|
1730
|
-
return Call_(target, argc, argv);
|
|
1731
|
-
#endif // NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> operator()(
|
|
1735
|
-
int argc = 0
|
|
1736
|
-
, v8::Local<v8::Value> argv[] = 0) const {
|
|
1737
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
|
1738
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
1739
|
-
v8::EscapableHandleScope scope(isolate);
|
|
1740
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1741
|
-
AsyncResource async("nan:Callback:operator()");
|
|
1742
|
-
return scope.Escape(Call_(isolate, isolate->GetCurrentContext()->Global(),
|
|
1743
|
-
argc, argv, &async)
|
|
1744
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
|
1745
|
-
# else
|
|
1746
|
-
return scope.Escape(
|
|
1747
|
-
Call_(isolate, isolate->GetCurrentContext()->Global(), argc, argv));
|
|
1748
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1749
|
-
#else
|
|
1750
|
-
v8::HandleScope scope;
|
|
1751
|
-
return scope.Close(Call_(v8::Context::GetCurrent()->Global(), argc, argv));
|
|
1752
|
-
#endif // NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
|
-
inline MaybeLocal<v8::Value> operator()(
|
|
1756
|
-
AsyncResource* resource
|
|
1757
|
-
, int argc = 0
|
|
1758
|
-
, v8::Local<v8::Value> argv[] = 0) const {
|
|
1759
|
-
return this->Call(argc, argv, resource);
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1762
|
-
inline MaybeLocal<v8::Value> operator()(
|
|
1763
|
-
AsyncResource* resource
|
|
1764
|
-
, v8::Local<v8::Object> target
|
|
1765
|
-
, int argc = 0
|
|
1766
|
-
, v8::Local<v8::Value> argv[] = 0) const {
|
|
1767
|
-
return this->Call(target, argc, argv, resource);
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
// TODO(kkoopa): remove
|
|
1771
|
-
inline void SetFunction(const v8::Local<v8::Function> &fn) {
|
|
1772
|
-
Reset(fn);
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
inline void Reset(const v8::Local<v8::Function> &fn) {
|
|
1776
|
-
handle_.Reset(fn);
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
inline void Reset() {
|
|
1780
|
-
handle_.Reset();
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1783
|
-
inline v8::Local<v8::Function> GetFunction() const {
|
|
1784
|
-
return New(handle_);
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
inline bool IsEmpty() const {
|
|
1788
|
-
return handle_.IsEmpty();
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
// Deprecated: For async callbacks Use the versions that accept an
|
|
1792
|
-
// AsyncResource. If this callback does not correspond to an async resource,
|
|
1793
|
-
// that is, it is a synchronous function call on a non-empty JS stack, you
|
|
1794
|
-
// should Nan::Call instead.
|
|
1795
|
-
NAN_DEPRECATED inline v8::Local<v8::Value>
|
|
1796
|
-
Call(v8::Local<v8::Object> target
|
|
1797
|
-
, int argc
|
|
1798
|
-
, v8::Local<v8::Value> argv[]) const {
|
|
1799
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
|
1800
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
1801
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1802
|
-
AsyncResource async("nan:Callback:Call");
|
|
1803
|
-
return Call_(isolate, target, argc, argv, &async)
|
|
1804
|
-
.FromMaybe(v8::Local<v8::Value>());
|
|
1805
|
-
# else
|
|
1806
|
-
return Call_(isolate, target, argc, argv);
|
|
1807
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1808
|
-
#else
|
|
1809
|
-
return Call_(target, argc, argv);
|
|
1810
|
-
#endif
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
// Deprecated: For async callbacks Use the versions that accept an
|
|
1814
|
-
// AsyncResource. If this callback does not correspond to an async resource,
|
|
1815
|
-
// that is, it is a synchronous function call on a non-empty JS stack, you
|
|
1816
|
-
// should Nan::Call instead.
|
|
1817
|
-
NAN_DEPRECATED inline v8::Local<v8::Value>
|
|
1818
|
-
Call(int argc, v8::Local<v8::Value> argv[]) const {
|
|
1819
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
|
1820
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
1821
|
-
v8::EscapableHandleScope scope(isolate);
|
|
1822
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1823
|
-
AsyncResource async("nan:Callback:Call");
|
|
1824
|
-
return scope.Escape(Call_(isolate, isolate->GetCurrentContext()->Global(),
|
|
1825
|
-
argc, argv, &async)
|
|
1826
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
|
1827
|
-
# else
|
|
1828
|
-
return scope.Escape(
|
|
1829
|
-
Call_(isolate, isolate->GetCurrentContext()->Global(), argc, argv));
|
|
1830
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1831
|
-
#else
|
|
1832
|
-
v8::HandleScope scope;
|
|
1833
|
-
return scope.Close(Call_(v8::Context::GetCurrent()->Global(), argc, argv));
|
|
1834
|
-
#endif
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
inline MaybeLocal<v8::Value>
|
|
1838
|
-
Call(v8::Local<v8::Object> target
|
|
1839
|
-
, int argc
|
|
1840
|
-
, v8::Local<v8::Value> argv[]
|
|
1841
|
-
, AsyncResource* resource) const {
|
|
1842
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1843
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
|
1844
|
-
return Call_(isolate, target, argc, argv, resource);
|
|
1845
|
-
#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
|
1846
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
1847
|
-
return Call_(isolate, target, argc, argv);
|
|
1848
|
-
#else
|
|
1849
|
-
return Call_(target, argc, argv);
|
|
1850
|
-
#endif
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
inline MaybeLocal<v8::Value>
|
|
1854
|
-
Call(int argc, v8::Local<v8::Value> argv[], AsyncResource* resource) const {
|
|
1855
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1856
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
|
1857
|
-
return Call(isolate->GetCurrentContext()->Global(), argc, argv, resource);
|
|
1858
|
-
#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
|
1859
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
1860
|
-
v8::EscapableHandleScope scope(isolate);
|
|
1861
|
-
return scope.Escape(
|
|
1862
|
-
Call_(isolate, isolate->GetCurrentContext()->Global(), argc, argv));
|
|
1863
|
-
#else
|
|
1864
|
-
v8::HandleScope scope;
|
|
1865
|
-
return scope.Close(Call_(v8::Context::GetCurrent()->Global(), argc, argv));
|
|
1866
|
-
#endif
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
private:
|
|
1870
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(Callback)
|
|
1871
|
-
Persistent<v8::Function> handle_;
|
|
1872
|
-
|
|
1873
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
1874
|
-
MaybeLocal<v8::Value> Call_(v8::Isolate *isolate
|
|
1875
|
-
, v8::Local<v8::Object> target
|
|
1876
|
-
, int argc
|
|
1877
|
-
, v8::Local<v8::Value> argv[]
|
|
1878
|
-
, AsyncResource* resource) const {
|
|
1879
|
-
EscapableHandleScope scope;
|
|
1880
|
-
v8::Local<v8::Function> func = New(handle_);
|
|
1881
|
-
auto maybe = resource->runInAsyncScope(target, func, argc, argv);
|
|
1882
|
-
v8::Local<v8::Value> local;
|
|
1883
|
-
if (!maybe.ToLocal(&local)) return MaybeLocal<v8::Value>();
|
|
1884
|
-
return scope.Escape(local);
|
|
1885
|
-
}
|
|
1886
|
-
#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
|
1887
|
-
v8::Local<v8::Value> Call_(v8::Isolate *isolate
|
|
1888
|
-
, v8::Local<v8::Object> target
|
|
1889
|
-
, int argc
|
|
1890
|
-
, v8::Local<v8::Value> argv[]) const {
|
|
1891
|
-
EscapableHandleScope scope;
|
|
1892
|
-
|
|
1893
|
-
v8::Local<v8::Function> callback = New(handle_);
|
|
1894
|
-
# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
|
1895
|
-
return scope.Escape(New(node::MakeCallback(
|
|
1896
|
-
isolate
|
|
1897
|
-
, target
|
|
1898
|
-
, callback
|
|
1899
|
-
, argc
|
|
1900
|
-
, argv
|
|
1901
|
-
)));
|
|
1902
|
-
# else
|
|
1903
|
-
return scope.Escape(node::MakeCallback(
|
|
1904
|
-
isolate
|
|
1905
|
-
, target
|
|
1906
|
-
, callback
|
|
1907
|
-
, argc
|
|
1908
|
-
, argv
|
|
1909
|
-
));
|
|
1910
|
-
# endif
|
|
1911
|
-
}
|
|
1912
|
-
#else
|
|
1913
|
-
v8::Local<v8::Value> Call_(v8::Local<v8::Object> target
|
|
1914
|
-
, int argc
|
|
1915
|
-
, v8::Local<v8::Value> argv[]) const {
|
|
1916
|
-
EscapableHandleScope scope;
|
|
1917
|
-
|
|
1918
|
-
v8::Local<v8::Function> callback = New(handle_);
|
|
1919
|
-
return scope.Escape(New(node::MakeCallback(
|
|
1920
|
-
target
|
|
1921
|
-
, callback
|
|
1922
|
-
, argc
|
|
1923
|
-
, argv
|
|
1924
|
-
)));
|
|
1925
|
-
}
|
|
1926
|
-
#endif
|
|
1927
|
-
};
|
|
1928
|
-
|
|
1929
|
-
inline MaybeLocal<v8::Value> Call(
|
|
1930
|
-
const Nan::Callback& callback
|
|
1931
|
-
, v8::Local<v8::Object> recv
|
|
1932
|
-
, int argc
|
|
1933
|
-
, v8::Local<v8::Value> argv[]) {
|
|
1934
|
-
return Call(*callback, recv, argc, argv);
|
|
1935
|
-
}
|
|
1936
|
-
|
|
1937
|
-
inline MaybeLocal<v8::Value> Call(
|
|
1938
|
-
const Nan::Callback& callback
|
|
1939
|
-
, int argc
|
|
1940
|
-
, v8::Local<v8::Value> argv[]) {
|
|
1941
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
|
1942
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
|
1943
|
-
v8::EscapableHandleScope scope(isolate);
|
|
1944
|
-
return scope.Escape(
|
|
1945
|
-
Call(*callback, isolate->GetCurrentContext()->Global(), argc, argv)
|
|
1946
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
|
1947
|
-
#else
|
|
1948
|
-
EscapableHandleScope scope;
|
|
1949
|
-
return scope.Escape(
|
|
1950
|
-
Call(*callback, v8::Context::GetCurrent()->Global(), argc, argv)
|
|
1951
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
|
1952
|
-
#endif
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
|
-
inline MaybeLocal<v8::Value> Call(
|
|
1956
|
-
v8::Local<v8::String> symbol
|
|
1957
|
-
, v8::Local<v8::Object> recv
|
|
1958
|
-
, int argc
|
|
1959
|
-
, v8::Local<v8::Value> argv[]) {
|
|
1960
|
-
EscapableHandleScope scope;
|
|
1961
|
-
v8::Local<v8::Value> fn_v =
|
|
1962
|
-
Get(recv, symbol).FromMaybe(v8::Local<v8::Value>());
|
|
1963
|
-
if (fn_v.IsEmpty() || !fn_v->IsFunction()) return v8::Local<v8::Value>();
|
|
1964
|
-
v8::Local<v8::Function> fn = fn_v.As<v8::Function>();
|
|
1965
|
-
return scope.Escape(
|
|
1966
|
-
Call(fn, recv, argc, argv).FromMaybe(v8::Local<v8::Value>()));
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1969
|
-
inline MaybeLocal<v8::Value> Call(
|
|
1970
|
-
const char* method
|
|
1971
|
-
, v8::Local<v8::Object> recv
|
|
1972
|
-
, int argc
|
|
1973
|
-
, v8::Local<v8::Value> argv[]) {
|
|
1974
|
-
EscapableHandleScope scope;
|
|
1975
|
-
v8::Local<v8::String> method_string =
|
|
1976
|
-
New<v8::String>(method).ToLocalChecked();
|
|
1977
|
-
return scope.Escape(
|
|
1978
|
-
Call(method_string, recv, argc, argv).FromMaybe(v8::Local<v8::Value>()));
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
|
-
/* abstract */ class AsyncWorker {
|
|
1982
|
-
public:
|
|
1983
|
-
explicit AsyncWorker(Callback *callback_,
|
|
1984
|
-
const char* resource_name = "nan:AsyncWorker")
|
|
1985
|
-
: callback(callback_), errmsg_(NULL) {
|
|
1986
|
-
request.data = this;
|
|
1987
|
-
|
|
1988
|
-
HandleScope scope;
|
|
1989
|
-
v8::Local<v8::Object> obj = New<v8::Object>();
|
|
1990
|
-
persistentHandle.Reset(obj);
|
|
1991
|
-
async_resource = new AsyncResource(resource_name, obj);
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
virtual ~AsyncWorker() {
|
|
1995
|
-
HandleScope scope;
|
|
1996
|
-
|
|
1997
|
-
if (!persistentHandle.IsEmpty())
|
|
1998
|
-
persistentHandle.Reset();
|
|
1999
|
-
delete callback;
|
|
2000
|
-
delete[] errmsg_;
|
|
2001
|
-
delete async_resource;
|
|
2002
|
-
}
|
|
2003
|
-
|
|
2004
|
-
virtual void WorkComplete() {
|
|
2005
|
-
HandleScope scope;
|
|
2006
|
-
|
|
2007
|
-
if (errmsg_ == NULL)
|
|
2008
|
-
HandleOKCallback();
|
|
2009
|
-
else
|
|
2010
|
-
HandleErrorCallback();
|
|
2011
|
-
delete callback;
|
|
2012
|
-
callback = NULL;
|
|
2013
|
-
}
|
|
2014
|
-
|
|
2015
|
-
inline void SaveToPersistent(
|
|
2016
|
-
const char *key, const v8::Local<v8::Value> &value) {
|
|
2017
|
-
HandleScope scope;
|
|
2018
|
-
Set(New(persistentHandle), New(key).ToLocalChecked(), value).FromJust();
|
|
2019
|
-
}
|
|
2020
|
-
|
|
2021
|
-
inline void SaveToPersistent(
|
|
2022
|
-
const v8::Local<v8::String> &key, const v8::Local<v8::Value> &value) {
|
|
2023
|
-
HandleScope scope;
|
|
2024
|
-
Set(New(persistentHandle), key, value).FromJust();
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2027
|
-
inline void SaveToPersistent(
|
|
2028
|
-
uint32_t index, const v8::Local<v8::Value> &value) {
|
|
2029
|
-
HandleScope scope;
|
|
2030
|
-
Set(New(persistentHandle), index, value).FromJust();
|
|
2031
|
-
}
|
|
2032
|
-
|
|
2033
|
-
inline v8::Local<v8::Value> GetFromPersistent(const char *key) const {
|
|
2034
|
-
EscapableHandleScope scope;
|
|
2035
|
-
return scope.Escape(
|
|
2036
|
-
Get(New(persistentHandle), New(key).ToLocalChecked())
|
|
2037
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
|
2038
|
-
}
|
|
2039
|
-
|
|
2040
|
-
inline v8::Local<v8::Value>
|
|
2041
|
-
GetFromPersistent(const v8::Local<v8::String> &key) const {
|
|
2042
|
-
EscapableHandleScope scope;
|
|
2043
|
-
return scope.Escape(
|
|
2044
|
-
Get(New(persistentHandle), key)
|
|
2045
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
|
2046
|
-
}
|
|
2047
|
-
|
|
2048
|
-
inline v8::Local<v8::Value> GetFromPersistent(uint32_t index) const {
|
|
2049
|
-
EscapableHandleScope scope;
|
|
2050
|
-
return scope.Escape(
|
|
2051
|
-
Get(New(persistentHandle), index)
|
|
2052
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
|
-
virtual void Execute() = 0;
|
|
2056
|
-
|
|
2057
|
-
uv_work_t request;
|
|
2058
|
-
|
|
2059
|
-
virtual void Destroy() {
|
|
2060
|
-
delete this;
|
|
2061
|
-
}
|
|
2062
|
-
|
|
2063
|
-
protected:
|
|
2064
|
-
Persistent<v8::Object> persistentHandle;
|
|
2065
|
-
Callback *callback;
|
|
2066
|
-
AsyncResource *async_resource;
|
|
2067
|
-
|
|
2068
|
-
virtual void HandleOKCallback() {
|
|
2069
|
-
HandleScope scope;
|
|
2070
|
-
|
|
2071
|
-
callback->Call(0, NULL, async_resource);
|
|
2072
|
-
}
|
|
2073
|
-
|
|
2074
|
-
virtual void HandleErrorCallback() {
|
|
2075
|
-
HandleScope scope;
|
|
2076
|
-
|
|
2077
|
-
v8::Local<v8::Value> argv[] = {
|
|
2078
|
-
v8::Exception::Error(New<v8::String>(ErrorMessage()).ToLocalChecked())
|
|
2079
|
-
};
|
|
2080
|
-
callback->Call(1, argv, async_resource);
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2083
|
-
void SetErrorMessage(const char *msg) {
|
|
2084
|
-
delete[] errmsg_;
|
|
2085
|
-
|
|
2086
|
-
size_t size = strlen(msg) + 1;
|
|
2087
|
-
errmsg_ = new char[size];
|
|
2088
|
-
memcpy(errmsg_, msg, size);
|
|
2089
|
-
}
|
|
2090
|
-
|
|
2091
|
-
const char* ErrorMessage() const {
|
|
2092
|
-
return errmsg_;
|
|
2093
|
-
}
|
|
2094
|
-
|
|
2095
|
-
private:
|
|
2096
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(AsyncWorker)
|
|
2097
|
-
char *errmsg_;
|
|
2098
|
-
};
|
|
2099
|
-
|
|
2100
|
-
/* abstract */ class AsyncBareProgressWorkerBase : public AsyncWorker {
|
|
2101
|
-
public:
|
|
2102
|
-
explicit AsyncBareProgressWorkerBase(
|
|
2103
|
-
Callback *callback_,
|
|
2104
|
-
const char* resource_name = "nan:AsyncBareProgressWorkerBase")
|
|
2105
|
-
: AsyncWorker(callback_, resource_name) {
|
|
2106
|
-
uv_async_init(
|
|
2107
|
-
GetCurrentEventLoop()
|
|
2108
|
-
, &async
|
|
2109
|
-
, AsyncProgress_
|
|
2110
|
-
);
|
|
2111
|
-
async.data = this;
|
|
2112
|
-
}
|
|
2113
|
-
|
|
2114
|
-
virtual ~AsyncBareProgressWorkerBase() {
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
virtual void WorkProgress() = 0;
|
|
2118
|
-
|
|
2119
|
-
virtual void Destroy() {
|
|
2120
|
-
uv_close(reinterpret_cast<uv_handle_t*>(&async), AsyncClose_);
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
|
-
private:
|
|
2124
|
-
inline static NAUV_WORK_CB(AsyncProgress_) {
|
|
2125
|
-
AsyncBareProgressWorkerBase *worker =
|
|
2126
|
-
static_cast<AsyncBareProgressWorkerBase*>(async->data);
|
|
2127
|
-
worker->WorkProgress();
|
|
2128
|
-
}
|
|
2129
|
-
|
|
2130
|
-
inline static void AsyncClose_(uv_handle_t* handle) {
|
|
2131
|
-
AsyncBareProgressWorkerBase *worker =
|
|
2132
|
-
static_cast<AsyncBareProgressWorkerBase*>(handle->data);
|
|
2133
|
-
delete worker;
|
|
2134
|
-
}
|
|
2135
|
-
|
|
2136
|
-
protected:
|
|
2137
|
-
uv_async_t async;
|
|
2138
|
-
};
|
|
2139
|
-
|
|
2140
|
-
template<class T>
|
|
2141
|
-
/* abstract */
|
|
2142
|
-
class AsyncBareProgressWorker : public AsyncBareProgressWorkerBase {
|
|
2143
|
-
public:
|
|
2144
|
-
explicit AsyncBareProgressWorker(
|
|
2145
|
-
Callback *callback_,
|
|
2146
|
-
const char* resource_name = "nan:AsyncBareProgressWorker")
|
|
2147
|
-
: AsyncBareProgressWorkerBase(callback_, resource_name) {
|
|
2148
|
-
uv_mutex_init(&async_lock);
|
|
2149
|
-
}
|
|
2150
|
-
|
|
2151
|
-
virtual ~AsyncBareProgressWorker() {
|
|
2152
|
-
uv_mutex_destroy(&async_lock);
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
|
-
class ExecutionProgress {
|
|
2156
|
-
friend class AsyncBareProgressWorker;
|
|
2157
|
-
public:
|
|
2158
|
-
void Signal() const {
|
|
2159
|
-
uv_mutex_lock(&that_->async_lock);
|
|
2160
|
-
uv_async_send(&that_->async);
|
|
2161
|
-
uv_mutex_unlock(&that_->async_lock);
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
void Send(const T* data, size_t count) const {
|
|
2165
|
-
that_->SendProgress_(data, count);
|
|
2166
|
-
}
|
|
2167
|
-
|
|
2168
|
-
private:
|
|
2169
|
-
explicit ExecutionProgress(AsyncBareProgressWorker *that) : that_(that) {}
|
|
2170
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(ExecutionProgress)
|
|
2171
|
-
AsyncBareProgressWorker* const that_;
|
|
2172
|
-
};
|
|
2173
|
-
|
|
2174
|
-
virtual void Execute(const ExecutionProgress& progress) = 0;
|
|
2175
|
-
virtual void HandleProgressCallback(const T *data, size_t size) = 0;
|
|
2176
|
-
|
|
2177
|
-
protected:
|
|
2178
|
-
uv_mutex_t async_lock;
|
|
2179
|
-
|
|
2180
|
-
private:
|
|
2181
|
-
void Execute() /*final override*/ {
|
|
2182
|
-
ExecutionProgress progress(this);
|
|
2183
|
-
Execute(progress);
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
virtual void SendProgress_(const T *data, size_t count) = 0;
|
|
2187
|
-
};
|
|
2188
|
-
|
|
2189
|
-
template<class T>
|
|
2190
|
-
/* abstract */
|
|
2191
|
-
class AsyncProgressWorkerBase : public AsyncBareProgressWorker<T> {
|
|
2192
|
-
public:
|
|
2193
|
-
explicit AsyncProgressWorkerBase(
|
|
2194
|
-
Callback *callback_,
|
|
2195
|
-
const char* resource_name = "nan:AsyncProgressWorkerBase")
|
|
2196
|
-
: AsyncBareProgressWorker<T>(callback_, resource_name), asyncdata_(NULL),
|
|
2197
|
-
asyncsize_(0) {
|
|
2198
|
-
}
|
|
2199
|
-
|
|
2200
|
-
virtual ~AsyncProgressWorkerBase() {
|
|
2201
|
-
delete[] asyncdata_;
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
void WorkProgress() {
|
|
2205
|
-
uv_mutex_lock(&this->async_lock);
|
|
2206
|
-
T *data = asyncdata_;
|
|
2207
|
-
size_t size = asyncsize_;
|
|
2208
|
-
asyncdata_ = NULL;
|
|
2209
|
-
asyncsize_ = 0;
|
|
2210
|
-
uv_mutex_unlock(&this->async_lock);
|
|
2211
|
-
|
|
2212
|
-
// Don't send progress events after we've already completed.
|
|
2213
|
-
if (this->callback) {
|
|
2214
|
-
this->HandleProgressCallback(data, size);
|
|
2215
|
-
}
|
|
2216
|
-
delete[] data;
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
|
-
private:
|
|
2220
|
-
void SendProgress_(const T *data, size_t count) {
|
|
2221
|
-
T *new_data = new T[count];
|
|
2222
|
-
std::copy(data, data + count, new_data);
|
|
2223
|
-
|
|
2224
|
-
uv_mutex_lock(&this->async_lock);
|
|
2225
|
-
T *old_data = asyncdata_;
|
|
2226
|
-
asyncdata_ = new_data;
|
|
2227
|
-
asyncsize_ = count;
|
|
2228
|
-
uv_async_send(&this->async);
|
|
2229
|
-
uv_mutex_unlock(&this->async_lock);
|
|
2230
|
-
|
|
2231
|
-
delete[] old_data;
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
T *asyncdata_;
|
|
2235
|
-
size_t asyncsize_;
|
|
2236
|
-
};
|
|
2237
|
-
|
|
2238
|
-
// This ensures compatibility to the previous un-templated AsyncProgressWorker
|
|
2239
|
-
// class definition.
|
|
2240
|
-
typedef AsyncProgressWorkerBase<char> AsyncProgressWorker;
|
|
2241
|
-
|
|
2242
|
-
template<class T>
|
|
2243
|
-
/* abstract */
|
|
2244
|
-
class AsyncBareProgressQueueWorker : public AsyncBareProgressWorkerBase {
|
|
2245
|
-
public:
|
|
2246
|
-
explicit AsyncBareProgressQueueWorker(
|
|
2247
|
-
Callback *callback_,
|
|
2248
|
-
const char* resource_name = "nan:AsyncBareProgressQueueWorker")
|
|
2249
|
-
: AsyncBareProgressWorkerBase(callback_, resource_name) {
|
|
2250
|
-
}
|
|
2251
|
-
|
|
2252
|
-
virtual ~AsyncBareProgressQueueWorker() {
|
|
2253
|
-
}
|
|
2254
|
-
|
|
2255
|
-
class ExecutionProgress {
|
|
2256
|
-
friend class AsyncBareProgressQueueWorker;
|
|
2257
|
-
public:
|
|
2258
|
-
void Send(const T* data, size_t count) const {
|
|
2259
|
-
that_->SendProgress_(data, count);
|
|
2260
|
-
}
|
|
2261
|
-
|
|
2262
|
-
private:
|
|
2263
|
-
explicit ExecutionProgress(AsyncBareProgressQueueWorker *that)
|
|
2264
|
-
: that_(that) {}
|
|
2265
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(ExecutionProgress)
|
|
2266
|
-
AsyncBareProgressQueueWorker* const that_;
|
|
2267
|
-
};
|
|
2268
|
-
|
|
2269
|
-
virtual void Execute(const ExecutionProgress& progress) = 0;
|
|
2270
|
-
virtual void HandleProgressCallback(const T *data, size_t size) = 0;
|
|
2271
|
-
|
|
2272
|
-
private:
|
|
2273
|
-
void Execute() /*final override*/ {
|
|
2274
|
-
ExecutionProgress progress(this);
|
|
2275
|
-
Execute(progress);
|
|
2276
|
-
}
|
|
2277
|
-
|
|
2278
|
-
virtual void SendProgress_(const T *data, size_t count) = 0;
|
|
2279
|
-
};
|
|
2280
|
-
|
|
2281
|
-
template<class T>
|
|
2282
|
-
/* abstract */
|
|
2283
|
-
class AsyncProgressQueueWorker : public AsyncBareProgressQueueWorker<T> {
|
|
2284
|
-
public:
|
|
2285
|
-
explicit AsyncProgressQueueWorker(
|
|
2286
|
-
Callback *callback_,
|
|
2287
|
-
const char* resource_name = "nan:AsyncProgressQueueWorker")
|
|
2288
|
-
: AsyncBareProgressQueueWorker<T>(callback_) {
|
|
2289
|
-
uv_mutex_init(&async_lock);
|
|
2290
|
-
}
|
|
2291
|
-
|
|
2292
|
-
virtual ~AsyncProgressQueueWorker() {
|
|
2293
|
-
uv_mutex_lock(&async_lock);
|
|
2294
|
-
|
|
2295
|
-
while (!asyncdata_.empty()) {
|
|
2296
|
-
std::pair<T*, size_t> &datapair = asyncdata_.front();
|
|
2297
|
-
T *data = datapair.first;
|
|
2298
|
-
|
|
2299
|
-
asyncdata_.pop();
|
|
2300
|
-
|
|
2301
|
-
delete[] data;
|
|
2302
|
-
}
|
|
2303
|
-
|
|
2304
|
-
uv_mutex_unlock(&async_lock);
|
|
2305
|
-
uv_mutex_destroy(&async_lock);
|
|
2306
|
-
}
|
|
2307
|
-
|
|
2308
|
-
void WorkComplete() {
|
|
2309
|
-
WorkProgress();
|
|
2310
|
-
AsyncWorker::WorkComplete();
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2313
|
-
void WorkProgress() {
|
|
2314
|
-
uv_mutex_lock(&async_lock);
|
|
2315
|
-
|
|
2316
|
-
while (!asyncdata_.empty()) {
|
|
2317
|
-
std::pair<T*, size_t> &datapair = asyncdata_.front();
|
|
2318
|
-
|
|
2319
|
-
T *data = datapair.first;
|
|
2320
|
-
size_t size = datapair.second;
|
|
2321
|
-
|
|
2322
|
-
asyncdata_.pop();
|
|
2323
|
-
uv_mutex_unlock(&async_lock);
|
|
2324
|
-
|
|
2325
|
-
// Don't send progress events after we've already completed.
|
|
2326
|
-
if (this->callback) {
|
|
2327
|
-
this->HandleProgressCallback(data, size);
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
|
-
delete[] data;
|
|
2331
|
-
|
|
2332
|
-
uv_mutex_lock(&async_lock);
|
|
2333
|
-
}
|
|
2334
|
-
|
|
2335
|
-
uv_mutex_unlock(&async_lock);
|
|
2336
|
-
}
|
|
2337
|
-
|
|
2338
|
-
private:
|
|
2339
|
-
void SendProgress_(const T *data, size_t count) {
|
|
2340
|
-
T *new_data = new T[count];
|
|
2341
|
-
std::copy(data, data + count, new_data);
|
|
2342
|
-
|
|
2343
|
-
uv_mutex_lock(&async_lock);
|
|
2344
|
-
asyncdata_.push(std::pair<T*, size_t>(new_data, count));
|
|
2345
|
-
uv_mutex_unlock(&async_lock);
|
|
2346
|
-
|
|
2347
|
-
uv_async_send(&this->async);
|
|
2348
|
-
}
|
|
2349
|
-
|
|
2350
|
-
uv_mutex_t async_lock;
|
|
2351
|
-
std::queue<std::pair<T*, size_t> > asyncdata_;
|
|
2352
|
-
};
|
|
2353
|
-
|
|
2354
|
-
inline void AsyncExecute (uv_work_t* req) {
|
|
2355
|
-
AsyncWorker *worker = static_cast<AsyncWorker*>(req->data);
|
|
2356
|
-
worker->Execute();
|
|
2357
|
-
}
|
|
2358
|
-
|
|
2359
|
-
/* uv_after_work_cb has 1 argument before node-v0.9.4 and
|
|
2360
|
-
* 2 arguments since node-v0.9.4
|
|
2361
|
-
* https://github.com/libuv/libuv/commit/92fb84b751e18f032c02609467f44bfe927b80c5
|
|
2362
|
-
*/
|
|
2363
|
-
inline void AsyncExecuteComplete(uv_work_t *req) {
|
|
2364
|
-
AsyncWorker* worker = static_cast<AsyncWorker*>(req->data);
|
|
2365
|
-
worker->WorkComplete();
|
|
2366
|
-
worker->Destroy();
|
|
2367
|
-
}
|
|
2368
|
-
inline void AsyncExecuteComplete (uv_work_t* req, int status) {
|
|
2369
|
-
AsyncExecuteComplete(req);
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
inline void AsyncQueueWorker (AsyncWorker* worker) {
|
|
2373
|
-
uv_queue_work(
|
|
2374
|
-
GetCurrentEventLoop()
|
|
2375
|
-
, &worker->request
|
|
2376
|
-
, AsyncExecute
|
|
2377
|
-
, AsyncExecuteComplete
|
|
2378
|
-
);
|
|
2379
|
-
}
|
|
2380
|
-
|
|
2381
|
-
namespace imp {
|
|
2382
|
-
|
|
2383
|
-
inline
|
|
2384
|
-
ExternalOneByteStringResource const*
|
|
2385
|
-
GetExternalResource(v8::Local<v8::String> str) {
|
|
2386
|
-
#if NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION
|
|
2387
|
-
return str->GetExternalAsciiStringResource();
|
|
2388
|
-
#else
|
|
2389
|
-
return str->GetExternalOneByteStringResource();
|
|
2390
|
-
#endif
|
|
2391
|
-
}
|
|
2392
|
-
|
|
2393
|
-
inline
|
|
2394
|
-
bool
|
|
2395
|
-
IsExternal(v8::Local<v8::String> str) {
|
|
2396
|
-
#if NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION
|
|
2397
|
-
return str->IsExternalAscii();
|
|
2398
|
-
#else
|
|
2399
|
-
return str->IsExternalOneByte();
|
|
2400
|
-
#endif
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2403
|
-
} // end of namespace imp
|
|
2404
|
-
|
|
2405
|
-
enum Encoding {ASCII, UTF8, BASE64, UCS2, BINARY, HEX, BUFFER};
|
|
2406
|
-
|
|
2407
|
-
#if NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION
|
|
2408
|
-
# include "nan_string_bytes.h" // NOLINT(build/include)
|
|
2409
|
-
#endif
|
|
2410
|
-
|
|
2411
|
-
inline v8::Local<v8::Value> Encode(
|
|
2412
|
-
const void *buf, size_t len, enum Encoding encoding = BINARY) {
|
|
2413
|
-
#if (NODE_MODULE_VERSION >= ATOM_0_21_MODULE_VERSION)
|
|
2414
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
|
2415
|
-
node::encoding node_enc = static_cast<node::encoding>(encoding);
|
|
2416
|
-
|
|
2417
|
-
if (encoding == UCS2) {
|
|
2418
|
-
return node::Encode(
|
|
2419
|
-
isolate
|
|
2420
|
-
, reinterpret_cast<const uint16_t *>(buf)
|
|
2421
|
-
, len / 2);
|
|
2422
|
-
} else {
|
|
2423
|
-
return node::Encode(
|
|
2424
|
-
isolate
|
|
2425
|
-
, reinterpret_cast<const char *>(buf)
|
|
2426
|
-
, len
|
|
2427
|
-
, node_enc);
|
|
2428
|
-
}
|
|
2429
|
-
#elif (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
|
|
2430
|
-
return node::Encode(
|
|
2431
|
-
v8::Isolate::GetCurrent()
|
|
2432
|
-
, buf, len
|
|
2433
|
-
, static_cast<node::encoding>(encoding));
|
|
2434
|
-
#else
|
|
2435
|
-
# if NODE_MODULE_VERSION >= NODE_0_10_MODULE_VERSION
|
|
2436
|
-
return node::Encode(buf, len, static_cast<node::encoding>(encoding));
|
|
2437
|
-
# else
|
|
2438
|
-
return imp::Encode(reinterpret_cast<const char*>(buf), len, encoding);
|
|
2439
|
-
# endif
|
|
2440
|
-
#endif
|
|
2441
|
-
}
|
|
2442
|
-
|
|
2443
|
-
inline ssize_t DecodeBytes(
|
|
2444
|
-
v8::Local<v8::Value> val, enum Encoding encoding = BINARY) {
|
|
2445
|
-
#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
|
|
2446
|
-
return node::DecodeBytes(
|
|
2447
|
-
v8::Isolate::GetCurrent()
|
|
2448
|
-
, val
|
|
2449
|
-
, static_cast<node::encoding>(encoding));
|
|
2450
|
-
#else
|
|
2451
|
-
# if (NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION)
|
|
2452
|
-
if (encoding == BUFFER) {
|
|
2453
|
-
return node::DecodeBytes(val, node::BINARY);
|
|
2454
|
-
}
|
|
2455
|
-
# endif
|
|
2456
|
-
return node::DecodeBytes(val, static_cast<node::encoding>(encoding));
|
|
2457
|
-
#endif
|
|
2458
|
-
}
|
|
2459
|
-
|
|
2460
|
-
inline ssize_t DecodeWrite(
|
|
2461
|
-
char *buf
|
|
2462
|
-
, size_t len
|
|
2463
|
-
, v8::Local<v8::Value> val
|
|
2464
|
-
, enum Encoding encoding = BINARY) {
|
|
2465
|
-
#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
|
|
2466
|
-
return node::DecodeWrite(
|
|
2467
|
-
v8::Isolate::GetCurrent()
|
|
2468
|
-
, buf
|
|
2469
|
-
, len
|
|
2470
|
-
, val
|
|
2471
|
-
, static_cast<node::encoding>(encoding));
|
|
2472
|
-
#else
|
|
2473
|
-
# if (NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION)
|
|
2474
|
-
if (encoding == BUFFER) {
|
|
2475
|
-
return node::DecodeWrite(buf, len, val, node::BINARY);
|
|
2476
|
-
}
|
|
2477
|
-
# endif
|
|
2478
|
-
return node::DecodeWrite(
|
|
2479
|
-
buf
|
|
2480
|
-
, len
|
|
2481
|
-
, val
|
|
2482
|
-
, static_cast<node::encoding>(encoding));
|
|
2483
|
-
#endif
|
|
2484
|
-
}
|
|
2485
|
-
|
|
2486
|
-
inline void SetPrototypeTemplate(
|
|
2487
|
-
v8::Local<v8::FunctionTemplate> templ
|
|
2488
|
-
, const char *name
|
|
2489
|
-
, v8::Local<v8::Data> value
|
|
2490
|
-
) {
|
|
2491
|
-
HandleScope scope;
|
|
2492
|
-
SetTemplate(templ->PrototypeTemplate(), name, value);
|
|
2493
|
-
}
|
|
2494
|
-
|
|
2495
|
-
inline void SetPrototypeTemplate(
|
|
2496
|
-
v8::Local<v8::FunctionTemplate> templ
|
|
2497
|
-
, v8::Local<v8::String> name
|
|
2498
|
-
, v8::Local<v8::Data> value
|
|
2499
|
-
, v8::PropertyAttribute attributes
|
|
2500
|
-
) {
|
|
2501
|
-
HandleScope scope;
|
|
2502
|
-
SetTemplate(templ->PrototypeTemplate(), name, value, attributes);
|
|
2503
|
-
}
|
|
2504
|
-
|
|
2505
|
-
inline void SetInstanceTemplate(
|
|
2506
|
-
v8::Local<v8::FunctionTemplate> templ
|
|
2507
|
-
, const char *name
|
|
2508
|
-
, v8::Local<v8::Data> value
|
|
2509
|
-
) {
|
|
2510
|
-
HandleScope scope;
|
|
2511
|
-
SetTemplate(templ->InstanceTemplate(), name, value);
|
|
2512
|
-
}
|
|
2513
|
-
|
|
2514
|
-
inline void SetInstanceTemplate(
|
|
2515
|
-
v8::Local<v8::FunctionTemplate> templ
|
|
2516
|
-
, v8::Local<v8::String> name
|
|
2517
|
-
, v8::Local<v8::Data> value
|
|
2518
|
-
, v8::PropertyAttribute attributes
|
|
2519
|
-
) {
|
|
2520
|
-
HandleScope scope;
|
|
2521
|
-
SetTemplate(templ->InstanceTemplate(), name, value, attributes);
|
|
2522
|
-
}
|
|
2523
|
-
|
|
2524
|
-
namespace imp {
|
|
2525
|
-
|
|
2526
|
-
// Note(@agnat): Helper to distinguish different receiver types. The first
|
|
2527
|
-
// version deals with receivers derived from v8::Template. The second version
|
|
2528
|
-
// handles everything else. The final argument only serves as discriminator and
|
|
2529
|
-
// is unused.
|
|
2530
|
-
template <typename T>
|
|
2531
|
-
inline
|
|
2532
|
-
void
|
|
2533
|
-
SetMethodAux(T recv,
|
|
2534
|
-
v8::Local<v8::String> name,
|
|
2535
|
-
v8::Local<v8::FunctionTemplate> tpl,
|
|
2536
|
-
v8::Template *) {
|
|
2537
|
-
recv->Set(name, tpl);
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
|
-
template <typename T>
|
|
2541
|
-
inline
|
|
2542
|
-
void
|
|
2543
|
-
SetMethodAux(T recv,
|
|
2544
|
-
v8::Local<v8::String> name,
|
|
2545
|
-
v8::Local<v8::FunctionTemplate> tpl,
|
|
2546
|
-
...) {
|
|
2547
|
-
Set(recv, name, GetFunction(tpl).ToLocalChecked());
|
|
2548
|
-
}
|
|
2549
|
-
|
|
2550
|
-
} // end of namespace imp
|
|
2551
|
-
|
|
2552
|
-
template <typename T, template <typename> class HandleType>
|
|
2553
|
-
inline void SetMethod(
|
|
2554
|
-
HandleType<T> recv
|
|
2555
|
-
, const char *name
|
|
2556
|
-
, FunctionCallback callback
|
|
2557
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
|
|
2558
|
-
HandleScope scope;
|
|
2559
|
-
v8::Local<v8::FunctionTemplate> t = New<v8::FunctionTemplate>(callback, data);
|
|
2560
|
-
v8::Local<v8::String> fn_name = New(name).ToLocalChecked();
|
|
2561
|
-
t->SetClassName(fn_name);
|
|
2562
|
-
// Note(@agnat): Pass an empty T* as discriminator. See note on
|
|
2563
|
-
// SetMethodAux(...) above
|
|
2564
|
-
imp::SetMethodAux(recv, fn_name, t, static_cast<T*>(0));
|
|
2565
|
-
}
|
|
2566
|
-
|
|
2567
|
-
inline void SetPrototypeMethod(
|
|
2568
|
-
v8::Local<v8::FunctionTemplate> recv
|
|
2569
|
-
, const char* name
|
|
2570
|
-
, FunctionCallback callback
|
|
2571
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
|
|
2572
|
-
HandleScope scope;
|
|
2573
|
-
v8::Local<v8::FunctionTemplate> t = New<v8::FunctionTemplate>(
|
|
2574
|
-
callback
|
|
2575
|
-
, data
|
|
2576
|
-
, New<v8::Signature>(recv));
|
|
2577
|
-
v8::Local<v8::String> fn_name = New(name).ToLocalChecked();
|
|
2578
|
-
recv->PrototypeTemplate()->Set(fn_name, t);
|
|
2579
|
-
t->SetClassName(fn_name);
|
|
2580
|
-
}
|
|
2581
|
-
|
|
2582
|
-
//=== Accessors and Such =======================================================
|
|
2583
|
-
|
|
2584
|
-
NAN_DEPRECATED inline void SetAccessor(
|
|
2585
|
-
v8::Local<v8::ObjectTemplate> tpl
|
|
2586
|
-
, v8::Local<v8::String> name
|
|
2587
|
-
, GetterCallback getter
|
|
2588
|
-
, SetterCallback setter
|
|
2589
|
-
, v8::Local<v8::Value> data
|
|
2590
|
-
, v8::AccessControl settings
|
|
2591
|
-
, v8::PropertyAttribute attribute
|
|
2592
|
-
, imp::Sig signature) {
|
|
2593
|
-
HandleScope scope;
|
|
2594
|
-
|
|
2595
|
-
imp::NativeGetter getter_ =
|
|
2596
|
-
imp::GetterCallbackWrapper;
|
|
2597
|
-
imp::NativeSetter setter_ =
|
|
2598
|
-
setter ? imp::SetterCallbackWrapper : 0;
|
|
2599
|
-
|
|
2600
|
-
v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
|
|
2601
|
-
otpl->SetInternalFieldCount(imp::kAccessorFieldCount);
|
|
2602
|
-
v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
|
|
2603
|
-
|
|
2604
|
-
obj->SetInternalField(
|
|
2605
|
-
imp::kGetterIndex
|
|
2606
|
-
, New<v8::External>(reinterpret_cast<void *>(getter)));
|
|
2607
|
-
|
|
2608
|
-
if (setter != 0) {
|
|
2609
|
-
obj->SetInternalField(
|
|
2610
|
-
imp::kSetterIndex
|
|
2611
|
-
, New<v8::External>(reinterpret_cast<void *>(setter)));
|
|
2612
|
-
}
|
|
2613
|
-
|
|
2614
|
-
if (!data.IsEmpty()) {
|
|
2615
|
-
obj->SetInternalField(imp::kDataIndex, data);
|
|
2616
|
-
}
|
|
2617
|
-
|
|
2618
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 5))
|
|
2619
|
-
tpl->SetNativeDataProperty(
|
|
2620
|
-
#else
|
|
2621
|
-
tpl->SetAccessor(
|
|
2622
|
-
#endif
|
|
2623
|
-
name
|
|
2624
|
-
, getter_
|
|
2625
|
-
, setter_
|
|
2626
|
-
, obj
|
|
2627
|
-
#if !defined(V8_MAJOR_VERSION) || V8_MAJOR_VERSION < 12
|
|
2628
|
-
, settings
|
|
2629
|
-
#endif
|
|
2630
|
-
, attribute
|
|
2631
|
-
#if (NODE_MODULE_VERSION < NODE_16_0_MODULE_VERSION)
|
|
2632
|
-
, signature
|
|
2633
|
-
#endif
|
|
2634
|
-
);
|
|
2635
|
-
}
|
|
2636
|
-
|
|
2637
|
-
inline void SetAccessor(
|
|
2638
|
-
v8::Local<v8::ObjectTemplate> tpl
|
|
2639
|
-
, v8::Local<v8::String> name
|
|
2640
|
-
, GetterCallback getter
|
|
2641
|
-
, SetterCallback setter = 0
|
|
2642
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()
|
|
2643
|
-
, v8::AccessControl settings = v8::DEFAULT
|
|
2644
|
-
, v8::PropertyAttribute attribute = v8::None) {
|
|
2645
|
-
HandleScope scope;
|
|
2646
|
-
|
|
2647
|
-
imp::NativeGetter getter_ =
|
|
2648
|
-
imp::GetterCallbackWrapper;
|
|
2649
|
-
imp::NativeSetter setter_ =
|
|
2650
|
-
setter ? imp::SetterCallbackWrapper : 0;
|
|
2651
|
-
|
|
2652
|
-
v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
|
|
2653
|
-
otpl->SetInternalFieldCount(imp::kAccessorFieldCount);
|
|
2654
|
-
v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
|
|
2655
|
-
|
|
2656
|
-
obj->SetInternalField(
|
|
2657
|
-
imp::kGetterIndex
|
|
2658
|
-
, New<v8::External>(reinterpret_cast<void *>(getter)));
|
|
2659
|
-
|
|
2660
|
-
if (setter != 0) {
|
|
2661
|
-
obj->SetInternalField(
|
|
2662
|
-
imp::kSetterIndex
|
|
2663
|
-
, New<v8::External>(reinterpret_cast<void *>(setter)));
|
|
2664
|
-
}
|
|
2665
|
-
|
|
2666
|
-
if (!data.IsEmpty()) {
|
|
2667
|
-
obj->SetInternalField(imp::kDataIndex, data);
|
|
2668
|
-
}
|
|
2669
|
-
|
|
2670
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 5))
|
|
2671
|
-
tpl->SetNativeDataProperty(
|
|
2672
|
-
#else
|
|
2673
|
-
tpl->SetAccessor(
|
|
2674
|
-
#endif
|
|
2675
|
-
name
|
|
2676
|
-
, getter_
|
|
2677
|
-
, setter_
|
|
2678
|
-
, obj
|
|
2679
|
-
#if !defined(V8_MAJOR_VERSION) || V8_MAJOR_VERSION < 12
|
|
2680
|
-
, settings
|
|
2681
|
-
#endif
|
|
2682
|
-
, attribute
|
|
2683
|
-
);
|
|
2684
|
-
}
|
|
2685
|
-
|
|
2686
|
-
inline bool SetAccessor(
|
|
2687
|
-
v8::Local<v8::Object> obj
|
|
2688
|
-
, v8::Local<v8::String> name
|
|
2689
|
-
, GetterCallback getter
|
|
2690
|
-
, SetterCallback setter = 0
|
|
2691
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()
|
|
2692
|
-
, v8::AccessControl settings = v8::DEFAULT
|
|
2693
|
-
, v8::PropertyAttribute attribute = v8::None) {
|
|
2694
|
-
HandleScope scope;
|
|
2695
|
-
|
|
2696
|
-
imp::NativeGetter getter_ =
|
|
2697
|
-
imp::GetterCallbackWrapper;
|
|
2698
|
-
imp::NativeSetter setter_ =
|
|
2699
|
-
setter ? imp::SetterCallbackWrapper : 0;
|
|
2700
|
-
|
|
2701
|
-
v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
|
|
2702
|
-
otpl->SetInternalFieldCount(imp::kAccessorFieldCount);
|
|
2703
|
-
v8::Local<v8::Object> dataobj = NewInstance(otpl).ToLocalChecked();
|
|
2704
|
-
|
|
2705
|
-
dataobj->SetInternalField(
|
|
2706
|
-
imp::kGetterIndex
|
|
2707
|
-
, New<v8::External>(reinterpret_cast<void *>(getter)));
|
|
2708
|
-
|
|
2709
|
-
if (!data.IsEmpty()) {
|
|
2710
|
-
dataobj->SetInternalField(imp::kDataIndex, data);
|
|
2711
|
-
}
|
|
2712
|
-
|
|
2713
|
-
if (setter) {
|
|
2714
|
-
dataobj->SetInternalField(
|
|
2715
|
-
imp::kSetterIndex
|
|
2716
|
-
, New<v8::External>(reinterpret_cast<void *>(setter)));
|
|
2717
|
-
}
|
|
2718
|
-
|
|
2719
|
-
#if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION)
|
|
2720
|
-
#if defined(V8_MAJOR_VERSION) && \
|
|
2721
|
-
(V8_MAJOR_VERSION > 12 || \
|
|
2722
|
-
(V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && \
|
|
2723
|
-
V8_MINOR_VERSION >= 5))
|
|
2724
|
-
return obj->SetNativeDataProperty(
|
|
2725
|
-
GetCurrentContext()
|
|
2726
|
-
, name
|
|
2727
|
-
, getter_
|
|
2728
|
-
, setter_
|
|
2729
|
-
, dataobj
|
|
2730
|
-
, attribute).FromMaybe(false);
|
|
2731
|
-
#else
|
|
2732
|
-
return obj->SetAccessor(
|
|
2733
|
-
GetCurrentContext()
|
|
2734
|
-
, name
|
|
2735
|
-
, getter_
|
|
2736
|
-
, setter_
|
|
2737
|
-
, dataobj
|
|
2738
|
-
, settings
|
|
2739
|
-
, attribute).FromMaybe(false);
|
|
2740
|
-
#endif
|
|
2741
|
-
#else
|
|
2742
|
-
return obj->SetAccessor(
|
|
2743
|
-
name
|
|
2744
|
-
, getter_
|
|
2745
|
-
, setter_
|
|
2746
|
-
, dataobj
|
|
2747
|
-
, settings
|
|
2748
|
-
, attribute);
|
|
2749
|
-
#endif
|
|
2750
|
-
}
|
|
2751
|
-
|
|
2752
|
-
inline void SetNamedPropertyHandler(
|
|
2753
|
-
v8::Local<v8::ObjectTemplate> tpl
|
|
2754
|
-
, PropertyGetterCallback getter
|
|
2755
|
-
, PropertySetterCallback setter = 0
|
|
2756
|
-
, PropertyQueryCallback query = 0
|
|
2757
|
-
, PropertyDeleterCallback deleter = 0
|
|
2758
|
-
, PropertyEnumeratorCallback enumerator = 0
|
|
2759
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
|
|
2760
|
-
HandleScope scope;
|
|
2761
|
-
|
|
2762
|
-
imp::NativePropertyGetter getter_ =
|
|
2763
|
-
imp::PropertyGetterCallbackWrapper;
|
|
2764
|
-
imp::NativePropertySetter setter_ =
|
|
2765
|
-
setter ? imp::PropertySetterCallbackWrapper : 0;
|
|
2766
|
-
imp::NativePropertyQuery query_ =
|
|
2767
|
-
query ? imp::PropertyQueryCallbackWrapper : 0;
|
|
2768
|
-
imp::NativePropertyDeleter *deleter_ =
|
|
2769
|
-
deleter ? imp::PropertyDeleterCallbackWrapper : 0;
|
|
2770
|
-
imp::NativePropertyEnumerator enumerator_ =
|
|
2771
|
-
enumerator ? imp::PropertyEnumeratorCallbackWrapper : 0;
|
|
2772
|
-
|
|
2773
|
-
v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
|
|
2774
|
-
otpl->SetInternalFieldCount(imp::kPropertyFieldCount);
|
|
2775
|
-
v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
|
|
2776
|
-
obj->SetInternalField(
|
|
2777
|
-
imp::kPropertyGetterIndex
|
|
2778
|
-
, New<v8::External>(reinterpret_cast<void *>(getter)));
|
|
2779
|
-
|
|
2780
|
-
if (setter) {
|
|
2781
|
-
obj->SetInternalField(
|
|
2782
|
-
imp::kPropertySetterIndex
|
|
2783
|
-
, New<v8::External>(reinterpret_cast<void *>(setter)));
|
|
2784
|
-
}
|
|
2785
|
-
|
|
2786
|
-
if (query) {
|
|
2787
|
-
obj->SetInternalField(
|
|
2788
|
-
imp::kPropertyQueryIndex
|
|
2789
|
-
, New<v8::External>(reinterpret_cast<void *>(query)));
|
|
2790
|
-
}
|
|
2791
|
-
|
|
2792
|
-
if (deleter) {
|
|
2793
|
-
obj->SetInternalField(
|
|
2794
|
-
imp::kPropertyDeleterIndex
|
|
2795
|
-
, New<v8::External>(reinterpret_cast<void *>(deleter)));
|
|
2796
|
-
}
|
|
2797
|
-
|
|
2798
|
-
if (enumerator) {
|
|
2799
|
-
obj->SetInternalField(
|
|
2800
|
-
imp::kPropertyEnumeratorIndex
|
|
2801
|
-
, New<v8::External>(reinterpret_cast<void *>(enumerator)));
|
|
2802
|
-
}
|
|
2803
|
-
|
|
2804
|
-
if (!data.IsEmpty()) {
|
|
2805
|
-
obj->SetInternalField(imp::kDataIndex, data);
|
|
2806
|
-
}
|
|
2807
|
-
|
|
2808
|
-
#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
|
|
2809
|
-
tpl->SetHandler(v8::NamedPropertyHandlerConfiguration(
|
|
2810
|
-
getter_, setter_, query_, deleter_, enumerator_, obj));
|
|
2811
|
-
#else
|
|
2812
|
-
tpl->SetNamedPropertyHandler(
|
|
2813
|
-
getter_
|
|
2814
|
-
, setter_
|
|
2815
|
-
, query_
|
|
2816
|
-
, deleter_
|
|
2817
|
-
, enumerator_
|
|
2818
|
-
, obj);
|
|
2819
|
-
#endif
|
|
2820
|
-
}
|
|
2821
|
-
|
|
2822
|
-
inline void SetIndexedPropertyHandler(
|
|
2823
|
-
v8::Local<v8::ObjectTemplate> tpl
|
|
2824
|
-
, IndexGetterCallback getter
|
|
2825
|
-
, IndexSetterCallback setter = 0
|
|
2826
|
-
, IndexQueryCallback query = 0
|
|
2827
|
-
, IndexDeleterCallback deleter = 0
|
|
2828
|
-
, IndexEnumeratorCallback enumerator = 0
|
|
2829
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
|
|
2830
|
-
HandleScope scope;
|
|
2831
|
-
|
|
2832
|
-
imp::NativeIndexGetter getter_ =
|
|
2833
|
-
imp::IndexGetterCallbackWrapper;
|
|
2834
|
-
imp::NativeIndexSetter setter_ =
|
|
2835
|
-
setter ? imp::IndexSetterCallbackWrapper : 0;
|
|
2836
|
-
imp::NativeIndexQuery query_ =
|
|
2837
|
-
query ? imp::IndexQueryCallbackWrapper : 0;
|
|
2838
|
-
imp::NativeIndexDeleter deleter_ =
|
|
2839
|
-
deleter ? imp::IndexDeleterCallbackWrapper : 0;
|
|
2840
|
-
imp::NativeIndexEnumerator enumerator_ =
|
|
2841
|
-
enumerator ? imp::IndexEnumeratorCallbackWrapper : 0;
|
|
2842
|
-
|
|
2843
|
-
v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
|
|
2844
|
-
otpl->SetInternalFieldCount(imp::kIndexPropertyFieldCount);
|
|
2845
|
-
v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
|
|
2846
|
-
obj->SetInternalField(
|
|
2847
|
-
imp::kIndexPropertyGetterIndex
|
|
2848
|
-
, New<v8::External>(reinterpret_cast<void *>(getter)));
|
|
2849
|
-
|
|
2850
|
-
if (setter) {
|
|
2851
|
-
obj->SetInternalField(
|
|
2852
|
-
imp::kIndexPropertySetterIndex
|
|
2853
|
-
, New<v8::External>(reinterpret_cast<void *>(setter)));
|
|
2854
|
-
}
|
|
2855
|
-
|
|
2856
|
-
if (query) {
|
|
2857
|
-
obj->SetInternalField(
|
|
2858
|
-
imp::kIndexPropertyQueryIndex
|
|
2859
|
-
, New<v8::External>(reinterpret_cast<void *>(query)));
|
|
2860
|
-
}
|
|
2861
|
-
|
|
2862
|
-
if (deleter) {
|
|
2863
|
-
obj->SetInternalField(
|
|
2864
|
-
imp::kIndexPropertyDeleterIndex
|
|
2865
|
-
, New<v8::External>(reinterpret_cast<void *>(deleter)));
|
|
2866
|
-
}
|
|
2867
|
-
|
|
2868
|
-
if (enumerator) {
|
|
2869
|
-
obj->SetInternalField(
|
|
2870
|
-
imp::kIndexPropertyEnumeratorIndex
|
|
2871
|
-
, New<v8::External>(reinterpret_cast<void *>(enumerator)));
|
|
2872
|
-
}
|
|
2873
|
-
|
|
2874
|
-
if (!data.IsEmpty()) {
|
|
2875
|
-
obj->SetInternalField(imp::kDataIndex, data);
|
|
2876
|
-
}
|
|
2877
|
-
|
|
2878
|
-
#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
|
|
2879
|
-
tpl->SetHandler(v8::IndexedPropertyHandlerConfiguration(
|
|
2880
|
-
getter_, setter_, query_, deleter_, enumerator_, obj));
|
|
2881
|
-
#else
|
|
2882
|
-
tpl->SetIndexedPropertyHandler(
|
|
2883
|
-
getter_
|
|
2884
|
-
, setter_
|
|
2885
|
-
, query_
|
|
2886
|
-
, deleter_
|
|
2887
|
-
, enumerator_
|
|
2888
|
-
, obj);
|
|
2889
|
-
#endif
|
|
2890
|
-
}
|
|
2891
|
-
|
|
2892
|
-
inline void SetCallHandler(
|
|
2893
|
-
v8::Local<v8::FunctionTemplate> tpl
|
|
2894
|
-
, FunctionCallback callback
|
|
2895
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
|
|
2896
|
-
HandleScope scope;
|
|
2897
|
-
|
|
2898
|
-
v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
|
|
2899
|
-
otpl->SetInternalFieldCount(imp::kFunctionFieldCount);
|
|
2900
|
-
v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
|
|
2901
|
-
|
|
2902
|
-
obj->SetInternalField(
|
|
2903
|
-
imp::kFunctionIndex
|
|
2904
|
-
, New<v8::External>(reinterpret_cast<void *>(callback)));
|
|
2905
|
-
|
|
2906
|
-
if (!data.IsEmpty()) {
|
|
2907
|
-
obj->SetInternalField(imp::kDataIndex, data);
|
|
2908
|
-
}
|
|
2909
|
-
|
|
2910
|
-
tpl->SetCallHandler(imp::FunctionCallbackWrapper, obj);
|
|
2911
|
-
}
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
inline void SetCallAsFunctionHandler(
|
|
2915
|
-
v8::Local<v8::ObjectTemplate> tpl,
|
|
2916
|
-
FunctionCallback callback,
|
|
2917
|
-
v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
|
|
2918
|
-
HandleScope scope;
|
|
2919
|
-
|
|
2920
|
-
v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
|
|
2921
|
-
otpl->SetInternalFieldCount(imp::kFunctionFieldCount);
|
|
2922
|
-
v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
|
|
2923
|
-
|
|
2924
|
-
obj->SetInternalField(
|
|
2925
|
-
imp::kFunctionIndex
|
|
2926
|
-
, New<v8::External>(reinterpret_cast<void *>(callback)));
|
|
2927
|
-
|
|
2928
|
-
if (!data.IsEmpty()) {
|
|
2929
|
-
obj->SetInternalField(imp::kDataIndex, data);
|
|
2930
|
-
}
|
|
2931
|
-
|
|
2932
|
-
tpl->SetCallAsFunctionHandler(imp::FunctionCallbackWrapper, obj);
|
|
2933
|
-
}
|
|
2934
|
-
|
|
2935
|
-
//=== Weak Persistent Handling =================================================
|
|
2936
|
-
|
|
2937
|
-
#include "nan_weak.h" // NOLINT(build/include)
|
|
2938
|
-
|
|
2939
|
-
//=== ObjectWrap ===============================================================
|
|
2940
|
-
|
|
2941
|
-
#include "nan_object_wrap.h" // NOLINT(build/include)
|
|
2942
|
-
|
|
2943
|
-
//=== HiddenValue/Private ======================================================
|
|
2944
|
-
|
|
2945
|
-
#include "nan_private.h" // NOLINT(build/include)
|
|
2946
|
-
|
|
2947
|
-
//=== Export ==================================================================
|
|
2948
|
-
|
|
2949
|
-
inline
|
|
2950
|
-
void
|
|
2951
|
-
Export(ADDON_REGISTER_FUNCTION_ARGS_TYPE target, const char *name,
|
|
2952
|
-
FunctionCallback f) {
|
|
2953
|
-
HandleScope scope;
|
|
2954
|
-
|
|
2955
|
-
Set(target, New<v8::String>(name).ToLocalChecked(),
|
|
2956
|
-
GetFunction(New<v8::FunctionTemplate>(f)).ToLocalChecked());
|
|
2957
|
-
}
|
|
2958
|
-
|
|
2959
|
-
//=== Tap Reverse Binding =====================================================
|
|
2960
|
-
|
|
2961
|
-
struct Tap {
|
|
2962
|
-
explicit Tap(v8::Local<v8::Value> t) : t_() {
|
|
2963
|
-
HandleScope scope;
|
|
2964
|
-
|
|
2965
|
-
t_.Reset(To<v8::Object>(t).ToLocalChecked());
|
|
2966
|
-
}
|
|
2967
|
-
|
|
2968
|
-
~Tap() { t_.Reset(); } // not sure if necessary
|
|
2969
|
-
|
|
2970
|
-
inline void plan(int i) {
|
|
2971
|
-
HandleScope scope;
|
|
2972
|
-
v8::Local<v8::Value> arg = New(i);
|
|
2973
|
-
Call("plan", New(t_), 1, &arg);
|
|
2974
|
-
}
|
|
2975
|
-
|
|
2976
|
-
inline void ok(bool isOk, const char *msg = NULL) {
|
|
2977
|
-
HandleScope scope;
|
|
2978
|
-
v8::Local<v8::Value> args[2];
|
|
2979
|
-
args[0] = New(isOk);
|
|
2980
|
-
if (msg) args[1] = New(msg).ToLocalChecked();
|
|
2981
|
-
Call("ok", New(t_), msg ? 2 : 1, args);
|
|
2982
|
-
}
|
|
2983
|
-
|
|
2984
|
-
inline void pass(const char * msg = NULL) {
|
|
2985
|
-
HandleScope scope;
|
|
2986
|
-
v8::Local<v8::Value> hmsg;
|
|
2987
|
-
if (msg) hmsg = New(msg).ToLocalChecked();
|
|
2988
|
-
Call("pass", New(t_), msg ? 1 : 0, &hmsg);
|
|
2989
|
-
}
|
|
2990
|
-
|
|
2991
|
-
inline void end() {
|
|
2992
|
-
HandleScope scope;
|
|
2993
|
-
Call("end", New(t_), 0, NULL);
|
|
2994
|
-
}
|
|
2995
|
-
|
|
2996
|
-
private:
|
|
2997
|
-
Persistent<v8::Object> t_;
|
|
2998
|
-
};
|
|
2999
|
-
|
|
3000
|
-
#define NAN_STRINGIZE2(x) #x
|
|
3001
|
-
#define NAN_STRINGIZE(x) NAN_STRINGIZE2(x)
|
|
3002
|
-
#define NAN_TEST_EXPRESSION(expression) \
|
|
3003
|
-
( expression ), __FILE__ ":" NAN_STRINGIZE(__LINE__) ": " #expression
|
|
3004
|
-
|
|
3005
|
-
#define NAN_EXPORT(target, function) Export(target, #function, function)
|
|
3006
|
-
|
|
3007
|
-
#undef TYPE_CHECK
|
|
3008
|
-
|
|
3009
|
-
//=== Generic Maybefication ===================================================
|
|
3010
|
-
|
|
3011
|
-
namespace imp {
|
|
3012
|
-
|
|
3013
|
-
template <typename T> struct Maybefier;
|
|
3014
|
-
|
|
3015
|
-
template <typename T> struct Maybefier<v8::Local<T> > {
|
|
3016
|
-
inline static MaybeLocal<T> convert(v8::Local<T> v) {
|
|
3017
|
-
return v;
|
|
3018
|
-
}
|
|
3019
|
-
};
|
|
3020
|
-
|
|
3021
|
-
template <typename T> struct Maybefier<MaybeLocal<T> > {
|
|
3022
|
-
inline static MaybeLocal<T> convert(MaybeLocal<T> v) {
|
|
3023
|
-
return v;
|
|
3024
|
-
}
|
|
3025
|
-
};
|
|
3026
|
-
|
|
3027
|
-
} // end of namespace imp
|
|
3028
|
-
|
|
3029
|
-
template <typename T, template <typename> class MaybeMaybe>
|
|
3030
|
-
inline MaybeLocal<T>
|
|
3031
|
-
MakeMaybe(MaybeMaybe<T> v) {
|
|
3032
|
-
return imp::Maybefier<MaybeMaybe<T> >::convert(v);
|
|
3033
|
-
}
|
|
3034
|
-
|
|
3035
|
-
//=== TypedArrayContents =======================================================
|
|
3036
|
-
|
|
3037
|
-
#include "nan_typedarray_contents.h" // NOLINT(build/include)
|
|
3038
|
-
|
|
3039
|
-
//=== JSON =====================================================================
|
|
3040
|
-
|
|
3041
|
-
#include "nan_json.h" // NOLINT(build/include)
|
|
3042
|
-
|
|
3043
|
-
//=== ScriptOrigin =============================================================
|
|
3044
|
-
|
|
3045
|
-
#include "nan_scriptorigin.h" // NOLINT(build/include)
|
|
3046
|
-
|
|
3047
|
-
} // end of namespace Nan
|
|
3048
|
-
|
|
3049
|
-
#endif // NAN_H_
|