@jointhedots/gear 1.0.21 → 1.1.5
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/browser-modules/asap-raw.js +79 -0
- package/browser-modules/asap.js +57 -0
- package/browser-modules/buffer.js +3 -1
- package/browser-modules/child_process.js +145 -0
- package/browser-modules/events.js +200 -0
- package/browser-modules/side-effects.js +8 -0
- package/browser-modules/stream.js +323 -0
- package/browser-modules/util.js +170 -0
- package/browser-modules/worker_threads.js +85 -0
- package/esm/builder/build-app-bundle.js +190 -0
- package/esm/builder/build-app-bundle.js.map +1 -0
- package/esm/builder/build-app-host.js +173 -0
- package/esm/builder/build-app-host.js.map +1 -0
- package/esm/builder/build-application.js +233 -71
- package/esm/builder/build-application.js.map +1 -1
- package/esm/builder/build-library.js +29 -39
- package/esm/builder/build-library.js.map +1 -1
- package/esm/builder/build-target.js +63 -105
- package/esm/builder/build-target.js.map +1 -1
- package/esm/builder/emit-dts.js +110 -87
- package/esm/builder/emit-dts.js.map +1 -1
- package/esm/builder/esbuild-plugins.js +182 -59
- package/esm/builder/esbuild-plugins.js.map +1 -1
- package/esm/builder/helpers/path-helpers.js +95 -0
- package/esm/builder/helpers/path-helpers.js.map +1 -0
- package/esm/cli.js +0 -1
- package/esm/cli.js.map +1 -1
- package/esm/commands/init.js +1 -0
- package/esm/commands/init.js.map +1 -1
- package/esm/commands/make.js +52 -9
- package/esm/commands/make.js.map +1 -1
- package/esm/commands/publish.js +1 -0
- package/esm/commands/publish.js.map +1 -1
- package/esm/commands/run.js +1 -0
- package/esm/commands/run.js.map +1 -1
- package/esm/commands/serve.js +42 -9
- package/esm/commands/serve.js.map +1 -1
- package/esm/model/component.js +6 -11
- package/esm/model/component.js.map +1 -1
- package/esm/model/helpers/create-manifests.js +69 -0
- package/esm/model/helpers/create-manifests.js.map +1 -0
- package/esm/model/helpers/discover-workspace.js +258 -0
- package/esm/model/helpers/discover-workspace.js.map +1 -0
- package/esm/model/helpers/logger.js +116 -0
- package/esm/model/helpers/logger.js.map +1 -0
- package/esm/model/storage.js +82 -24
- package/esm/model/storage.js.map +1 -1
- package/esm/model/workspace.js +107 -148
- package/esm/model/workspace.js.map +1 -1
- package/esm/publish/publish_aws_s3.js +1 -0
- package/esm/publish/publish_aws_s3.js.map +1 -1
- package/esm/utils/file.js +37 -6
- package/esm/utils/file.js.map +1 -1
- package/esm/utils/graph-ordering.js +86 -0
- package/esm/utils/graph-ordering.js.map +1 -0
- package/esm/utils/normalized-name.js +94 -0
- package/esm/utils/normalized-name.js.map +1 -0
- package/node_modules/@jspm/core/.github/workflows/ci.yml +64 -0
- package/node_modules/@jspm/core/LICENSE +796 -0
- package/node_modules/@jspm/core/README.md +11 -0
- package/node_modules/@jspm/core/chompfile.toml +28 -0
- package/node_modules/@jspm/core/generate-node-libs.mjs +10 -0
- package/node_modules/@jspm/core/nodelibs/@empty.dew.js +7 -0
- package/node_modules/@jspm/core/nodelibs/@empty.js +3 -0
- package/node_modules/@jspm/core/nodelibs/browser/_stream_duplex.js +13 -0
- package/node_modules/@jspm/core/nodelibs/browser/_stream_passthrough.js +12 -0
- package/node_modules/@jspm/core/nodelibs/browser/_stream_readable.js +14 -0
- package/node_modules/@jspm/core/nodelibs/browser/_stream_transform.js +12 -0
- package/node_modules/@jspm/core/nodelibs/browser/_stream_writable.js +13 -0
- package/node_modules/@jspm/core/nodelibs/browser/assert/strict.js +29 -0
- package/node_modules/@jspm/core/nodelibs/browser/assert.js +2574 -0
- package/node_modules/@jspm/core/nodelibs/browser/async_hooks.js +14 -0
- package/node_modules/@jspm/core/nodelibs/browser/buffer.js +10 -0
- package/node_modules/@jspm/core/nodelibs/browser/child_process.js +17 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-B6-G-Ftj.js +158 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-B738Er4n.js +5524 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-BlJi4mNy.js +448 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-BsRZ0PEC.js +74 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-C4rKjYLo.js +20 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-CbQqNoLO.js +32 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js +360 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-CjPlbOtt.js +47 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-CkFCi-G1.js +36 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-D3uu3VYh.js +33 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-DEMDiNwt.js +275 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-DHWh-hmB.js +1344 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-DtDiafJB.js +96 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-DtcTpLWz.js +826 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js +1923 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-b0rmRow7.js +246 -0
- package/node_modules/@jspm/core/nodelibs/browser/chunk-tHuMsdT0.js +8 -0
- package/node_modules/@jspm/core/nodelibs/browser/cluster.js +33 -0
- package/node_modules/@jspm/core/nodelibs/browser/console.js +103 -0
- package/node_modules/@jspm/core/nodelibs/browser/constants.js +419 -0
- package/node_modules/@jspm/core/nodelibs/browser/crypto.js +109730 -0
- package/node_modules/@jspm/core/nodelibs/browser/dgram.js +11 -0
- package/node_modules/@jspm/core/nodelibs/browser/diagnostics_channel.js +153 -0
- package/node_modules/@jspm/core/nodelibs/browser/dns/promises.js +26 -0
- package/node_modules/@jspm/core/nodelibs/browser/dns.js +101 -0
- package/node_modules/@jspm/core/nodelibs/browser/domain.js +77 -0
- package/node_modules/@jspm/core/nodelibs/browser/events.js +491 -0
- package/node_modules/@jspm/core/nodelibs/browser/fs/promises.js +50 -0
- package/node_modules/@jspm/core/nodelibs/browser/fs.js +4139 -0
- package/node_modules/@jspm/core/nodelibs/browser/http.js +3513 -0
- package/node_modules/@jspm/core/nodelibs/browser/http2.js +88 -0
- package/node_modules/@jspm/core/nodelibs/browser/https.js +873 -0
- package/node_modules/@jspm/core/nodelibs/browser/module.js +58 -0
- package/node_modules/@jspm/core/nodelibs/browser/net.js +20 -0
- package/node_modules/@jspm/core/nodelibs/browser/os.js +94 -0
- package/node_modules/@jspm/core/nodelibs/browser/path/posix.js +40 -0
- package/node_modules/@jspm/core/nodelibs/browser/path/win32.js +27 -0
- package/node_modules/@jspm/core/nodelibs/browser/path.js +20 -0
- package/node_modules/@jspm/core/nodelibs/browser/perf_hooks.js +30 -0
- package/node_modules/@jspm/core/nodelibs/browser/process-production.js +274 -0
- package/node_modules/@jspm/core/nodelibs/browser/process.js +277 -0
- package/node_modules/@jspm/core/nodelibs/browser/punycode.js +436 -0
- package/node_modules/@jspm/core/nodelibs/browser/querystring.js +118 -0
- package/node_modules/@jspm/core/nodelibs/browser/readline.js +15 -0
- package/node_modules/@jspm/core/nodelibs/browser/repl.js +21 -0
- package/node_modules/@jspm/core/nodelibs/browser/stream/consumers.js +61 -0
- package/node_modules/@jspm/core/nodelibs/browser/stream/promises.js +12 -0
- package/node_modules/@jspm/core/nodelibs/browser/stream/web.js +35 -0
- package/node_modules/@jspm/core/nodelibs/browser/stream.js +6574 -0
- package/node_modules/@jspm/core/nodelibs/browser/string_decoder.js +2 -0
- package/node_modules/@jspm/core/nodelibs/browser/sys.js +9 -0
- package/node_modules/@jspm/core/nodelibs/browser/timers/promises.js +17 -0
- package/node_modules/@jspm/core/nodelibs/browser/timers.js +256 -0
- package/node_modules/@jspm/core/nodelibs/browser/tls.js +34 -0
- package/node_modules/@jspm/core/nodelibs/browser/tty.js +20 -0
- package/node_modules/@jspm/core/nodelibs/browser/url.js +2361 -0
- package/node_modules/@jspm/core/nodelibs/browser/util/types.js +51 -0
- package/node_modules/@jspm/core/nodelibs/browser/util.js +1345 -0
- package/node_modules/@jspm/core/nodelibs/browser/v8.js +21 -0
- package/node_modules/@jspm/core/nodelibs/browser/vm.js +139 -0
- package/node_modules/@jspm/core/nodelibs/browser/wasi.js +160 -0
- package/node_modules/@jspm/core/nodelibs/browser/worker_threads.js +140 -0
- package/node_modules/@jspm/core/nodelibs/browser/zlib.js +6545 -0
- package/node_modules/@jspm/core/nodelibs/deno/_stream_duplex.ts +5 -0
- package/node_modules/@jspm/core/nodelibs/deno/_stream_passthrough.ts +1 -0
- package/node_modules/@jspm/core/nodelibs/deno/_stream_readable.ts +5 -0
- package/node_modules/@jspm/core/nodelibs/deno/_stream_transform.ts +1 -0
- package/node_modules/@jspm/core/nodelibs/deno/_stream_writable.ts +5 -0
- package/node_modules/@jspm/core/nodelibs/deno/assert/strict.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/assert.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/async_hooks.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/buffer.ts +5 -0
- package/node_modules/@jspm/core/nodelibs/deno/child_process.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/cluster.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/console.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/constants.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/crypto.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/dgram.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/diagnostics_channel.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/dns/promises.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/dns.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/domain.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/events.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/fs/promises.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/fs.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/http.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/http2.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/https.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/inspector.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/module.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/net.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/os.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/path/posix.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/path/win32.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/path.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/perf_hooks.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/process-production.ts +4 -0
- package/node_modules/@jspm/core/nodelibs/deno/process.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/punycode.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/querystring.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/readline/promises.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/readline.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/repl.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/stream/consumers.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/stream/promises.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/stream/web.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/stream.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/string_decoder.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/timers/promises.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/timers.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/tls.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/tty.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/url.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/util/types.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/util.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/v8.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/vm.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/wasi.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/worker_threads.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/deno/zlib.ts +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_http_agent.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_http_client.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_http_common.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_http_incoming.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_http_outgoing.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_http_server.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_stream_duplex.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_stream_passthrough.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_stream_readable.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_stream_transform.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_stream_wrap.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_stream_writable.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_tls_common.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/_tls_wrap.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/assert/strict.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/assert.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/async_hooks.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/buffer.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/child_process.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/cluster.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/console.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/constants.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/crypto.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/dgram.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/diagnostics_channel.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/dns/promises.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/dns.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/domain.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/events.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/fs/promises.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/fs.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/http.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/http2.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/https.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/inspector/promises.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/inspector.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/module.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/net.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/os.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/path/posix.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/path/win32.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/path.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/perf_hooks.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/process-production.js +4 -0
- package/node_modules/@jspm/core/nodelibs/node/process.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/punycode.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/querystring.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/readline/promises.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/readline.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/repl.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/stream/consumers.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/stream/promises.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/stream/web.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/stream.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/string_decoder.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/sys.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/timers/promises.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/timers.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/tls.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/trace_events.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/tty.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/url.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/util/types.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/util.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/v8.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/vm.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/wasi.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/worker_threads.js +2 -0
- package/node_modules/@jspm/core/nodelibs/node/zlib.js +2 -0
- package/node_modules/@jspm/core/package.json +75 -0
- package/node_modules/@jspm/core/rollup.config.mjs +55 -0
- package/node_modules/@jspm/core/src-browser/__tty.js +11 -0
- package/node_modules/@jspm/core/src-browser/_stream_duplex.js +3 -0
- package/node_modules/@jspm/core/src-browser/_stream_passthrough.js +2 -0
- package/node_modules/@jspm/core/src-browser/_stream_readable.js +5 -0
- package/node_modules/@jspm/core/src-browser/_stream_transform.js +2 -0
- package/node_modules/@jspm/core/src-browser/_stream_writable.js +3 -0
- package/node_modules/@jspm/core/src-browser/assert/strict.js +26 -0
- package/node_modules/@jspm/core/src-browser/assert.js +19 -0
- package/node_modules/@jspm/core/src-browser/async_hooks.js +21 -0
- package/node_modules/@jspm/core/src-browser/buffer.js +5 -0
- package/node_modules/@jspm/core/src-browser/child_process.js +27 -0
- package/node_modules/@jspm/core/src-browser/cluster.js +38 -0
- package/node_modules/@jspm/core/src-browser/console.js +25 -0
- package/node_modules/@jspm/core/src-browser/constants.js +209 -0
- package/node_modules/@jspm/core/src-browser/crypto.js +63 -0
- package/node_modules/@jspm/core/src-browser/dgram.js +15 -0
- package/node_modules/@jspm/core/src-browser/diagnostics_channel.js +6 -0
- package/node_modules/@jspm/core/src-browser/dns/promises.js +45 -0
- package/node_modules/@jspm/core/src-browser/dns.js +121 -0
- package/node_modules/@jspm/core/src-browser/domain.js +4 -0
- package/node_modules/@jspm/core/src-browser/events.js +105 -0
- package/node_modules/@jspm/core/src-browser/fs/promises.js +34 -0
- package/node_modules/@jspm/core/src-browser/fs.js +209 -0
- package/node_modules/@jspm/core/src-browser/http.js +10 -0
- package/node_modules/@jspm/core/src-browser/http2.js +86 -0
- package/node_modules/@jspm/core/src-browser/https.js +10 -0
- package/node_modules/@jspm/core/src-browser/module.js +75 -0
- package/node_modules/@jspm/core/src-browser/net.js +33 -0
- package/node_modules/@jspm/core/src-browser/os.js +35 -0
- package/node_modules/@jspm/core/src-browser/path/posix.js +38 -0
- package/node_modules/@jspm/core/src-browser/path/win32.js +42 -0
- package/node_modules/@jspm/core/src-browser/path.js +17 -0
- package/node_modules/@jspm/core/src-browser/perf_hooks.js +30 -0
- package/node_modules/@jspm/core/src-browser/process-production.js +279 -0
- package/node_modules/@jspm/core/src-browser/process.js +282 -0
- package/node_modules/@jspm/core/src-browser/punycode.js +8 -0
- package/node_modules/@jspm/core/src-browser/querystring.js +6 -0
- package/node_modules/@jspm/core/src-browser/readline.js +23 -0
- package/node_modules/@jspm/core/src-browser/repl.js +26 -0
- package/node_modules/@jspm/core/src-browser/stream/consumers.js +57 -0
- package/node_modules/@jspm/core/src-browser/stream/promises.js +4 -0
- package/node_modules/@jspm/core/src-browser/stream/web.js +33 -0
- package/node_modules/@jspm/core/src-browser/stream.js +26 -0
- package/node_modules/@jspm/core/src-browser/string_decoder.js +3 -0
- package/node_modules/@jspm/core/src-browser/sys.js +3 -0
- package/node_modules/@jspm/core/src-browser/timers/promises.js +12 -0
- package/node_modules/@jspm/core/src-browser/timers.js +13 -0
- package/node_modules/@jspm/core/src-browser/tls.js +46 -0
- package/node_modules/@jspm/core/src-browser/tty.js +3 -0
- package/node_modules/@jspm/core/src-browser/url.js +154 -0
- package/node_modules/@jspm/core/src-browser/util/types.js +48 -0
- package/node_modules/@jspm/core/src-browser/util.js +30 -0
- package/node_modules/@jspm/core/src-browser/v8.js +35 -0
- package/node_modules/@jspm/core/src-browser/vm.js +9 -0
- package/node_modules/@jspm/core/src-browser/wasi.js +15 -0
- package/node_modules/@jspm/core/src-browser/worker_threads.js +139 -0
- package/node_modules/@jspm/core/src-browser/zlib.js +71 -0
- package/node_modules/@jspm/core/test/chrome-worker_threads.test.js +14 -0
- package/node_modules/@jspm/core/test/cowsay.wasm +0 -0
- package/node_modules/@jspm/core/test/exports.test.js +99 -0
- package/node_modules/@jspm/core/test/fs.test.js +13 -0
- package/node_modules/@jspm/core/test/os.test.js +7 -0
- package/node_modules/@jspm/core/test/process.test.js +15 -0
- package/node_modules/@jspm/core/test/server.js +177 -0
- package/node_modules/@jspm/core/test/test.html +29 -0
- package/node_modules/@jspm/core/test/wasi.test.js +13 -0
- package/package.json +39 -24
- package/esm/utils/helpers.js +0 -32
- package/esm/utils/helpers.js.map +0 -1
|
@@ -0,0 +1,2574 @@
|
|
|
1
|
+
import exports$j from './util.js';
|
|
2
|
+
import { p as process } from './chunk-DEMDiNwt.js';
|
|
3
|
+
import { d as dew$i, a as dew$j, b as dew$k, c as dew$l, e as dew$m } from './chunk-DtcTpLWz.js';
|
|
4
|
+
import './chunk-CkFCi-G1.js';
|
|
5
|
+
|
|
6
|
+
var exports$i = {},
|
|
7
|
+
_dewExec$h = false;
|
|
8
|
+
function dew$h() {
|
|
9
|
+
if (_dewExec$h) return exports$i;
|
|
10
|
+
_dewExec$h = true;
|
|
11
|
+
// The whole point behind this internal module is to allow Node.js to no
|
|
12
|
+
// longer be forced to treat every error message change as a semver-major
|
|
13
|
+
// change. The NodeError classes here all expose a `code` property whose
|
|
14
|
+
// value statically and permanently identifies the error. While the error
|
|
15
|
+
// message may change, the code should not.
|
|
16
|
+
function _typeof(o) {
|
|
17
|
+
"@babel/helpers - typeof";
|
|
18
|
+
|
|
19
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
20
|
+
return typeof o;
|
|
21
|
+
} : function (o) {
|
|
22
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
23
|
+
}, _typeof(o);
|
|
24
|
+
}
|
|
25
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
26
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
27
|
+
writable: false
|
|
28
|
+
});
|
|
29
|
+
return Constructor;
|
|
30
|
+
}
|
|
31
|
+
function _classCallCheck(instance, Constructor) {
|
|
32
|
+
if (!(instance instanceof Constructor)) {
|
|
33
|
+
throw new TypeError("Cannot call a class as a function");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function _inherits(subClass, superClass) {
|
|
37
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
38
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
39
|
+
}
|
|
40
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
41
|
+
constructor: {
|
|
42
|
+
value: subClass,
|
|
43
|
+
writable: true,
|
|
44
|
+
configurable: true
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(subClass, "prototype", {
|
|
48
|
+
writable: false
|
|
49
|
+
});
|
|
50
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
51
|
+
}
|
|
52
|
+
function _setPrototypeOf(o, p) {
|
|
53
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
54
|
+
o.__proto__ = p;
|
|
55
|
+
return o;
|
|
56
|
+
};
|
|
57
|
+
return _setPrototypeOf(o, p);
|
|
58
|
+
}
|
|
59
|
+
function _createSuper(Derived) {
|
|
60
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
61
|
+
return function _createSuperInternal() {
|
|
62
|
+
var Super = _getPrototypeOf(Derived),
|
|
63
|
+
result;
|
|
64
|
+
if (hasNativeReflectConstruct) {
|
|
65
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
66
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
67
|
+
} else {
|
|
68
|
+
result = Super.apply(this, arguments);
|
|
69
|
+
}
|
|
70
|
+
return _possibleConstructorReturn(this, result);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function _possibleConstructorReturn(self, call) {
|
|
74
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
75
|
+
return call;
|
|
76
|
+
} else if (call !== void 0) {
|
|
77
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
78
|
+
}
|
|
79
|
+
return _assertThisInitialized(self);
|
|
80
|
+
}
|
|
81
|
+
function _assertThisInitialized(self) {
|
|
82
|
+
if (self === void 0) {
|
|
83
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
84
|
+
}
|
|
85
|
+
return self;
|
|
86
|
+
}
|
|
87
|
+
function _isNativeReflectConstruct() {
|
|
88
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
89
|
+
if (Reflect.construct.sham) return false;
|
|
90
|
+
if (typeof Proxy === "function") return true;
|
|
91
|
+
try {
|
|
92
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
93
|
+
return true;
|
|
94
|
+
} catch (e) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function _getPrototypeOf(o) {
|
|
99
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
100
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
101
|
+
};
|
|
102
|
+
return _getPrototypeOf(o);
|
|
103
|
+
}
|
|
104
|
+
var codes = {};
|
|
105
|
+
|
|
106
|
+
// Lazy loaded
|
|
107
|
+
var assert;
|
|
108
|
+
var util;
|
|
109
|
+
function createErrorType(code, message, Base) {
|
|
110
|
+
if (!Base) {
|
|
111
|
+
Base = Error;
|
|
112
|
+
}
|
|
113
|
+
function getMessage(arg1, arg2, arg3) {
|
|
114
|
+
if (typeof message === "string") {
|
|
115
|
+
return message;
|
|
116
|
+
} else {
|
|
117
|
+
return message(arg1, arg2, arg3);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
var NodeError = /*#__PURE__*/function (_Base) {
|
|
121
|
+
_inherits(NodeError, _Base);
|
|
122
|
+
var _super = _createSuper(NodeError);
|
|
123
|
+
function NodeError(arg1, arg2, arg3) {
|
|
124
|
+
var _this;
|
|
125
|
+
_classCallCheck(this, NodeError);
|
|
126
|
+
_this = _super.call(this, getMessage(arg1, arg2, arg3));
|
|
127
|
+
_this.code = code;
|
|
128
|
+
return _this;
|
|
129
|
+
}
|
|
130
|
+
return _createClass(NodeError);
|
|
131
|
+
}(Base);
|
|
132
|
+
codes[code] = NodeError;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js
|
|
136
|
+
function oneOf(expected, thing) {
|
|
137
|
+
if (Array.isArray(expected)) {
|
|
138
|
+
var len = expected.length;
|
|
139
|
+
expected = expected.map(function (i) {
|
|
140
|
+
return String(i);
|
|
141
|
+
});
|
|
142
|
+
if (len > 2) {
|
|
143
|
+
return "one of ".concat(thing, " ").concat(expected.slice(0, len - 1).join(", "), ", or ") + expected[len - 1];
|
|
144
|
+
} else if (len === 2) {
|
|
145
|
+
return "one of ".concat(thing, " ").concat(expected[0], " or ").concat(expected[1]);
|
|
146
|
+
} else {
|
|
147
|
+
return "of ".concat(thing, " ").concat(expected[0]);
|
|
148
|
+
}
|
|
149
|
+
} else {
|
|
150
|
+
return "of ".concat(thing, " ").concat(String(expected));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
|
|
155
|
+
function startsWith(str, search, pos) {
|
|
156
|
+
return str.substr(0 , search.length) === search;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
|
|
160
|
+
function endsWith(str, search, this_len) {
|
|
161
|
+
if (this_len === undefined || this_len > str.length) {
|
|
162
|
+
this_len = str.length;
|
|
163
|
+
}
|
|
164
|
+
return str.substring(this_len - search.length, this_len) === search;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes
|
|
168
|
+
function includes(str, search, start) {
|
|
169
|
+
if (typeof start !== "number") {
|
|
170
|
+
start = 0;
|
|
171
|
+
}
|
|
172
|
+
if (start + search.length > str.length) {
|
|
173
|
+
return false;
|
|
174
|
+
} else {
|
|
175
|
+
return str.indexOf(search, start) !== -1;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
createErrorType("ERR_AMBIGUOUS_ARGUMENT", "The \"%s\" argument is ambiguous. %s", TypeError);
|
|
179
|
+
createErrorType("ERR_INVALID_ARG_TYPE", function (name, expected, actual) {
|
|
180
|
+
if (assert === undefined) assert = dew();
|
|
181
|
+
assert(typeof name === "string", "'name' must be a string");
|
|
182
|
+
|
|
183
|
+
// determiner: 'must be' or 'must not be'
|
|
184
|
+
var determiner;
|
|
185
|
+
if (typeof expected === "string" && startsWith(expected, "not ")) {
|
|
186
|
+
determiner = "must not be";
|
|
187
|
+
expected = expected.replace(/^not /, "");
|
|
188
|
+
} else {
|
|
189
|
+
determiner = "must be";
|
|
190
|
+
}
|
|
191
|
+
var msg;
|
|
192
|
+
if (endsWith(name, " argument")) {
|
|
193
|
+
// For cases like 'first argument'
|
|
194
|
+
msg = "The ".concat(name, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
|
|
195
|
+
} else {
|
|
196
|
+
var type = includes(name, ".") ? "property" : "argument";
|
|
197
|
+
msg = "The \"".concat(name, "\" ").concat(type, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// TODO(BridgeAR): Improve the output by showing `null` and similar.
|
|
201
|
+
msg += ". Received type ".concat(_typeof(actual));
|
|
202
|
+
return msg;
|
|
203
|
+
}, TypeError);
|
|
204
|
+
createErrorType("ERR_INVALID_ARG_VALUE", function (name, value) {
|
|
205
|
+
var reason = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "is invalid";
|
|
206
|
+
if (util === undefined) util = exports$j;
|
|
207
|
+
var inspected = util.inspect(value);
|
|
208
|
+
if (inspected.length > 128) {
|
|
209
|
+
inspected = "".concat(inspected.slice(0, 128), "...");
|
|
210
|
+
}
|
|
211
|
+
return "The argument '".concat(name, "' ").concat(reason, ". Received ").concat(inspected);
|
|
212
|
+
}, TypeError);
|
|
213
|
+
createErrorType("ERR_INVALID_RETURN_VALUE", function (input, name, value) {
|
|
214
|
+
var type;
|
|
215
|
+
if (value && value.constructor && value.constructor.name) {
|
|
216
|
+
type = "instance of ".concat(value.constructor.name);
|
|
217
|
+
} else {
|
|
218
|
+
type = "type ".concat(_typeof(value));
|
|
219
|
+
}
|
|
220
|
+
return "Expected ".concat(input, " to be returned from the \"").concat(name, "\"") + " function but got ".concat(type, ".");
|
|
221
|
+
}, TypeError);
|
|
222
|
+
createErrorType("ERR_MISSING_ARGS", function () {
|
|
223
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
224
|
+
args[_key] = arguments[_key];
|
|
225
|
+
}
|
|
226
|
+
if (assert === undefined) assert = dew();
|
|
227
|
+
assert(args.length > 0, "At least one arg needs to be specified");
|
|
228
|
+
var msg = "The ";
|
|
229
|
+
var len = args.length;
|
|
230
|
+
args = args.map(function (a) {
|
|
231
|
+
return "\"".concat(a, "\"");
|
|
232
|
+
});
|
|
233
|
+
switch (len) {
|
|
234
|
+
case 1:
|
|
235
|
+
msg += "".concat(args[0], " argument");
|
|
236
|
+
break;
|
|
237
|
+
case 2:
|
|
238
|
+
msg += "".concat(args[0], " and ").concat(args[1], " arguments");
|
|
239
|
+
break;
|
|
240
|
+
default:
|
|
241
|
+
msg += args.slice(0, len - 1).join(", ");
|
|
242
|
+
msg += ", and ".concat(args[len - 1], " arguments");
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
return "".concat(msg, " must be specified");
|
|
246
|
+
}, TypeError);
|
|
247
|
+
exports$i.codes = codes;
|
|
248
|
+
return exports$i;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
var exports$h = {},
|
|
252
|
+
_dewExec$g = false;
|
|
253
|
+
function dew$g() {
|
|
254
|
+
if (_dewExec$g) return exports$h;
|
|
255
|
+
_dewExec$g = true;
|
|
256
|
+
var process$1 = process;
|
|
257
|
+
function ownKeys(e, r) {
|
|
258
|
+
var t = Object.keys(e);
|
|
259
|
+
if (Object.getOwnPropertySymbols) {
|
|
260
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
261
|
+
r && (o = o.filter(function (r) {
|
|
262
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
263
|
+
})), t.push.apply(t, o);
|
|
264
|
+
}
|
|
265
|
+
return t;
|
|
266
|
+
}
|
|
267
|
+
function _objectSpread(e) {
|
|
268
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
269
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
270
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
271
|
+
_defineProperty(e, r, t[r]);
|
|
272
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
273
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
return e;
|
|
277
|
+
}
|
|
278
|
+
function _defineProperty(obj, key, value) {
|
|
279
|
+
key = _toPropertyKey(key);
|
|
280
|
+
if (key in obj) {
|
|
281
|
+
Object.defineProperty(obj, key, {
|
|
282
|
+
value: value,
|
|
283
|
+
enumerable: true,
|
|
284
|
+
configurable: true,
|
|
285
|
+
writable: true
|
|
286
|
+
});
|
|
287
|
+
} else {
|
|
288
|
+
obj[key] = value;
|
|
289
|
+
}
|
|
290
|
+
return obj;
|
|
291
|
+
}
|
|
292
|
+
function _classCallCheck(instance, Constructor) {
|
|
293
|
+
if (!(instance instanceof Constructor)) {
|
|
294
|
+
throw new TypeError("Cannot call a class as a function");
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
function _defineProperties(target, props) {
|
|
298
|
+
for (var i = 0; i < props.length; i++) {
|
|
299
|
+
var descriptor = props[i];
|
|
300
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
301
|
+
descriptor.configurable = true;
|
|
302
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
303
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
307
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
308
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
309
|
+
writable: false
|
|
310
|
+
});
|
|
311
|
+
return Constructor;
|
|
312
|
+
}
|
|
313
|
+
function _toPropertyKey(arg) {
|
|
314
|
+
var key = _toPrimitive(arg, "string");
|
|
315
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
316
|
+
}
|
|
317
|
+
function _toPrimitive(input, hint) {
|
|
318
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
319
|
+
var prim = input[Symbol.toPrimitive];
|
|
320
|
+
if (prim !== undefined) {
|
|
321
|
+
var res = prim.call(input, hint || "default");
|
|
322
|
+
if (_typeof(res) !== "object") return res;
|
|
323
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
324
|
+
}
|
|
325
|
+
return (hint === "string" ? String : Number)(input);
|
|
326
|
+
}
|
|
327
|
+
function _inherits(subClass, superClass) {
|
|
328
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
329
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
330
|
+
}
|
|
331
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
332
|
+
constructor: {
|
|
333
|
+
value: subClass,
|
|
334
|
+
writable: true,
|
|
335
|
+
configurable: true
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
Object.defineProperty(subClass, "prototype", {
|
|
339
|
+
writable: false
|
|
340
|
+
});
|
|
341
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
342
|
+
}
|
|
343
|
+
function _createSuper(Derived) {
|
|
344
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
345
|
+
return function _createSuperInternal() {
|
|
346
|
+
var Super = _getPrototypeOf(Derived),
|
|
347
|
+
result;
|
|
348
|
+
if (hasNativeReflectConstruct) {
|
|
349
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
350
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
351
|
+
} else {
|
|
352
|
+
result = Super.apply(this, arguments);
|
|
353
|
+
}
|
|
354
|
+
return _possibleConstructorReturn(this, result);
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
function _possibleConstructorReturn(self, call) {
|
|
358
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
359
|
+
return call;
|
|
360
|
+
} else if (call !== void 0) {
|
|
361
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
362
|
+
}
|
|
363
|
+
return _assertThisInitialized(self);
|
|
364
|
+
}
|
|
365
|
+
function _assertThisInitialized(self) {
|
|
366
|
+
if (self === void 0) {
|
|
367
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
368
|
+
}
|
|
369
|
+
return self;
|
|
370
|
+
}
|
|
371
|
+
function _wrapNativeSuper(Class) {
|
|
372
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
373
|
+
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
374
|
+
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
375
|
+
if (typeof Class !== "function") {
|
|
376
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
377
|
+
}
|
|
378
|
+
if (typeof _cache !== "undefined") {
|
|
379
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
380
|
+
_cache.set(Class, Wrapper);
|
|
381
|
+
}
|
|
382
|
+
function Wrapper() {
|
|
383
|
+
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
384
|
+
}
|
|
385
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
386
|
+
constructor: {
|
|
387
|
+
value: Wrapper,
|
|
388
|
+
enumerable: false,
|
|
389
|
+
writable: true,
|
|
390
|
+
configurable: true
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
return _setPrototypeOf(Wrapper, Class);
|
|
394
|
+
};
|
|
395
|
+
return _wrapNativeSuper(Class);
|
|
396
|
+
}
|
|
397
|
+
function _construct(Parent, args, Class) {
|
|
398
|
+
if (_isNativeReflectConstruct()) {
|
|
399
|
+
_construct = Reflect.construct.bind();
|
|
400
|
+
} else {
|
|
401
|
+
_construct = function _construct(Parent, args, Class) {
|
|
402
|
+
var a = [null];
|
|
403
|
+
a.push.apply(a, args);
|
|
404
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
405
|
+
var instance = new Constructor();
|
|
406
|
+
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
407
|
+
return instance;
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
return _construct.apply(null, arguments);
|
|
411
|
+
}
|
|
412
|
+
function _isNativeReflectConstruct() {
|
|
413
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
414
|
+
if (Reflect.construct.sham) return false;
|
|
415
|
+
if (typeof Proxy === "function") return true;
|
|
416
|
+
try {
|
|
417
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
418
|
+
return true;
|
|
419
|
+
} catch (e) {
|
|
420
|
+
return false;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
function _isNativeFunction(fn) {
|
|
424
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
425
|
+
}
|
|
426
|
+
function _setPrototypeOf(o, p) {
|
|
427
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
428
|
+
o.__proto__ = p;
|
|
429
|
+
return o;
|
|
430
|
+
};
|
|
431
|
+
return _setPrototypeOf(o, p);
|
|
432
|
+
}
|
|
433
|
+
function _getPrototypeOf(o) {
|
|
434
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
435
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
436
|
+
};
|
|
437
|
+
return _getPrototypeOf(o);
|
|
438
|
+
}
|
|
439
|
+
function _typeof(o) {
|
|
440
|
+
"@babel/helpers - typeof";
|
|
441
|
+
|
|
442
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
443
|
+
return typeof o;
|
|
444
|
+
} : function (o) {
|
|
445
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
446
|
+
}, _typeof(o);
|
|
447
|
+
}
|
|
448
|
+
var _require = exports$j,
|
|
449
|
+
inspect = _require.inspect;
|
|
450
|
+
var _require2 = dew$h(),
|
|
451
|
+
ERR_INVALID_ARG_TYPE = _require2.codes.ERR_INVALID_ARG_TYPE;
|
|
452
|
+
|
|
453
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
|
|
454
|
+
function endsWith(str, search, this_len) {
|
|
455
|
+
if (this_len === undefined || this_len > str.length) {
|
|
456
|
+
this_len = str.length;
|
|
457
|
+
}
|
|
458
|
+
return str.substring(this_len - search.length, this_len) === search;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat
|
|
462
|
+
function repeat(str, count) {
|
|
463
|
+
count = Math.floor(count);
|
|
464
|
+
if (str.length == 0 || count == 0) return "";
|
|
465
|
+
var maxCount = str.length * count;
|
|
466
|
+
count = Math.floor(Math.log(count) / Math.log(2));
|
|
467
|
+
while (count) {
|
|
468
|
+
str += str;
|
|
469
|
+
count--;
|
|
470
|
+
}
|
|
471
|
+
str += str.substring(0, maxCount - str.length);
|
|
472
|
+
return str;
|
|
473
|
+
}
|
|
474
|
+
var blue = "";
|
|
475
|
+
var green = "";
|
|
476
|
+
var red = "";
|
|
477
|
+
var white = "";
|
|
478
|
+
var kReadableOperator = {
|
|
479
|
+
deepStrictEqual: "Expected values to be strictly deep-equal:",
|
|
480
|
+
strictEqual: "Expected values to be strictly equal:",
|
|
481
|
+
strictEqualObject: "Expected \"actual\" to be reference-equal to \"expected\":",
|
|
482
|
+
deepEqual: "Expected values to be loosely deep-equal:",
|
|
483
|
+
equal: "Expected values to be loosely equal:",
|
|
484
|
+
notDeepStrictEqual: "Expected \"actual\" not to be strictly deep-equal to:",
|
|
485
|
+
notStrictEqual: "Expected \"actual\" to be strictly unequal to:",
|
|
486
|
+
notStrictEqualObject: "Expected \"actual\" not to be reference-equal to \"expected\":",
|
|
487
|
+
notDeepEqual: "Expected \"actual\" not to be loosely deep-equal to:",
|
|
488
|
+
notEqual: "Expected \"actual\" to be loosely unequal to:",
|
|
489
|
+
notIdentical: "Values identical but not reference-equal:"
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
// Comparing short primitives should just show === / !== instead of using the
|
|
493
|
+
// diff.
|
|
494
|
+
var kMaxShortLength = 10;
|
|
495
|
+
function copyError(source) {
|
|
496
|
+
var keys = Object.keys(source);
|
|
497
|
+
var target = Object.create(Object.getPrototypeOf(source));
|
|
498
|
+
keys.forEach(function (key) {
|
|
499
|
+
target[key] = source[key];
|
|
500
|
+
});
|
|
501
|
+
Object.defineProperty(target, "message", {
|
|
502
|
+
value: source.message
|
|
503
|
+
});
|
|
504
|
+
return target;
|
|
505
|
+
}
|
|
506
|
+
function inspectValue(val) {
|
|
507
|
+
// The util.inspect default values could be changed. This makes sure the
|
|
508
|
+
// error messages contain the necessary information nevertheless.
|
|
509
|
+
return inspect(val, {
|
|
510
|
+
compact: false,
|
|
511
|
+
customInspect: false,
|
|
512
|
+
depth: 1000,
|
|
513
|
+
maxArrayLength: Infinity,
|
|
514
|
+
// Assert compares only enumerable properties (with a few exceptions).
|
|
515
|
+
showHidden: false,
|
|
516
|
+
// Having a long line as error is better than wrapping the line for
|
|
517
|
+
// comparison for now.
|
|
518
|
+
// TODO(BridgeAR): `breakLength` should be limited as soon as soon as we
|
|
519
|
+
// have meta information about the inspected properties (i.e., know where
|
|
520
|
+
// in what line the property starts and ends).
|
|
521
|
+
breakLength: Infinity,
|
|
522
|
+
// Assert does not detect proxies currently.
|
|
523
|
+
showProxy: false,
|
|
524
|
+
sorted: true,
|
|
525
|
+
// Inspect getters as we also check them when comparing entries.
|
|
526
|
+
getters: true
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
function createErrDiff(actual, expected, operator) {
|
|
530
|
+
var other = "";
|
|
531
|
+
var res = "";
|
|
532
|
+
var lastPos = 0;
|
|
533
|
+
var end = "";
|
|
534
|
+
var skipped = false;
|
|
535
|
+
var actualInspected = inspectValue(actual);
|
|
536
|
+
var actualLines = actualInspected.split("\n");
|
|
537
|
+
var expectedLines = inspectValue(expected).split("\n");
|
|
538
|
+
var i = 0;
|
|
539
|
+
var indicator = "";
|
|
540
|
+
|
|
541
|
+
// In case both values are objects explicitly mark them as not reference equal
|
|
542
|
+
// for the `strictEqual` operator.
|
|
543
|
+
if (operator === "strictEqual" && _typeof(actual) === "object" && _typeof(expected) === "object" && actual !== null && expected !== null) {
|
|
544
|
+
operator = "strictEqualObject";
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
// If "actual" and "expected" fit on a single line and they are not strictly
|
|
548
|
+
// equal, check further special handling.
|
|
549
|
+
if (actualLines.length === 1 && expectedLines.length === 1 && actualLines[0] !== expectedLines[0]) {
|
|
550
|
+
var inputLength = actualLines[0].length + expectedLines[0].length;
|
|
551
|
+
// If the character length of "actual" and "expected" together is less than
|
|
552
|
+
// kMaxShortLength and if neither is an object and at least one of them is
|
|
553
|
+
// not `zero`, use the strict equal comparison to visualize the output.
|
|
554
|
+
if (inputLength <= kMaxShortLength) {
|
|
555
|
+
if ((_typeof(actual) !== "object" || actual === null) && (_typeof(expected) !== "object" || expected === null) && (actual !== 0 || expected !== 0)) {
|
|
556
|
+
// -0 === +0
|
|
557
|
+
return "".concat(kReadableOperator[operator], "\n\n") + "".concat(actualLines[0], " !== ").concat(expectedLines[0], "\n");
|
|
558
|
+
}
|
|
559
|
+
} else if (operator !== "strictEqualObject") {
|
|
560
|
+
// If the stderr is a tty and the input length is lower than the current
|
|
561
|
+
// columns per line, add a mismatch indicator below the output. If it is
|
|
562
|
+
// not a tty, use a default value of 80 characters.
|
|
563
|
+
var maxLength = process$1.stderr && process$1.stderr.isTTY ? process$1.stderr.columns : 80;
|
|
564
|
+
if (inputLength < maxLength) {
|
|
565
|
+
while (actualLines[0][i] === expectedLines[0][i]) {
|
|
566
|
+
i++;
|
|
567
|
+
}
|
|
568
|
+
// Ignore the first characters.
|
|
569
|
+
if (i > 2) {
|
|
570
|
+
// Add position indicator for the first mismatch in case it is a
|
|
571
|
+
// single line and the input length is less than the column length.
|
|
572
|
+
indicator = "\n ".concat(repeat(" ", i), "^");
|
|
573
|
+
i = 0;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// Remove all ending lines that match (this optimizes the output for
|
|
580
|
+
// readability by reducing the number of total changed lines).
|
|
581
|
+
var a = actualLines[actualLines.length - 1];
|
|
582
|
+
var b = expectedLines[expectedLines.length - 1];
|
|
583
|
+
while (a === b) {
|
|
584
|
+
if (i++ < 2) {
|
|
585
|
+
end = "\n ".concat(a).concat(end);
|
|
586
|
+
} else {
|
|
587
|
+
other = a;
|
|
588
|
+
}
|
|
589
|
+
actualLines.pop();
|
|
590
|
+
expectedLines.pop();
|
|
591
|
+
if (actualLines.length === 0 || expectedLines.length === 0) break;
|
|
592
|
+
a = actualLines[actualLines.length - 1];
|
|
593
|
+
b = expectedLines[expectedLines.length - 1];
|
|
594
|
+
}
|
|
595
|
+
var maxLines = Math.max(actualLines.length, expectedLines.length);
|
|
596
|
+
// Strict equal with identical objects that are not identical by reference.
|
|
597
|
+
// E.g., assert.deepStrictEqual({ a: Symbol() }, { a: Symbol() })
|
|
598
|
+
if (maxLines === 0) {
|
|
599
|
+
// We have to get the result again. The lines were all removed before.
|
|
600
|
+
var _actualLines = actualInspected.split("\n");
|
|
601
|
+
|
|
602
|
+
// Only remove lines in case it makes sense to collapse those.
|
|
603
|
+
// TODO: Accept env to always show the full error.
|
|
604
|
+
if (_actualLines.length > 30) {
|
|
605
|
+
_actualLines[26] = "".concat(blue, "...").concat(white);
|
|
606
|
+
while (_actualLines.length > 27) {
|
|
607
|
+
_actualLines.pop();
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
return "".concat(kReadableOperator.notIdentical, "\n\n").concat(_actualLines.join("\n"), "\n");
|
|
611
|
+
}
|
|
612
|
+
if (i > 3) {
|
|
613
|
+
end = "\n".concat(blue, "...").concat(white).concat(end);
|
|
614
|
+
skipped = true;
|
|
615
|
+
}
|
|
616
|
+
if (other !== "") {
|
|
617
|
+
end = "\n ".concat(other).concat(end);
|
|
618
|
+
other = "";
|
|
619
|
+
}
|
|
620
|
+
var printedLines = 0;
|
|
621
|
+
var msg = kReadableOperator[operator] + "\n".concat(green, "+ actual").concat(white, " ").concat(red, "- expected").concat(white);
|
|
622
|
+
var skippedMsg = " ".concat(blue, "...").concat(white, " Lines skipped");
|
|
623
|
+
for (i = 0; i < maxLines; i++) {
|
|
624
|
+
// Only extra expected lines exist
|
|
625
|
+
var cur = i - lastPos;
|
|
626
|
+
if (actualLines.length < i + 1) {
|
|
627
|
+
// If the last diverging line is more than one line above and the
|
|
628
|
+
// current line is at least line three, add some of the former lines and
|
|
629
|
+
// also add dots to indicate skipped entries.
|
|
630
|
+
if (cur > 1 && i > 2) {
|
|
631
|
+
if (cur > 4) {
|
|
632
|
+
res += "\n".concat(blue, "...").concat(white);
|
|
633
|
+
skipped = true;
|
|
634
|
+
} else if (cur > 3) {
|
|
635
|
+
res += "\n ".concat(expectedLines[i - 2]);
|
|
636
|
+
printedLines++;
|
|
637
|
+
}
|
|
638
|
+
res += "\n ".concat(expectedLines[i - 1]);
|
|
639
|
+
printedLines++;
|
|
640
|
+
}
|
|
641
|
+
// Mark the current line as the last diverging one.
|
|
642
|
+
lastPos = i;
|
|
643
|
+
// Add the expected line to the cache.
|
|
644
|
+
other += "\n".concat(red, "-").concat(white, " ").concat(expectedLines[i]);
|
|
645
|
+
printedLines++;
|
|
646
|
+
// Only extra actual lines exist
|
|
647
|
+
} else if (expectedLines.length < i + 1) {
|
|
648
|
+
// If the last diverging line is more than one line above and the
|
|
649
|
+
// current line is at least line three, add some of the former lines and
|
|
650
|
+
// also add dots to indicate skipped entries.
|
|
651
|
+
if (cur > 1 && i > 2) {
|
|
652
|
+
if (cur > 4) {
|
|
653
|
+
res += "\n".concat(blue, "...").concat(white);
|
|
654
|
+
skipped = true;
|
|
655
|
+
} else if (cur > 3) {
|
|
656
|
+
res += "\n ".concat(actualLines[i - 2]);
|
|
657
|
+
printedLines++;
|
|
658
|
+
}
|
|
659
|
+
res += "\n ".concat(actualLines[i - 1]);
|
|
660
|
+
printedLines++;
|
|
661
|
+
}
|
|
662
|
+
// Mark the current line as the last diverging one.
|
|
663
|
+
lastPos = i;
|
|
664
|
+
// Add the actual line to the result.
|
|
665
|
+
res += "\n".concat(green, "+").concat(white, " ").concat(actualLines[i]);
|
|
666
|
+
printedLines++;
|
|
667
|
+
// Lines diverge
|
|
668
|
+
} else {
|
|
669
|
+
var expectedLine = expectedLines[i];
|
|
670
|
+
var actualLine = actualLines[i];
|
|
671
|
+
// If the lines diverge, specifically check for lines that only diverge by
|
|
672
|
+
// a trailing comma. In that case it is actually identical and we should
|
|
673
|
+
// mark it as such.
|
|
674
|
+
var divergingLines = actualLine !== expectedLine && (!endsWith(actualLine, ",") || actualLine.slice(0, -1) !== expectedLine);
|
|
675
|
+
// If the expected line has a trailing comma but is otherwise identical,
|
|
676
|
+
// add a comma at the end of the actual line. Otherwise the output could
|
|
677
|
+
// look weird as in:
|
|
678
|
+
//
|
|
679
|
+
// [
|
|
680
|
+
// 1 // No comma at the end!
|
|
681
|
+
// + 2
|
|
682
|
+
// ]
|
|
683
|
+
//
|
|
684
|
+
if (divergingLines && endsWith(expectedLine, ",") && expectedLine.slice(0, -1) === actualLine) {
|
|
685
|
+
divergingLines = false;
|
|
686
|
+
actualLine += ",";
|
|
687
|
+
}
|
|
688
|
+
if (divergingLines) {
|
|
689
|
+
// If the last diverging line is more than one line above and the
|
|
690
|
+
// current line is at least line three, add some of the former lines and
|
|
691
|
+
// also add dots to indicate skipped entries.
|
|
692
|
+
if (cur > 1 && i > 2) {
|
|
693
|
+
if (cur > 4) {
|
|
694
|
+
res += "\n".concat(blue, "...").concat(white);
|
|
695
|
+
skipped = true;
|
|
696
|
+
} else if (cur > 3) {
|
|
697
|
+
res += "\n ".concat(actualLines[i - 2]);
|
|
698
|
+
printedLines++;
|
|
699
|
+
}
|
|
700
|
+
res += "\n ".concat(actualLines[i - 1]);
|
|
701
|
+
printedLines++;
|
|
702
|
+
}
|
|
703
|
+
// Mark the current line as the last diverging one.
|
|
704
|
+
lastPos = i;
|
|
705
|
+
// Add the actual line to the result and cache the expected diverging
|
|
706
|
+
// line so consecutive diverging lines show up as +++--- and not +-+-+-.
|
|
707
|
+
res += "\n".concat(green, "+").concat(white, " ").concat(actualLine);
|
|
708
|
+
other += "\n".concat(red, "-").concat(white, " ").concat(expectedLine);
|
|
709
|
+
printedLines += 2;
|
|
710
|
+
// Lines are identical
|
|
711
|
+
} else {
|
|
712
|
+
// Add all cached information to the result before adding other things
|
|
713
|
+
// and reset the cache.
|
|
714
|
+
res += other;
|
|
715
|
+
other = "";
|
|
716
|
+
// If the last diverging line is exactly one line above or if it is the
|
|
717
|
+
// very first line, add the line to the result.
|
|
718
|
+
if (cur === 1 || i === 0) {
|
|
719
|
+
res += "\n ".concat(actualLine);
|
|
720
|
+
printedLines++;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
// Inspected object to big (Show ~20 rows max)
|
|
725
|
+
if (printedLines > 20 && i < maxLines - 2) {
|
|
726
|
+
return "".concat(msg).concat(skippedMsg, "\n").concat(res, "\n").concat(blue, "...").concat(white).concat(other, "\n") + "".concat(blue, "...").concat(white);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
return "".concat(msg).concat(skipped ? skippedMsg : "", "\n").concat(res).concat(other).concat(end).concat(indicator);
|
|
730
|
+
}
|
|
731
|
+
var AssertionError = /*#__PURE__*/function (_Error, _inspect$custom) {
|
|
732
|
+
_inherits(AssertionError, _Error);
|
|
733
|
+
var _super = _createSuper(AssertionError);
|
|
734
|
+
function AssertionError(options) {
|
|
735
|
+
var _this;
|
|
736
|
+
_classCallCheck(this, AssertionError);
|
|
737
|
+
if (_typeof(options) !== "object" || options === null) {
|
|
738
|
+
throw new ERR_INVALID_ARG_TYPE("options", "Object", options);
|
|
739
|
+
}
|
|
740
|
+
var message = options.message,
|
|
741
|
+
operator = options.operator,
|
|
742
|
+
stackStartFn = options.stackStartFn;
|
|
743
|
+
var actual = options.actual,
|
|
744
|
+
expected = options.expected;
|
|
745
|
+
var limit = Error.stackTraceLimit;
|
|
746
|
+
Error.stackTraceLimit = 0;
|
|
747
|
+
if (message != null) {
|
|
748
|
+
_this = _super.call(this, String(message));
|
|
749
|
+
} else {
|
|
750
|
+
if (process$1.stderr && process$1.stderr.isTTY) {
|
|
751
|
+
// Reset on each call to make sure we handle dynamically set environment
|
|
752
|
+
// variables correct.
|
|
753
|
+
if (process$1.stderr && process$1.stderr.getColorDepth && process$1.stderr.getColorDepth() !== 1) {
|
|
754
|
+
blue = "\x1B[34m";
|
|
755
|
+
green = "\x1B[32m";
|
|
756
|
+
white = "\x1B[39m";
|
|
757
|
+
red = "\x1B[31m";
|
|
758
|
+
} else {
|
|
759
|
+
blue = "";
|
|
760
|
+
green = "";
|
|
761
|
+
white = "";
|
|
762
|
+
red = "";
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
// Prevent the error stack from being visible by duplicating the error
|
|
766
|
+
// in a very close way to the original in case both sides are actually
|
|
767
|
+
// instances of Error.
|
|
768
|
+
if (_typeof(actual) === "object" && actual !== null && _typeof(expected) === "object" && expected !== null && "stack" in actual && actual instanceof Error && "stack" in expected && expected instanceof Error) {
|
|
769
|
+
actual = copyError(actual);
|
|
770
|
+
expected = copyError(expected);
|
|
771
|
+
}
|
|
772
|
+
if (operator === "deepStrictEqual" || operator === "strictEqual") {
|
|
773
|
+
_this = _super.call(this, createErrDiff(actual, expected, operator));
|
|
774
|
+
} else if (operator === "notDeepStrictEqual" || operator === "notStrictEqual") {
|
|
775
|
+
// In case the objects are equal but the operator requires unequal, show
|
|
776
|
+
// the first object and say A equals B
|
|
777
|
+
var base = kReadableOperator[operator];
|
|
778
|
+
var res = inspectValue(actual).split("\n");
|
|
779
|
+
|
|
780
|
+
// In case "actual" is an object, it should not be reference equal.
|
|
781
|
+
if (operator === "notStrictEqual" && _typeof(actual) === "object" && actual !== null) {
|
|
782
|
+
base = kReadableOperator.notStrictEqualObject;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
// Only remove lines in case it makes sense to collapse those.
|
|
786
|
+
// TODO: Accept env to always show the full error.
|
|
787
|
+
if (res.length > 30) {
|
|
788
|
+
res[26] = "".concat(blue, "...").concat(white);
|
|
789
|
+
while (res.length > 27) {
|
|
790
|
+
res.pop();
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
// Only print a single input.
|
|
795
|
+
if (res.length === 1) {
|
|
796
|
+
_this = _super.call(this, "".concat(base, " ").concat(res[0]));
|
|
797
|
+
} else {
|
|
798
|
+
_this = _super.call(this, "".concat(base, "\n\n").concat(res.join("\n"), "\n"));
|
|
799
|
+
}
|
|
800
|
+
} else {
|
|
801
|
+
var _res = inspectValue(actual);
|
|
802
|
+
var other = "";
|
|
803
|
+
var knownOperators = kReadableOperator[operator];
|
|
804
|
+
if (operator === "notDeepEqual" || operator === "notEqual") {
|
|
805
|
+
_res = "".concat(kReadableOperator[operator], "\n\n").concat(_res);
|
|
806
|
+
if (_res.length > 1024) {
|
|
807
|
+
_res = "".concat(_res.slice(0, 1021), "...");
|
|
808
|
+
}
|
|
809
|
+
} else {
|
|
810
|
+
other = "".concat(inspectValue(expected));
|
|
811
|
+
if (_res.length > 512) {
|
|
812
|
+
_res = "".concat(_res.slice(0, 509), "...");
|
|
813
|
+
}
|
|
814
|
+
if (other.length > 512) {
|
|
815
|
+
other = "".concat(other.slice(0, 509), "...");
|
|
816
|
+
}
|
|
817
|
+
if (operator === "deepEqual" || operator === "equal") {
|
|
818
|
+
_res = "".concat(knownOperators, "\n\n").concat(_res, "\n\nshould equal\n\n");
|
|
819
|
+
} else {
|
|
820
|
+
other = " ".concat(operator, " ").concat(other);
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
_this = _super.call(this, "".concat(_res).concat(other));
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
Error.stackTraceLimit = limit;
|
|
827
|
+
_this.generatedMessage = !message;
|
|
828
|
+
Object.defineProperty(_assertThisInitialized(_this), "name", {
|
|
829
|
+
value: "AssertionError [ERR_ASSERTION]",
|
|
830
|
+
enumerable: false,
|
|
831
|
+
writable: true,
|
|
832
|
+
configurable: true
|
|
833
|
+
});
|
|
834
|
+
_this.code = "ERR_ASSERTION";
|
|
835
|
+
_this.actual = actual;
|
|
836
|
+
_this.expected = expected;
|
|
837
|
+
_this.operator = operator;
|
|
838
|
+
if (Error.captureStackTrace) {
|
|
839
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
840
|
+
Error.captureStackTrace(_assertThisInitialized(_this), stackStartFn);
|
|
841
|
+
}
|
|
842
|
+
// Create error message including the error code in the name.
|
|
843
|
+
_this.stack;
|
|
844
|
+
// Reset the name.
|
|
845
|
+
_this.name = "AssertionError";
|
|
846
|
+
return _possibleConstructorReturn(_this);
|
|
847
|
+
}
|
|
848
|
+
_createClass(AssertionError, [{
|
|
849
|
+
key: "toString",
|
|
850
|
+
value: function toString() {
|
|
851
|
+
return "".concat(this.name, " [").concat(this.code, "]: ").concat(this.message);
|
|
852
|
+
}
|
|
853
|
+
}, {
|
|
854
|
+
key: _inspect$custom,
|
|
855
|
+
value: function value(recurseTimes, ctx) {
|
|
856
|
+
// This limits the `actual` and `expected` property default inspection to
|
|
857
|
+
// the minimum depth. Otherwise those values would be too verbose compared
|
|
858
|
+
// to the actual error message which contains a combined view of these two
|
|
859
|
+
// input values.
|
|
860
|
+
return inspect(this, _objectSpread(_objectSpread({}, ctx), {}, {
|
|
861
|
+
customInspect: false,
|
|
862
|
+
depth: 0
|
|
863
|
+
}));
|
|
864
|
+
}
|
|
865
|
+
}]);
|
|
866
|
+
return AssertionError;
|
|
867
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error), inspect.custom);
|
|
868
|
+
exports$h = AssertionError;
|
|
869
|
+
return exports$h;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
var exports$g = {},
|
|
873
|
+
_dewExec$f = false;
|
|
874
|
+
function dew$f() {
|
|
875
|
+
if (_dewExec$f) return exports$g;
|
|
876
|
+
_dewExec$f = true;
|
|
877
|
+
var toStr = Object.prototype.toString;
|
|
878
|
+
exports$g = function isArguments(value) {
|
|
879
|
+
var str = toStr.call(value);
|
|
880
|
+
var isArgs = str === "[object Arguments]";
|
|
881
|
+
if (!isArgs) {
|
|
882
|
+
isArgs = str !== "[object Array]" && value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && toStr.call(value.callee) === "[object Function]";
|
|
883
|
+
}
|
|
884
|
+
return isArgs;
|
|
885
|
+
};
|
|
886
|
+
return exports$g;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
var exports$f = {},
|
|
890
|
+
_dewExec$e = false;
|
|
891
|
+
function dew$e() {
|
|
892
|
+
if (_dewExec$e) return exports$f;
|
|
893
|
+
_dewExec$e = true;
|
|
894
|
+
var keysShim;
|
|
895
|
+
if (!Object.keys) {
|
|
896
|
+
// modified from https://github.com/es-shims/es5-shim
|
|
897
|
+
var has = Object.prototype.hasOwnProperty;
|
|
898
|
+
var toStr = Object.prototype.toString;
|
|
899
|
+
var isArgs = dew$f(); // eslint-disable-line global-require
|
|
900
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
901
|
+
var hasDontEnumBug = !isEnumerable.call({
|
|
902
|
+
toString: null
|
|
903
|
+
}, "toString");
|
|
904
|
+
var hasProtoEnumBug = isEnumerable.call(function () {}, "prototype");
|
|
905
|
+
var dontEnums = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"];
|
|
906
|
+
var equalsConstructorPrototype = function (o) {
|
|
907
|
+
var ctor = o.constructor;
|
|
908
|
+
return ctor && ctor.prototype === o;
|
|
909
|
+
};
|
|
910
|
+
var excludedKeys = {
|
|
911
|
+
$applicationCache: true,
|
|
912
|
+
$console: true,
|
|
913
|
+
$external: true,
|
|
914
|
+
$frame: true,
|
|
915
|
+
$frameElement: true,
|
|
916
|
+
$frames: true,
|
|
917
|
+
$innerHeight: true,
|
|
918
|
+
$innerWidth: true,
|
|
919
|
+
$onmozfullscreenchange: true,
|
|
920
|
+
$onmozfullscreenerror: true,
|
|
921
|
+
$outerHeight: true,
|
|
922
|
+
$outerWidth: true,
|
|
923
|
+
$pageXOffset: true,
|
|
924
|
+
$pageYOffset: true,
|
|
925
|
+
$parent: true,
|
|
926
|
+
$scrollLeft: true,
|
|
927
|
+
$scrollTop: true,
|
|
928
|
+
$scrollX: true,
|
|
929
|
+
$scrollY: true,
|
|
930
|
+
$self: true,
|
|
931
|
+
$webkitIndexedDB: true,
|
|
932
|
+
$webkitStorageInfo: true,
|
|
933
|
+
$window: true
|
|
934
|
+
};
|
|
935
|
+
var hasAutomationEqualityBug = function () {
|
|
936
|
+
/* global window */
|
|
937
|
+
if (typeof window === "undefined") {
|
|
938
|
+
return false;
|
|
939
|
+
}
|
|
940
|
+
for (var k in window) {
|
|
941
|
+
try {
|
|
942
|
+
if (!excludedKeys["$" + k] && has.call(window, k) && window[k] !== null && typeof window[k] === "object") {
|
|
943
|
+
try {
|
|
944
|
+
equalsConstructorPrototype(window[k]);
|
|
945
|
+
} catch (e) {
|
|
946
|
+
return true;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
} catch (e) {
|
|
950
|
+
return true;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
return false;
|
|
954
|
+
}();
|
|
955
|
+
var equalsConstructorPrototypeIfNotBuggy = function (o) {
|
|
956
|
+
/* global window */
|
|
957
|
+
if (typeof window === "undefined" || !hasAutomationEqualityBug) {
|
|
958
|
+
return equalsConstructorPrototype(o);
|
|
959
|
+
}
|
|
960
|
+
try {
|
|
961
|
+
return equalsConstructorPrototype(o);
|
|
962
|
+
} catch (e) {
|
|
963
|
+
return false;
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
keysShim = function keys(object) {
|
|
967
|
+
var isObject = object !== null && typeof object === "object";
|
|
968
|
+
var isFunction = toStr.call(object) === "[object Function]";
|
|
969
|
+
var isArguments = isArgs(object);
|
|
970
|
+
var isString = isObject && toStr.call(object) === "[object String]";
|
|
971
|
+
var theKeys = [];
|
|
972
|
+
if (!isObject && !isFunction && !isArguments) {
|
|
973
|
+
throw new TypeError("Object.keys called on a non-object");
|
|
974
|
+
}
|
|
975
|
+
var skipProto = hasProtoEnumBug && isFunction;
|
|
976
|
+
if (isString && object.length > 0 && !has.call(object, 0)) {
|
|
977
|
+
for (var i = 0; i < object.length; ++i) {
|
|
978
|
+
theKeys.push(String(i));
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
if (isArguments && object.length > 0) {
|
|
982
|
+
for (var j = 0; j < object.length; ++j) {
|
|
983
|
+
theKeys.push(String(j));
|
|
984
|
+
}
|
|
985
|
+
} else {
|
|
986
|
+
for (var name in object) {
|
|
987
|
+
if (!(skipProto && name === "prototype") && has.call(object, name)) {
|
|
988
|
+
theKeys.push(String(name));
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
if (hasDontEnumBug) {
|
|
993
|
+
var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
|
|
994
|
+
for (var k = 0; k < dontEnums.length; ++k) {
|
|
995
|
+
if (!(skipConstructor && dontEnums[k] === "constructor") && has.call(object, dontEnums[k])) {
|
|
996
|
+
theKeys.push(dontEnums[k]);
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
return theKeys;
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
exports$f = keysShim;
|
|
1004
|
+
return exports$f;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
var exports$e = {},
|
|
1008
|
+
_dewExec$d = false;
|
|
1009
|
+
function dew$d() {
|
|
1010
|
+
if (_dewExec$d) return exports$e;
|
|
1011
|
+
_dewExec$d = true;
|
|
1012
|
+
var slice = Array.prototype.slice;
|
|
1013
|
+
var isArgs = dew$f();
|
|
1014
|
+
var origKeys = Object.keys;
|
|
1015
|
+
var keysShim = origKeys ? function keys(o) {
|
|
1016
|
+
return origKeys(o);
|
|
1017
|
+
} : dew$e();
|
|
1018
|
+
var originalKeys = Object.keys;
|
|
1019
|
+
keysShim.shim = function shimObjectKeys() {
|
|
1020
|
+
if (Object.keys) {
|
|
1021
|
+
var keysWorksWithArguments = function () {
|
|
1022
|
+
// Safari 5.0 bug
|
|
1023
|
+
var args = Object.keys(arguments);
|
|
1024
|
+
return args && args.length === arguments.length;
|
|
1025
|
+
}(1, 2);
|
|
1026
|
+
if (!keysWorksWithArguments) {
|
|
1027
|
+
Object.keys = function keys(object) {
|
|
1028
|
+
// eslint-disable-line func-name-matching
|
|
1029
|
+
if (isArgs(object)) {
|
|
1030
|
+
return originalKeys(slice.call(object));
|
|
1031
|
+
}
|
|
1032
|
+
return originalKeys(object);
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
} else {
|
|
1036
|
+
Object.keys = keysShim;
|
|
1037
|
+
}
|
|
1038
|
+
return Object.keys || keysShim;
|
|
1039
|
+
};
|
|
1040
|
+
exports$e = keysShim;
|
|
1041
|
+
return exports$e;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
var exports$d = {},
|
|
1045
|
+
_dewExec$c = false;
|
|
1046
|
+
function dew$c() {
|
|
1047
|
+
if (_dewExec$c) return exports$d;
|
|
1048
|
+
_dewExec$c = true;
|
|
1049
|
+
// modified from https://github.com/es-shims/es6-shim
|
|
1050
|
+
var objectKeys = dew$d();
|
|
1051
|
+
var hasSymbols = dew$i()();
|
|
1052
|
+
var callBound = dew$j();
|
|
1053
|
+
var toObject = Object;
|
|
1054
|
+
var $push = callBound("Array.prototype.push");
|
|
1055
|
+
var $propIsEnumerable = callBound("Object.prototype.propertyIsEnumerable");
|
|
1056
|
+
var originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null;
|
|
1057
|
+
|
|
1058
|
+
// eslint-disable-next-line no-unused-vars
|
|
1059
|
+
exports$d = function assign(target, source1) {
|
|
1060
|
+
if (target == null) {
|
|
1061
|
+
throw new TypeError("target must be an object");
|
|
1062
|
+
}
|
|
1063
|
+
var to = toObject(target); // step 1
|
|
1064
|
+
if (arguments.length === 1) {
|
|
1065
|
+
return to; // step 2
|
|
1066
|
+
}
|
|
1067
|
+
for (var s = 1; s < arguments.length; ++s) {
|
|
1068
|
+
var from = toObject(arguments[s]); // step 3.a.i
|
|
1069
|
+
|
|
1070
|
+
// step 3.a.ii:
|
|
1071
|
+
var keys = objectKeys(from);
|
|
1072
|
+
var getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols);
|
|
1073
|
+
if (getSymbols) {
|
|
1074
|
+
var syms = getSymbols(from);
|
|
1075
|
+
for (var j = 0; j < syms.length; ++j) {
|
|
1076
|
+
var key = syms[j];
|
|
1077
|
+
if ($propIsEnumerable(from, key)) {
|
|
1078
|
+
$push(keys, key);
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
// step 3.a.iii:
|
|
1084
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
1085
|
+
var nextKey = keys[i];
|
|
1086
|
+
if ($propIsEnumerable(from, nextKey)) {
|
|
1087
|
+
// step 3.a.iii.2
|
|
1088
|
+
var propValue = from[nextKey]; // step 3.a.iii.2.a
|
|
1089
|
+
to[nextKey] = propValue; // step 3.a.iii.2.b
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
return to; // step 4
|
|
1094
|
+
};
|
|
1095
|
+
return exports$d;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
var exports$c = {},
|
|
1099
|
+
_dewExec$b = false;
|
|
1100
|
+
function dew$b() {
|
|
1101
|
+
if (_dewExec$b) return exports$c;
|
|
1102
|
+
_dewExec$b = true;
|
|
1103
|
+
var implementation = dew$c();
|
|
1104
|
+
var lacksProperEnumerationOrder = function () {
|
|
1105
|
+
if (!Object.assign) {
|
|
1106
|
+
return false;
|
|
1107
|
+
}
|
|
1108
|
+
/*
|
|
1109
|
+
* v8, specifically in node 4.x, has a bug with incorrect property enumeration order
|
|
1110
|
+
* note: this does not detect the bug unless there's 20 characters
|
|
1111
|
+
*/
|
|
1112
|
+
var str = "abcdefghijklmnopqrst";
|
|
1113
|
+
var letters = str.split("");
|
|
1114
|
+
var map = {};
|
|
1115
|
+
for (var i = 0; i < letters.length; ++i) {
|
|
1116
|
+
map[letters[i]] = letters[i];
|
|
1117
|
+
}
|
|
1118
|
+
var obj = Object.assign({}, map);
|
|
1119
|
+
var actual = "";
|
|
1120
|
+
for (var k in obj) {
|
|
1121
|
+
actual += k;
|
|
1122
|
+
}
|
|
1123
|
+
return str !== actual;
|
|
1124
|
+
};
|
|
1125
|
+
var assignHasPendingExceptions = function () {
|
|
1126
|
+
if (!Object.assign || !Object.preventExtensions) {
|
|
1127
|
+
return false;
|
|
1128
|
+
}
|
|
1129
|
+
/*
|
|
1130
|
+
* Firefox 37 still has "pending exception" logic in its Object.assign implementation,
|
|
1131
|
+
* which is 72% slower than our shim, and Firefox 40's native implementation.
|
|
1132
|
+
*/
|
|
1133
|
+
var thrower = Object.preventExtensions({
|
|
1134
|
+
1: 2
|
|
1135
|
+
});
|
|
1136
|
+
try {
|
|
1137
|
+
Object.assign(thrower, "xy");
|
|
1138
|
+
} catch (e) {
|
|
1139
|
+
return thrower[1] === "y";
|
|
1140
|
+
}
|
|
1141
|
+
return false;
|
|
1142
|
+
};
|
|
1143
|
+
exports$c = function getPolyfill() {
|
|
1144
|
+
if (!Object.assign) {
|
|
1145
|
+
return implementation;
|
|
1146
|
+
}
|
|
1147
|
+
if (lacksProperEnumerationOrder()) {
|
|
1148
|
+
return implementation;
|
|
1149
|
+
}
|
|
1150
|
+
if (assignHasPendingExceptions()) {
|
|
1151
|
+
return implementation;
|
|
1152
|
+
}
|
|
1153
|
+
return Object.assign;
|
|
1154
|
+
};
|
|
1155
|
+
return exports$c;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
var exports$b = {},
|
|
1159
|
+
_dewExec$a = false;
|
|
1160
|
+
function dew$a() {
|
|
1161
|
+
if (_dewExec$a) return exports$b;
|
|
1162
|
+
_dewExec$a = true;
|
|
1163
|
+
var numberIsNaN = function (value) {
|
|
1164
|
+
return value !== value;
|
|
1165
|
+
};
|
|
1166
|
+
exports$b = function is(a, b) {
|
|
1167
|
+
if (a === 0 && b === 0) {
|
|
1168
|
+
return 1 / a === 1 / b;
|
|
1169
|
+
}
|
|
1170
|
+
if (a === b) {
|
|
1171
|
+
return true;
|
|
1172
|
+
}
|
|
1173
|
+
if (numberIsNaN(a) && numberIsNaN(b)) {
|
|
1174
|
+
return true;
|
|
1175
|
+
}
|
|
1176
|
+
return false;
|
|
1177
|
+
};
|
|
1178
|
+
return exports$b;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
var exports$a = {},
|
|
1182
|
+
_dewExec$9 = false;
|
|
1183
|
+
function dew$9() {
|
|
1184
|
+
if (_dewExec$9) return exports$a;
|
|
1185
|
+
_dewExec$9 = true;
|
|
1186
|
+
var implementation = dew$a();
|
|
1187
|
+
exports$a = function getPolyfill() {
|
|
1188
|
+
return typeof Object.is === "function" ? Object.is : implementation;
|
|
1189
|
+
};
|
|
1190
|
+
return exports$a;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
var exports$9 = {},
|
|
1194
|
+
_dewExec$8 = false;
|
|
1195
|
+
function dew$8() {
|
|
1196
|
+
if (_dewExec$8) return exports$9;
|
|
1197
|
+
_dewExec$8 = true;
|
|
1198
|
+
var keys = dew$d();
|
|
1199
|
+
var hasSymbols = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
|
|
1200
|
+
var toStr = Object.prototype.toString;
|
|
1201
|
+
var concat = Array.prototype.concat;
|
|
1202
|
+
var defineDataProperty = dew$k();
|
|
1203
|
+
var isFunction = function (fn) {
|
|
1204
|
+
return typeof fn === "function" && toStr.call(fn) === "[object Function]";
|
|
1205
|
+
};
|
|
1206
|
+
var supportsDescriptors = dew$l()();
|
|
1207
|
+
var defineProperty = function (object, name, value, predicate) {
|
|
1208
|
+
if (name in object) {
|
|
1209
|
+
if (predicate === true) {
|
|
1210
|
+
if (object[name] === value) {
|
|
1211
|
+
return;
|
|
1212
|
+
}
|
|
1213
|
+
} else if (!isFunction(predicate) || !predicate()) {
|
|
1214
|
+
return;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
if (supportsDescriptors) {
|
|
1218
|
+
defineDataProperty(object, name, value, true);
|
|
1219
|
+
} else {
|
|
1220
|
+
defineDataProperty(object, name, value);
|
|
1221
|
+
}
|
|
1222
|
+
};
|
|
1223
|
+
var defineProperties = function (object, map) {
|
|
1224
|
+
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
1225
|
+
var props = keys(map);
|
|
1226
|
+
if (hasSymbols) {
|
|
1227
|
+
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
1228
|
+
}
|
|
1229
|
+
for (var i = 0; i < props.length; i += 1) {
|
|
1230
|
+
defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
|
|
1231
|
+
}
|
|
1232
|
+
};
|
|
1233
|
+
defineProperties.supportsDescriptors = !!supportsDescriptors;
|
|
1234
|
+
exports$9 = defineProperties;
|
|
1235
|
+
return exports$9;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
var exports$8 = {},
|
|
1239
|
+
_dewExec$7 = false;
|
|
1240
|
+
function dew$7() {
|
|
1241
|
+
if (_dewExec$7) return exports$8;
|
|
1242
|
+
_dewExec$7 = true;
|
|
1243
|
+
var getPolyfill = dew$9();
|
|
1244
|
+
var define = dew$8();
|
|
1245
|
+
exports$8 = function shimObjectIs() {
|
|
1246
|
+
var polyfill = getPolyfill();
|
|
1247
|
+
define(Object, {
|
|
1248
|
+
is: polyfill
|
|
1249
|
+
}, {
|
|
1250
|
+
is: function testObjectIs() {
|
|
1251
|
+
return Object.is !== polyfill;
|
|
1252
|
+
}
|
|
1253
|
+
});
|
|
1254
|
+
return polyfill;
|
|
1255
|
+
};
|
|
1256
|
+
return exports$8;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
var exports$7 = {},
|
|
1260
|
+
_dewExec$6 = false;
|
|
1261
|
+
function dew$6() {
|
|
1262
|
+
if (_dewExec$6) return exports$7;
|
|
1263
|
+
_dewExec$6 = true;
|
|
1264
|
+
var define = dew$8();
|
|
1265
|
+
var callBind = dew$m();
|
|
1266
|
+
var implementation = dew$a();
|
|
1267
|
+
var getPolyfill = dew$9();
|
|
1268
|
+
var shim = dew$7();
|
|
1269
|
+
var polyfill = callBind(getPolyfill(), Object);
|
|
1270
|
+
define(polyfill, {
|
|
1271
|
+
getPolyfill: getPolyfill,
|
|
1272
|
+
implementation: implementation,
|
|
1273
|
+
shim: shim
|
|
1274
|
+
});
|
|
1275
|
+
exports$7 = polyfill;
|
|
1276
|
+
return exports$7;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
var exports$6 = {},
|
|
1280
|
+
_dewExec$5 = false;
|
|
1281
|
+
function dew$5() {
|
|
1282
|
+
if (_dewExec$5) return exports$6;
|
|
1283
|
+
_dewExec$5 = true;
|
|
1284
|
+
/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */
|
|
1285
|
+
|
|
1286
|
+
exports$6 = function isNaN(value) {
|
|
1287
|
+
return value !== value;
|
|
1288
|
+
};
|
|
1289
|
+
return exports$6;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
var exports$5 = {},
|
|
1293
|
+
_dewExec$4 = false;
|
|
1294
|
+
function dew$4() {
|
|
1295
|
+
if (_dewExec$4) return exports$5;
|
|
1296
|
+
_dewExec$4 = true;
|
|
1297
|
+
var implementation = dew$5();
|
|
1298
|
+
exports$5 = function getPolyfill() {
|
|
1299
|
+
if (Number.isNaN && Number.isNaN(NaN) && !Number.isNaN("a")) {
|
|
1300
|
+
return Number.isNaN;
|
|
1301
|
+
}
|
|
1302
|
+
return implementation;
|
|
1303
|
+
};
|
|
1304
|
+
return exports$5;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
var exports$4 = {},
|
|
1308
|
+
_dewExec$3 = false;
|
|
1309
|
+
function dew$3() {
|
|
1310
|
+
if (_dewExec$3) return exports$4;
|
|
1311
|
+
_dewExec$3 = true;
|
|
1312
|
+
var define = dew$8();
|
|
1313
|
+
var getPolyfill = dew$4();
|
|
1314
|
+
|
|
1315
|
+
/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */
|
|
1316
|
+
|
|
1317
|
+
exports$4 = function shimNumberIsNaN() {
|
|
1318
|
+
var polyfill = getPolyfill();
|
|
1319
|
+
define(Number, {
|
|
1320
|
+
isNaN: polyfill
|
|
1321
|
+
}, {
|
|
1322
|
+
isNaN: function testIsNaN() {
|
|
1323
|
+
return Number.isNaN !== polyfill;
|
|
1324
|
+
}
|
|
1325
|
+
});
|
|
1326
|
+
return polyfill;
|
|
1327
|
+
};
|
|
1328
|
+
return exports$4;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
var exports$3 = {},
|
|
1332
|
+
_dewExec$2 = false;
|
|
1333
|
+
function dew$2() {
|
|
1334
|
+
if (_dewExec$2) return exports$3;
|
|
1335
|
+
_dewExec$2 = true;
|
|
1336
|
+
var callBind = dew$m();
|
|
1337
|
+
var define = dew$8();
|
|
1338
|
+
var implementation = dew$5();
|
|
1339
|
+
var getPolyfill = dew$4();
|
|
1340
|
+
var shim = dew$3();
|
|
1341
|
+
var polyfill = callBind(getPolyfill(), Number);
|
|
1342
|
+
|
|
1343
|
+
/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */
|
|
1344
|
+
|
|
1345
|
+
define(polyfill, {
|
|
1346
|
+
getPolyfill: getPolyfill,
|
|
1347
|
+
implementation: implementation,
|
|
1348
|
+
shim: shim
|
|
1349
|
+
});
|
|
1350
|
+
exports$3 = polyfill;
|
|
1351
|
+
return exports$3;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
var exports$2 = {},
|
|
1355
|
+
_dewExec$1 = false;
|
|
1356
|
+
function dew$1() {
|
|
1357
|
+
if (_dewExec$1) return exports$2;
|
|
1358
|
+
_dewExec$1 = true;
|
|
1359
|
+
function _slicedToArray(arr, i) {
|
|
1360
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
1361
|
+
}
|
|
1362
|
+
function _nonIterableRest() {
|
|
1363
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1364
|
+
}
|
|
1365
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
1366
|
+
if (!o) return;
|
|
1367
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1368
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1369
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1370
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1371
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1372
|
+
}
|
|
1373
|
+
function _arrayLikeToArray(arr, len) {
|
|
1374
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
1375
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
1376
|
+
return arr2;
|
|
1377
|
+
}
|
|
1378
|
+
function _iterableToArrayLimit(r, l) {
|
|
1379
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
1380
|
+
if (null != t) {
|
|
1381
|
+
var e,
|
|
1382
|
+
n,
|
|
1383
|
+
i,
|
|
1384
|
+
u,
|
|
1385
|
+
a = [],
|
|
1386
|
+
f = !0,
|
|
1387
|
+
o = !1;
|
|
1388
|
+
try {
|
|
1389
|
+
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
1390
|
+
} catch (r) {
|
|
1391
|
+
o = !0, n = r;
|
|
1392
|
+
} finally {
|
|
1393
|
+
try {
|
|
1394
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
1395
|
+
} finally {
|
|
1396
|
+
if (o) throw n;
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
return a;
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
function _arrayWithHoles(arr) {
|
|
1403
|
+
if (Array.isArray(arr)) return arr;
|
|
1404
|
+
}
|
|
1405
|
+
function _typeof(o) {
|
|
1406
|
+
"@babel/helpers - typeof";
|
|
1407
|
+
|
|
1408
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
1409
|
+
return typeof o;
|
|
1410
|
+
} : function (o) {
|
|
1411
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
1412
|
+
}, _typeof(o);
|
|
1413
|
+
}
|
|
1414
|
+
var regexFlagsSupported = /a/g.flags !== undefined;
|
|
1415
|
+
var arrayFromSet = function arrayFromSet(set) {
|
|
1416
|
+
var array = [];
|
|
1417
|
+
set.forEach(function (value) {
|
|
1418
|
+
return array.push(value);
|
|
1419
|
+
});
|
|
1420
|
+
return array;
|
|
1421
|
+
};
|
|
1422
|
+
var arrayFromMap = function arrayFromMap(map) {
|
|
1423
|
+
var array = [];
|
|
1424
|
+
map.forEach(function (value, key) {
|
|
1425
|
+
return array.push([key, value]);
|
|
1426
|
+
});
|
|
1427
|
+
return array;
|
|
1428
|
+
};
|
|
1429
|
+
var objectIs = Object.is ? Object.is : dew$6();
|
|
1430
|
+
var objectGetOwnPropertySymbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols : function () {
|
|
1431
|
+
return [];
|
|
1432
|
+
};
|
|
1433
|
+
var numberIsNaN = Number.isNaN ? Number.isNaN : dew$2();
|
|
1434
|
+
function uncurryThis(f) {
|
|
1435
|
+
return f.call.bind(f);
|
|
1436
|
+
}
|
|
1437
|
+
var hasOwnProperty = uncurryThis(Object.prototype.hasOwnProperty);
|
|
1438
|
+
var propertyIsEnumerable = uncurryThis(Object.prototype.propertyIsEnumerable);
|
|
1439
|
+
var objectToString = uncurryThis(Object.prototype.toString);
|
|
1440
|
+
var _require$types = exports$j.types,
|
|
1441
|
+
isAnyArrayBuffer = _require$types.isAnyArrayBuffer,
|
|
1442
|
+
isArrayBufferView = _require$types.isArrayBufferView,
|
|
1443
|
+
isDate = _require$types.isDate,
|
|
1444
|
+
isMap = _require$types.isMap,
|
|
1445
|
+
isRegExp = _require$types.isRegExp,
|
|
1446
|
+
isSet = _require$types.isSet,
|
|
1447
|
+
isNativeError = _require$types.isNativeError,
|
|
1448
|
+
isBoxedPrimitive = _require$types.isBoxedPrimitive,
|
|
1449
|
+
isNumberObject = _require$types.isNumberObject,
|
|
1450
|
+
isStringObject = _require$types.isStringObject,
|
|
1451
|
+
isBooleanObject = _require$types.isBooleanObject,
|
|
1452
|
+
isBigIntObject = _require$types.isBigIntObject,
|
|
1453
|
+
isSymbolObject = _require$types.isSymbolObject,
|
|
1454
|
+
isFloat32Array = _require$types.isFloat32Array,
|
|
1455
|
+
isFloat64Array = _require$types.isFloat64Array;
|
|
1456
|
+
function isNonIndex(key) {
|
|
1457
|
+
if (key.length === 0 || key.length > 10) return true;
|
|
1458
|
+
for (var i = 0; i < key.length; i++) {
|
|
1459
|
+
var code = key.charCodeAt(i);
|
|
1460
|
+
if (code < 48 || code > 57) return true;
|
|
1461
|
+
}
|
|
1462
|
+
// The maximum size for an array is 2 ** 32 -1.
|
|
1463
|
+
return key.length === 10 && key >= Math.pow(2, 32);
|
|
1464
|
+
}
|
|
1465
|
+
function getOwnNonIndexProperties(value) {
|
|
1466
|
+
return Object.keys(value).filter(isNonIndex).concat(objectGetOwnPropertySymbols(value).filter(Object.prototype.propertyIsEnumerable.bind(value)));
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
// Taken from https://github.com/feross/buffer/blob/680e9e5e488f22aac27599a57dc844a6315928dd/index.js
|
|
1470
|
+
// original notice:
|
|
1471
|
+
/*!
|
|
1472
|
+
* The buffer module from node.js, for the browser.
|
|
1473
|
+
*
|
|
1474
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
1475
|
+
* @license MIT
|
|
1476
|
+
*/
|
|
1477
|
+
function compare(a, b) {
|
|
1478
|
+
if (a === b) {
|
|
1479
|
+
return 0;
|
|
1480
|
+
}
|
|
1481
|
+
var x = a.length;
|
|
1482
|
+
var y = b.length;
|
|
1483
|
+
for (var i = 0, len = Math.min(x, y); i < len; ++i) {
|
|
1484
|
+
if (a[i] !== b[i]) {
|
|
1485
|
+
x = a[i];
|
|
1486
|
+
y = b[i];
|
|
1487
|
+
break;
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
if (x < y) {
|
|
1491
|
+
return -1;
|
|
1492
|
+
}
|
|
1493
|
+
if (y < x) {
|
|
1494
|
+
return 1;
|
|
1495
|
+
}
|
|
1496
|
+
return 0;
|
|
1497
|
+
}
|
|
1498
|
+
var kStrict = true;
|
|
1499
|
+
var kLoose = false;
|
|
1500
|
+
var kNoIterator = 0;
|
|
1501
|
+
var kIsArray = 1;
|
|
1502
|
+
var kIsSet = 2;
|
|
1503
|
+
var kIsMap = 3;
|
|
1504
|
+
|
|
1505
|
+
// Check if they have the same source and flags
|
|
1506
|
+
function areSimilarRegExps(a, b) {
|
|
1507
|
+
return regexFlagsSupported ? a.source === b.source && a.flags === b.flags : RegExp.prototype.toString.call(a) === RegExp.prototype.toString.call(b);
|
|
1508
|
+
}
|
|
1509
|
+
function areSimilarFloatArrays(a, b) {
|
|
1510
|
+
if (a.byteLength !== b.byteLength) {
|
|
1511
|
+
return false;
|
|
1512
|
+
}
|
|
1513
|
+
for (var offset = 0; offset < a.byteLength; offset++) {
|
|
1514
|
+
if (a[offset] !== b[offset]) {
|
|
1515
|
+
return false;
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
return true;
|
|
1519
|
+
}
|
|
1520
|
+
function areSimilarTypedArrays(a, b) {
|
|
1521
|
+
if (a.byteLength !== b.byteLength) {
|
|
1522
|
+
return false;
|
|
1523
|
+
}
|
|
1524
|
+
return compare(new Uint8Array(a.buffer, a.byteOffset, a.byteLength), new Uint8Array(b.buffer, b.byteOffset, b.byteLength)) === 0;
|
|
1525
|
+
}
|
|
1526
|
+
function areEqualArrayBuffers(buf1, buf2) {
|
|
1527
|
+
return buf1.byteLength === buf2.byteLength && compare(new Uint8Array(buf1), new Uint8Array(buf2)) === 0;
|
|
1528
|
+
}
|
|
1529
|
+
function isEqualBoxedPrimitive(val1, val2) {
|
|
1530
|
+
if (isNumberObject(val1)) {
|
|
1531
|
+
return isNumberObject(val2) && objectIs(Number.prototype.valueOf.call(val1), Number.prototype.valueOf.call(val2));
|
|
1532
|
+
}
|
|
1533
|
+
if (isStringObject(val1)) {
|
|
1534
|
+
return isStringObject(val2) && String.prototype.valueOf.call(val1) === String.prototype.valueOf.call(val2);
|
|
1535
|
+
}
|
|
1536
|
+
if (isBooleanObject(val1)) {
|
|
1537
|
+
return isBooleanObject(val2) && Boolean.prototype.valueOf.call(val1) === Boolean.prototype.valueOf.call(val2);
|
|
1538
|
+
}
|
|
1539
|
+
if (isBigIntObject(val1)) {
|
|
1540
|
+
return isBigIntObject(val2) && BigInt.prototype.valueOf.call(val1) === BigInt.prototype.valueOf.call(val2);
|
|
1541
|
+
}
|
|
1542
|
+
return isSymbolObject(val2) && Symbol.prototype.valueOf.call(val1) === Symbol.prototype.valueOf.call(val2);
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
// Notes: Type tags are historical [[Class]] properties that can be set by
|
|
1546
|
+
// FunctionTemplate::SetClassName() in C++ or Symbol.toStringTag in JS
|
|
1547
|
+
// and retrieved using Object.prototype.toString.call(obj) in JS
|
|
1548
|
+
// See https://tc39.github.io/ecma262/#sec-object.prototype.tostring
|
|
1549
|
+
// for a list of tags pre-defined in the spec.
|
|
1550
|
+
// There are some unspecified tags in the wild too (e.g. typed array tags).
|
|
1551
|
+
// Since tags can be altered, they only serve fast failures
|
|
1552
|
+
//
|
|
1553
|
+
// Typed arrays and buffers are checked by comparing the content in their
|
|
1554
|
+
// underlying ArrayBuffer. This optimization requires that it's
|
|
1555
|
+
// reasonable to interpret their underlying memory in the same way,
|
|
1556
|
+
// which is checked by comparing their type tags.
|
|
1557
|
+
// (e.g. a Uint8Array and a Uint16Array with the same memory content
|
|
1558
|
+
// could still be different because they will be interpreted differently).
|
|
1559
|
+
//
|
|
1560
|
+
// For strict comparison, objects should have
|
|
1561
|
+
// a) The same built-in type tags
|
|
1562
|
+
// b) The same prototypes.
|
|
1563
|
+
|
|
1564
|
+
function innerDeepEqual(val1, val2, strict, memos) {
|
|
1565
|
+
// All identical values are equivalent, as determined by ===.
|
|
1566
|
+
if (val1 === val2) {
|
|
1567
|
+
if (val1 !== 0) return true;
|
|
1568
|
+
return strict ? objectIs(val1, val2) : true;
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
// Check more closely if val1 and val2 are equal.
|
|
1572
|
+
if (strict) {
|
|
1573
|
+
if (_typeof(val1) !== "object") {
|
|
1574
|
+
return typeof val1 === "number" && numberIsNaN(val1) && numberIsNaN(val2);
|
|
1575
|
+
}
|
|
1576
|
+
if (_typeof(val2) !== "object" || val1 === null || val2 === null) {
|
|
1577
|
+
return false;
|
|
1578
|
+
}
|
|
1579
|
+
if (Object.getPrototypeOf(val1) !== Object.getPrototypeOf(val2)) {
|
|
1580
|
+
return false;
|
|
1581
|
+
}
|
|
1582
|
+
} else {
|
|
1583
|
+
if (val1 === null || _typeof(val1) !== "object") {
|
|
1584
|
+
if (val2 === null || _typeof(val2) !== "object") {
|
|
1585
|
+
// eslint-disable-next-line eqeqeq
|
|
1586
|
+
return val1 == val2;
|
|
1587
|
+
}
|
|
1588
|
+
return false;
|
|
1589
|
+
}
|
|
1590
|
+
if (val2 === null || _typeof(val2) !== "object") {
|
|
1591
|
+
return false;
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
var val1Tag = objectToString(val1);
|
|
1595
|
+
var val2Tag = objectToString(val2);
|
|
1596
|
+
if (val1Tag !== val2Tag) {
|
|
1597
|
+
return false;
|
|
1598
|
+
}
|
|
1599
|
+
if (Array.isArray(val1)) {
|
|
1600
|
+
// Check for sparse arrays and general fast path
|
|
1601
|
+
if (val1.length !== val2.length) {
|
|
1602
|
+
return false;
|
|
1603
|
+
}
|
|
1604
|
+
var keys1 = getOwnNonIndexProperties(val1);
|
|
1605
|
+
var keys2 = getOwnNonIndexProperties(val2);
|
|
1606
|
+
if (keys1.length !== keys2.length) {
|
|
1607
|
+
return false;
|
|
1608
|
+
}
|
|
1609
|
+
return keyCheck(val1, val2, strict, memos, kIsArray, keys1);
|
|
1610
|
+
}
|
|
1611
|
+
// [browserify] This triggers on certain types in IE (Map/Set) so we don't
|
|
1612
|
+
// wan't to early return out of the rest of the checks. However we can check
|
|
1613
|
+
// if the second value is one of these values and the first isn't.
|
|
1614
|
+
if (val1Tag === "[object Object]") {
|
|
1615
|
+
// return keyCheck(val1, val2, strict, memos, kNoIterator);
|
|
1616
|
+
if (!isMap(val1) && isMap(val2) || !isSet(val1) && isSet(val2)) {
|
|
1617
|
+
return false;
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
if (isDate(val1)) {
|
|
1621
|
+
if (!isDate(val2) || Date.prototype.getTime.call(val1) !== Date.prototype.getTime.call(val2)) {
|
|
1622
|
+
return false;
|
|
1623
|
+
}
|
|
1624
|
+
} else if (isRegExp(val1)) {
|
|
1625
|
+
if (!isRegExp(val2) || !areSimilarRegExps(val1, val2)) {
|
|
1626
|
+
return false;
|
|
1627
|
+
}
|
|
1628
|
+
} else if (isNativeError(val1) || val1 instanceof Error) {
|
|
1629
|
+
// Do not compare the stack as it might differ even though the error itself
|
|
1630
|
+
// is otherwise identical.
|
|
1631
|
+
if (val1.message !== val2.message || val1.name !== val2.name) {
|
|
1632
|
+
return false;
|
|
1633
|
+
}
|
|
1634
|
+
} else if (isArrayBufferView(val1)) {
|
|
1635
|
+
if (!strict && (isFloat32Array(val1) || isFloat64Array(val1))) {
|
|
1636
|
+
if (!areSimilarFloatArrays(val1, val2)) {
|
|
1637
|
+
return false;
|
|
1638
|
+
}
|
|
1639
|
+
} else if (!areSimilarTypedArrays(val1, val2)) {
|
|
1640
|
+
return false;
|
|
1641
|
+
}
|
|
1642
|
+
// Buffer.compare returns true, so val1.length === val2.length. If they both
|
|
1643
|
+
// only contain numeric keys, we don't need to exam further than checking
|
|
1644
|
+
// the symbols.
|
|
1645
|
+
var _keys = getOwnNonIndexProperties(val1);
|
|
1646
|
+
var _keys2 = getOwnNonIndexProperties(val2);
|
|
1647
|
+
if (_keys.length !== _keys2.length) {
|
|
1648
|
+
return false;
|
|
1649
|
+
}
|
|
1650
|
+
return keyCheck(val1, val2, strict, memos, kNoIterator, _keys);
|
|
1651
|
+
} else if (isSet(val1)) {
|
|
1652
|
+
if (!isSet(val2) || val1.size !== val2.size) {
|
|
1653
|
+
return false;
|
|
1654
|
+
}
|
|
1655
|
+
return keyCheck(val1, val2, strict, memos, kIsSet);
|
|
1656
|
+
} else if (isMap(val1)) {
|
|
1657
|
+
if (!isMap(val2) || val1.size !== val2.size) {
|
|
1658
|
+
return false;
|
|
1659
|
+
}
|
|
1660
|
+
return keyCheck(val1, val2, strict, memos, kIsMap);
|
|
1661
|
+
} else if (isAnyArrayBuffer(val1)) {
|
|
1662
|
+
if (!areEqualArrayBuffers(val1, val2)) {
|
|
1663
|
+
return false;
|
|
1664
|
+
}
|
|
1665
|
+
} else if (isBoxedPrimitive(val1) && !isEqualBoxedPrimitive(val1, val2)) {
|
|
1666
|
+
return false;
|
|
1667
|
+
}
|
|
1668
|
+
return keyCheck(val1, val2, strict, memos, kNoIterator);
|
|
1669
|
+
}
|
|
1670
|
+
function getEnumerables(val, keys) {
|
|
1671
|
+
return keys.filter(function (k) {
|
|
1672
|
+
return propertyIsEnumerable(val, k);
|
|
1673
|
+
});
|
|
1674
|
+
}
|
|
1675
|
+
function keyCheck(val1, val2, strict, memos, iterationType, aKeys) {
|
|
1676
|
+
// For all remaining Object pairs, including Array, objects and Maps,
|
|
1677
|
+
// equivalence is determined by having:
|
|
1678
|
+
// a) The same number of owned enumerable properties
|
|
1679
|
+
// b) The same set of keys/indexes (although not necessarily the same order)
|
|
1680
|
+
// c) Equivalent values for every corresponding key/index
|
|
1681
|
+
// d) For Sets and Maps, equal contents
|
|
1682
|
+
// Note: this accounts for both named and indexed properties on Arrays.
|
|
1683
|
+
if (arguments.length === 5) {
|
|
1684
|
+
aKeys = Object.keys(val1);
|
|
1685
|
+
var bKeys = Object.keys(val2);
|
|
1686
|
+
|
|
1687
|
+
// The pair must have the same number of owned properties.
|
|
1688
|
+
if (aKeys.length !== bKeys.length) {
|
|
1689
|
+
return false;
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
// Cheap key test
|
|
1694
|
+
var i = 0;
|
|
1695
|
+
for (; i < aKeys.length; i++) {
|
|
1696
|
+
if (!hasOwnProperty(val2, aKeys[i])) {
|
|
1697
|
+
return false;
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
if (strict && arguments.length === 5) {
|
|
1701
|
+
var symbolKeysA = objectGetOwnPropertySymbols(val1);
|
|
1702
|
+
if (symbolKeysA.length !== 0) {
|
|
1703
|
+
var count = 0;
|
|
1704
|
+
for (i = 0; i < symbolKeysA.length; i++) {
|
|
1705
|
+
var key = symbolKeysA[i];
|
|
1706
|
+
if (propertyIsEnumerable(val1, key)) {
|
|
1707
|
+
if (!propertyIsEnumerable(val2, key)) {
|
|
1708
|
+
return false;
|
|
1709
|
+
}
|
|
1710
|
+
aKeys.push(key);
|
|
1711
|
+
count++;
|
|
1712
|
+
} else if (propertyIsEnumerable(val2, key)) {
|
|
1713
|
+
return false;
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
var symbolKeysB = objectGetOwnPropertySymbols(val2);
|
|
1717
|
+
if (symbolKeysA.length !== symbolKeysB.length && getEnumerables(val2, symbolKeysB).length !== count) {
|
|
1718
|
+
return false;
|
|
1719
|
+
}
|
|
1720
|
+
} else {
|
|
1721
|
+
var _symbolKeysB = objectGetOwnPropertySymbols(val2);
|
|
1722
|
+
if (_symbolKeysB.length !== 0 && getEnumerables(val2, _symbolKeysB).length !== 0) {
|
|
1723
|
+
return false;
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
if (aKeys.length === 0 && (iterationType === kNoIterator || iterationType === kIsArray && val1.length === 0 || val1.size === 0)) {
|
|
1728
|
+
return true;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
// Use memos to handle cycles.
|
|
1732
|
+
if (memos === undefined) {
|
|
1733
|
+
memos = {
|
|
1734
|
+
val1: new Map(),
|
|
1735
|
+
val2: new Map(),
|
|
1736
|
+
position: 0
|
|
1737
|
+
};
|
|
1738
|
+
} else {
|
|
1739
|
+
// We prevent up to two map.has(x) calls by directly retrieving the value
|
|
1740
|
+
// and checking for undefined. The map can only contain numbers, so it is
|
|
1741
|
+
// safe to check for undefined only.
|
|
1742
|
+
var val2MemoA = memos.val1.get(val1);
|
|
1743
|
+
if (val2MemoA !== undefined) {
|
|
1744
|
+
var val2MemoB = memos.val2.get(val2);
|
|
1745
|
+
if (val2MemoB !== undefined) {
|
|
1746
|
+
return val2MemoA === val2MemoB;
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
memos.position++;
|
|
1750
|
+
}
|
|
1751
|
+
memos.val1.set(val1, memos.position);
|
|
1752
|
+
memos.val2.set(val2, memos.position);
|
|
1753
|
+
var areEq = objEquiv(val1, val2, strict, aKeys, memos, iterationType);
|
|
1754
|
+
memos.val1.delete(val1);
|
|
1755
|
+
memos.val2.delete(val2);
|
|
1756
|
+
return areEq;
|
|
1757
|
+
}
|
|
1758
|
+
function setHasEqualElement(set, val1, strict, memo) {
|
|
1759
|
+
// Go looking.
|
|
1760
|
+
var setValues = arrayFromSet(set);
|
|
1761
|
+
for (var i = 0; i < setValues.length; i++) {
|
|
1762
|
+
var val2 = setValues[i];
|
|
1763
|
+
if (innerDeepEqual(val1, val2, strict, memo)) {
|
|
1764
|
+
// Remove the matching element to make sure we do not check that again.
|
|
1765
|
+
set.delete(val2);
|
|
1766
|
+
return true;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
return false;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#Loose_equality_using
|
|
1773
|
+
// Sadly it is not possible to detect corresponding values properly in case the
|
|
1774
|
+
// type is a string, number, bigint or boolean. The reason is that those values
|
|
1775
|
+
// can match lots of different string values (e.g., 1n == '+00001').
|
|
1776
|
+
function findLooseMatchingPrimitives(prim) {
|
|
1777
|
+
switch (_typeof(prim)) {
|
|
1778
|
+
case "undefined":
|
|
1779
|
+
return null;
|
|
1780
|
+
case "object":
|
|
1781
|
+
// Only pass in null as object!
|
|
1782
|
+
return undefined;
|
|
1783
|
+
case "symbol":
|
|
1784
|
+
return false;
|
|
1785
|
+
case "string":
|
|
1786
|
+
prim = +prim;
|
|
1787
|
+
// Loose equal entries exist only if the string is possible to convert to
|
|
1788
|
+
// a regular number and not NaN.
|
|
1789
|
+
// Fall through
|
|
1790
|
+
case "number":
|
|
1791
|
+
if (numberIsNaN(prim)) {
|
|
1792
|
+
return false;
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
return true;
|
|
1796
|
+
}
|
|
1797
|
+
function setMightHaveLoosePrim(a, b, prim) {
|
|
1798
|
+
var altValue = findLooseMatchingPrimitives(prim);
|
|
1799
|
+
if (altValue != null) return altValue;
|
|
1800
|
+
return b.has(altValue) && !a.has(altValue);
|
|
1801
|
+
}
|
|
1802
|
+
function mapMightHaveLoosePrim(a, b, prim, item, memo) {
|
|
1803
|
+
var altValue = findLooseMatchingPrimitives(prim);
|
|
1804
|
+
if (altValue != null) {
|
|
1805
|
+
return altValue;
|
|
1806
|
+
}
|
|
1807
|
+
var curB = b.get(altValue);
|
|
1808
|
+
if (curB === undefined && !b.has(altValue) || !innerDeepEqual(item, curB, false, memo)) {
|
|
1809
|
+
return false;
|
|
1810
|
+
}
|
|
1811
|
+
return !a.has(altValue) && innerDeepEqual(item, curB, false, memo);
|
|
1812
|
+
}
|
|
1813
|
+
function setEquiv(a, b, strict, memo) {
|
|
1814
|
+
// This is a lazily initiated Set of entries which have to be compared
|
|
1815
|
+
// pairwise.
|
|
1816
|
+
var set = null;
|
|
1817
|
+
var aValues = arrayFromSet(a);
|
|
1818
|
+
for (var i = 0; i < aValues.length; i++) {
|
|
1819
|
+
var val = aValues[i];
|
|
1820
|
+
// Note: Checking for the objects first improves the performance for object
|
|
1821
|
+
// heavy sets but it is a minor slow down for primitives. As they are fast
|
|
1822
|
+
// to check this improves the worst case scenario instead.
|
|
1823
|
+
if (_typeof(val) === "object" && val !== null) {
|
|
1824
|
+
if (set === null) {
|
|
1825
|
+
set = new Set();
|
|
1826
|
+
}
|
|
1827
|
+
// If the specified value doesn't exist in the second set its an not null
|
|
1828
|
+
// object (or non strict only: a not matching primitive) we'll need to go
|
|
1829
|
+
// hunting for something thats deep-(strict-)equal to it. To make this
|
|
1830
|
+
// O(n log n) complexity we have to copy these values in a new set first.
|
|
1831
|
+
set.add(val);
|
|
1832
|
+
} else if (!b.has(val)) {
|
|
1833
|
+
if (strict) return false;
|
|
1834
|
+
|
|
1835
|
+
// Fast path to detect missing string, symbol, undefined and null values.
|
|
1836
|
+
if (!setMightHaveLoosePrim(a, b, val)) {
|
|
1837
|
+
return false;
|
|
1838
|
+
}
|
|
1839
|
+
if (set === null) {
|
|
1840
|
+
set = new Set();
|
|
1841
|
+
}
|
|
1842
|
+
set.add(val);
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
if (set !== null) {
|
|
1846
|
+
var bValues = arrayFromSet(b);
|
|
1847
|
+
for (var _i = 0; _i < bValues.length; _i++) {
|
|
1848
|
+
var _val = bValues[_i];
|
|
1849
|
+
// We have to check if a primitive value is already
|
|
1850
|
+
// matching and only if it's not, go hunting for it.
|
|
1851
|
+
if (_typeof(_val) === "object" && _val !== null) {
|
|
1852
|
+
if (!setHasEqualElement(set, _val, strict, memo)) return false;
|
|
1853
|
+
} else if (!strict && !a.has(_val) && !setHasEqualElement(set, _val, strict, memo)) {
|
|
1854
|
+
return false;
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
return set.size === 0;
|
|
1858
|
+
}
|
|
1859
|
+
return true;
|
|
1860
|
+
}
|
|
1861
|
+
function mapHasEqualEntry(set, map, key1, item1, strict, memo) {
|
|
1862
|
+
// To be able to handle cases like:
|
|
1863
|
+
// Map([[{}, 'a'], [{}, 'b']]) vs Map([[{}, 'b'], [{}, 'a']])
|
|
1864
|
+
// ... we need to consider *all* matching keys, not just the first we find.
|
|
1865
|
+
var setValues = arrayFromSet(set);
|
|
1866
|
+
for (var i = 0; i < setValues.length; i++) {
|
|
1867
|
+
var key2 = setValues[i];
|
|
1868
|
+
if (innerDeepEqual(key1, key2, strict, memo) && innerDeepEqual(item1, map.get(key2), strict, memo)) {
|
|
1869
|
+
set.delete(key2);
|
|
1870
|
+
return true;
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
return false;
|
|
1874
|
+
}
|
|
1875
|
+
function mapEquiv(a, b, strict, memo) {
|
|
1876
|
+
var set = null;
|
|
1877
|
+
var aEntries = arrayFromMap(a);
|
|
1878
|
+
for (var i = 0; i < aEntries.length; i++) {
|
|
1879
|
+
var _aEntries$i = _slicedToArray(aEntries[i], 2),
|
|
1880
|
+
key = _aEntries$i[0],
|
|
1881
|
+
item1 = _aEntries$i[1];
|
|
1882
|
+
if (_typeof(key) === "object" && key !== null) {
|
|
1883
|
+
if (set === null) {
|
|
1884
|
+
set = new Set();
|
|
1885
|
+
}
|
|
1886
|
+
set.add(key);
|
|
1887
|
+
} else {
|
|
1888
|
+
// By directly retrieving the value we prevent another b.has(key) check in
|
|
1889
|
+
// almost all possible cases.
|
|
1890
|
+
var item2 = b.get(key);
|
|
1891
|
+
if (item2 === undefined && !b.has(key) || !innerDeepEqual(item1, item2, strict, memo)) {
|
|
1892
|
+
if (strict) return false;
|
|
1893
|
+
// Fast path to detect missing string, symbol, undefined and null
|
|
1894
|
+
// keys.
|
|
1895
|
+
if (!mapMightHaveLoosePrim(a, b, key, item1, memo)) return false;
|
|
1896
|
+
if (set === null) {
|
|
1897
|
+
set = new Set();
|
|
1898
|
+
}
|
|
1899
|
+
set.add(key);
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
if (set !== null) {
|
|
1904
|
+
var bEntries = arrayFromMap(b);
|
|
1905
|
+
for (var _i2 = 0; _i2 < bEntries.length; _i2++) {
|
|
1906
|
+
var _bEntries$_i = _slicedToArray(bEntries[_i2], 2),
|
|
1907
|
+
_key = _bEntries$_i[0],
|
|
1908
|
+
item = _bEntries$_i[1];
|
|
1909
|
+
if (_typeof(_key) === "object" && _key !== null) {
|
|
1910
|
+
if (!mapHasEqualEntry(set, a, _key, item, strict, memo)) return false;
|
|
1911
|
+
} else if (!strict && (!a.has(_key) || !innerDeepEqual(a.get(_key), item, false, memo)) && !mapHasEqualEntry(set, a, _key, item, false, memo)) {
|
|
1912
|
+
return false;
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
return set.size === 0;
|
|
1916
|
+
}
|
|
1917
|
+
return true;
|
|
1918
|
+
}
|
|
1919
|
+
function objEquiv(a, b, strict, keys, memos, iterationType) {
|
|
1920
|
+
// Sets and maps don't have their entries accessible via normal object
|
|
1921
|
+
// properties.
|
|
1922
|
+
var i = 0;
|
|
1923
|
+
if (iterationType === kIsSet) {
|
|
1924
|
+
if (!setEquiv(a, b, strict, memos)) {
|
|
1925
|
+
return false;
|
|
1926
|
+
}
|
|
1927
|
+
} else if (iterationType === kIsMap) {
|
|
1928
|
+
if (!mapEquiv(a, b, strict, memos)) {
|
|
1929
|
+
return false;
|
|
1930
|
+
}
|
|
1931
|
+
} else if (iterationType === kIsArray) {
|
|
1932
|
+
for (; i < a.length; i++) {
|
|
1933
|
+
if (hasOwnProperty(a, i)) {
|
|
1934
|
+
if (!hasOwnProperty(b, i) || !innerDeepEqual(a[i], b[i], strict, memos)) {
|
|
1935
|
+
return false;
|
|
1936
|
+
}
|
|
1937
|
+
} else if (hasOwnProperty(b, i)) {
|
|
1938
|
+
return false;
|
|
1939
|
+
} else {
|
|
1940
|
+
// Array is sparse.
|
|
1941
|
+
var keysA = Object.keys(a);
|
|
1942
|
+
for (; i < keysA.length; i++) {
|
|
1943
|
+
var key = keysA[i];
|
|
1944
|
+
if (!hasOwnProperty(b, key) || !innerDeepEqual(a[key], b[key], strict, memos)) {
|
|
1945
|
+
return false;
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
if (keysA.length !== Object.keys(b).length) {
|
|
1949
|
+
return false;
|
|
1950
|
+
}
|
|
1951
|
+
return true;
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
// The pair must have equivalent values for every corresponding key.
|
|
1957
|
+
// Possibly expensive deep test:
|
|
1958
|
+
for (i = 0; i < keys.length; i++) {
|
|
1959
|
+
var _key2 = keys[i];
|
|
1960
|
+
if (!innerDeepEqual(a[_key2], b[_key2], strict, memos)) {
|
|
1961
|
+
return false;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
return true;
|
|
1965
|
+
}
|
|
1966
|
+
function isDeepEqual(val1, val2) {
|
|
1967
|
+
return innerDeepEqual(val1, val2, kLoose);
|
|
1968
|
+
}
|
|
1969
|
+
function isDeepStrictEqual(val1, val2) {
|
|
1970
|
+
return innerDeepEqual(val1, val2, kStrict);
|
|
1971
|
+
}
|
|
1972
|
+
exports$2 = {
|
|
1973
|
+
isDeepEqual: isDeepEqual,
|
|
1974
|
+
isDeepStrictEqual: isDeepStrictEqual
|
|
1975
|
+
};
|
|
1976
|
+
return exports$2;
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
var exports$1 = {},
|
|
1980
|
+
_dewExec = false;
|
|
1981
|
+
function dew() {
|
|
1982
|
+
if (_dewExec) return exports$1;
|
|
1983
|
+
_dewExec = true;
|
|
1984
|
+
var process$1 = process;
|
|
1985
|
+
function _typeof(o) {
|
|
1986
|
+
"@babel/helpers - typeof";
|
|
1987
|
+
|
|
1988
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
1989
|
+
return typeof o;
|
|
1990
|
+
} : function (o) {
|
|
1991
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
1992
|
+
}, _typeof(o);
|
|
1993
|
+
}
|
|
1994
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
1995
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
1996
|
+
writable: false
|
|
1997
|
+
});
|
|
1998
|
+
return Constructor;
|
|
1999
|
+
}
|
|
2000
|
+
function _classCallCheck(instance, Constructor) {
|
|
2001
|
+
if (!(instance instanceof Constructor)) {
|
|
2002
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
var _require = dew$h(),
|
|
2006
|
+
_require$codes = _require.codes,
|
|
2007
|
+
ERR_AMBIGUOUS_ARGUMENT = _require$codes.ERR_AMBIGUOUS_ARGUMENT,
|
|
2008
|
+
ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,
|
|
2009
|
+
ERR_INVALID_ARG_VALUE = _require$codes.ERR_INVALID_ARG_VALUE,
|
|
2010
|
+
ERR_INVALID_RETURN_VALUE = _require$codes.ERR_INVALID_RETURN_VALUE,
|
|
2011
|
+
ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS;
|
|
2012
|
+
var AssertionError = dew$g();
|
|
2013
|
+
var _require2 = exports$j,
|
|
2014
|
+
inspect = _require2.inspect;
|
|
2015
|
+
var _require$types = exports$j.types,
|
|
2016
|
+
isPromise = _require$types.isPromise,
|
|
2017
|
+
isRegExp = _require$types.isRegExp;
|
|
2018
|
+
var objectAssign = dew$b()();
|
|
2019
|
+
var objectIs = dew$9()();
|
|
2020
|
+
var RegExpPrototypeTest = dew$j()("RegExp.prototype.test");
|
|
2021
|
+
var isDeepEqual;
|
|
2022
|
+
var isDeepStrictEqual;
|
|
2023
|
+
function lazyLoadComparison() {
|
|
2024
|
+
var comparison = dew$1();
|
|
2025
|
+
isDeepEqual = comparison.isDeepEqual;
|
|
2026
|
+
isDeepStrictEqual = comparison.isDeepStrictEqual;
|
|
2027
|
+
}
|
|
2028
|
+
var warned = false;
|
|
2029
|
+
|
|
2030
|
+
// The assert module provides functions that throw
|
|
2031
|
+
// AssertionError's when particular conditions are not met. The
|
|
2032
|
+
// assert module must conform to the following interface.
|
|
2033
|
+
|
|
2034
|
+
var assert = exports$1 = ok;
|
|
2035
|
+
var NO_EXCEPTION_SENTINEL = {};
|
|
2036
|
+
|
|
2037
|
+
// All of the following functions must throw an AssertionError
|
|
2038
|
+
// when a corresponding condition is not met, with a message that
|
|
2039
|
+
// may be undefined if not provided. All assertion methods provide
|
|
2040
|
+
// both the actual and expected values to the assertion error for
|
|
2041
|
+
// display purposes.
|
|
2042
|
+
|
|
2043
|
+
function innerFail(obj) {
|
|
2044
|
+
if (obj.message instanceof Error) throw obj.message;
|
|
2045
|
+
throw new AssertionError(obj);
|
|
2046
|
+
}
|
|
2047
|
+
function fail(actual, expected, message, operator, stackStartFn) {
|
|
2048
|
+
var argsLen = arguments.length;
|
|
2049
|
+
var internalMessage;
|
|
2050
|
+
if (argsLen === 0) {
|
|
2051
|
+
internalMessage = "Failed";
|
|
2052
|
+
} else if (argsLen === 1) {
|
|
2053
|
+
message = actual;
|
|
2054
|
+
actual = undefined;
|
|
2055
|
+
} else {
|
|
2056
|
+
if (warned === false) {
|
|
2057
|
+
warned = true;
|
|
2058
|
+
var warn = process$1.emitWarning ? process$1.emitWarning : console.warn.bind(console);
|
|
2059
|
+
warn("assert.fail() with more than one argument is deprecated. " + "Please use assert.strictEqual() instead or only pass a message.", "DeprecationWarning", "DEP0094");
|
|
2060
|
+
}
|
|
2061
|
+
if (argsLen === 2) operator = "!=";
|
|
2062
|
+
}
|
|
2063
|
+
if (message instanceof Error) throw message;
|
|
2064
|
+
var errArgs = {
|
|
2065
|
+
actual: actual,
|
|
2066
|
+
expected: expected,
|
|
2067
|
+
operator: operator === undefined ? "fail" : operator,
|
|
2068
|
+
stackStartFn: stackStartFn || fail
|
|
2069
|
+
};
|
|
2070
|
+
if (message !== undefined) {
|
|
2071
|
+
errArgs.message = message;
|
|
2072
|
+
}
|
|
2073
|
+
var err = new AssertionError(errArgs);
|
|
2074
|
+
if (internalMessage) {
|
|
2075
|
+
err.message = internalMessage;
|
|
2076
|
+
err.generatedMessage = true;
|
|
2077
|
+
}
|
|
2078
|
+
throw err;
|
|
2079
|
+
}
|
|
2080
|
+
assert.fail = fail;
|
|
2081
|
+
|
|
2082
|
+
// The AssertionError is defined in internal/error.
|
|
2083
|
+
assert.AssertionError = AssertionError;
|
|
2084
|
+
function innerOk(fn, argLen, value, message) {
|
|
2085
|
+
if (!value) {
|
|
2086
|
+
var generatedMessage = false;
|
|
2087
|
+
if (argLen === 0) {
|
|
2088
|
+
generatedMessage = true;
|
|
2089
|
+
message = "No value argument passed to `assert.ok()`";
|
|
2090
|
+
} else if (message instanceof Error) {
|
|
2091
|
+
throw message;
|
|
2092
|
+
}
|
|
2093
|
+
var err = new AssertionError({
|
|
2094
|
+
actual: value,
|
|
2095
|
+
expected: true,
|
|
2096
|
+
message: message,
|
|
2097
|
+
operator: "==",
|
|
2098
|
+
stackStartFn: fn
|
|
2099
|
+
});
|
|
2100
|
+
err.generatedMessage = generatedMessage;
|
|
2101
|
+
throw err;
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
// Pure assertion tests whether a value is truthy, as determined
|
|
2106
|
+
// by !!value.
|
|
2107
|
+
function ok() {
|
|
2108
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2109
|
+
args[_key] = arguments[_key];
|
|
2110
|
+
}
|
|
2111
|
+
innerOk.apply(void 0, [ok, args.length].concat(args));
|
|
2112
|
+
}
|
|
2113
|
+
assert.ok = ok;
|
|
2114
|
+
|
|
2115
|
+
// The equality assertion tests shallow, coercive equality with ==.
|
|
2116
|
+
/* eslint-disable no-restricted-properties */
|
|
2117
|
+
assert.equal = function equal(actual, expected, message) {
|
|
2118
|
+
if (arguments.length < 2) {
|
|
2119
|
+
throw new ERR_MISSING_ARGS("actual", "expected");
|
|
2120
|
+
}
|
|
2121
|
+
// eslint-disable-next-line eqeqeq
|
|
2122
|
+
if (actual != expected) {
|
|
2123
|
+
innerFail({
|
|
2124
|
+
actual: actual,
|
|
2125
|
+
expected: expected,
|
|
2126
|
+
message: message,
|
|
2127
|
+
operator: "==",
|
|
2128
|
+
stackStartFn: equal
|
|
2129
|
+
});
|
|
2130
|
+
}
|
|
2131
|
+
};
|
|
2132
|
+
|
|
2133
|
+
// The non-equality assertion tests for whether two objects are not
|
|
2134
|
+
// equal with !=.
|
|
2135
|
+
assert.notEqual = function notEqual(actual, expected, message) {
|
|
2136
|
+
if (arguments.length < 2) {
|
|
2137
|
+
throw new ERR_MISSING_ARGS("actual", "expected");
|
|
2138
|
+
}
|
|
2139
|
+
// eslint-disable-next-line eqeqeq
|
|
2140
|
+
if (actual == expected) {
|
|
2141
|
+
innerFail({
|
|
2142
|
+
actual: actual,
|
|
2143
|
+
expected: expected,
|
|
2144
|
+
message: message,
|
|
2145
|
+
operator: "!=",
|
|
2146
|
+
stackStartFn: notEqual
|
|
2147
|
+
});
|
|
2148
|
+
}
|
|
2149
|
+
};
|
|
2150
|
+
|
|
2151
|
+
// The equivalence assertion tests a deep equality relation.
|
|
2152
|
+
assert.deepEqual = function deepEqual(actual, expected, message) {
|
|
2153
|
+
if (arguments.length < 2) {
|
|
2154
|
+
throw new ERR_MISSING_ARGS("actual", "expected");
|
|
2155
|
+
}
|
|
2156
|
+
if (isDeepEqual === undefined) lazyLoadComparison();
|
|
2157
|
+
if (!isDeepEqual(actual, expected)) {
|
|
2158
|
+
innerFail({
|
|
2159
|
+
actual: actual,
|
|
2160
|
+
expected: expected,
|
|
2161
|
+
message: message,
|
|
2162
|
+
operator: "deepEqual",
|
|
2163
|
+
stackStartFn: deepEqual
|
|
2164
|
+
});
|
|
2165
|
+
}
|
|
2166
|
+
};
|
|
2167
|
+
|
|
2168
|
+
// The non-equivalence assertion tests for any deep inequality.
|
|
2169
|
+
assert.notDeepEqual = function notDeepEqual(actual, expected, message) {
|
|
2170
|
+
if (arguments.length < 2) {
|
|
2171
|
+
throw new ERR_MISSING_ARGS("actual", "expected");
|
|
2172
|
+
}
|
|
2173
|
+
if (isDeepEqual === undefined) lazyLoadComparison();
|
|
2174
|
+
if (isDeepEqual(actual, expected)) {
|
|
2175
|
+
innerFail({
|
|
2176
|
+
actual: actual,
|
|
2177
|
+
expected: expected,
|
|
2178
|
+
message: message,
|
|
2179
|
+
operator: "notDeepEqual",
|
|
2180
|
+
stackStartFn: notDeepEqual
|
|
2181
|
+
});
|
|
2182
|
+
}
|
|
2183
|
+
};
|
|
2184
|
+
/* eslint-enable */
|
|
2185
|
+
|
|
2186
|
+
assert.deepStrictEqual = function deepStrictEqual(actual, expected, message) {
|
|
2187
|
+
if (arguments.length < 2) {
|
|
2188
|
+
throw new ERR_MISSING_ARGS("actual", "expected");
|
|
2189
|
+
}
|
|
2190
|
+
if (isDeepEqual === undefined) lazyLoadComparison();
|
|
2191
|
+
if (!isDeepStrictEqual(actual, expected)) {
|
|
2192
|
+
innerFail({
|
|
2193
|
+
actual: actual,
|
|
2194
|
+
expected: expected,
|
|
2195
|
+
message: message,
|
|
2196
|
+
operator: "deepStrictEqual",
|
|
2197
|
+
stackStartFn: deepStrictEqual
|
|
2198
|
+
});
|
|
2199
|
+
}
|
|
2200
|
+
};
|
|
2201
|
+
assert.notDeepStrictEqual = notDeepStrictEqual;
|
|
2202
|
+
function notDeepStrictEqual(actual, expected, message) {
|
|
2203
|
+
if (arguments.length < 2) {
|
|
2204
|
+
throw new ERR_MISSING_ARGS("actual", "expected");
|
|
2205
|
+
}
|
|
2206
|
+
if (isDeepEqual === undefined) lazyLoadComparison();
|
|
2207
|
+
if (isDeepStrictEqual(actual, expected)) {
|
|
2208
|
+
innerFail({
|
|
2209
|
+
actual: actual,
|
|
2210
|
+
expected: expected,
|
|
2211
|
+
message: message,
|
|
2212
|
+
operator: "notDeepStrictEqual",
|
|
2213
|
+
stackStartFn: notDeepStrictEqual
|
|
2214
|
+
});
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
assert.strictEqual = function strictEqual(actual, expected, message) {
|
|
2218
|
+
if (arguments.length < 2) {
|
|
2219
|
+
throw new ERR_MISSING_ARGS("actual", "expected");
|
|
2220
|
+
}
|
|
2221
|
+
if (!objectIs(actual, expected)) {
|
|
2222
|
+
innerFail({
|
|
2223
|
+
actual: actual,
|
|
2224
|
+
expected: expected,
|
|
2225
|
+
message: message,
|
|
2226
|
+
operator: "strictEqual",
|
|
2227
|
+
stackStartFn: strictEqual
|
|
2228
|
+
});
|
|
2229
|
+
}
|
|
2230
|
+
};
|
|
2231
|
+
assert.notStrictEqual = function notStrictEqual(actual, expected, message) {
|
|
2232
|
+
if (arguments.length < 2) {
|
|
2233
|
+
throw new ERR_MISSING_ARGS("actual", "expected");
|
|
2234
|
+
}
|
|
2235
|
+
if (objectIs(actual, expected)) {
|
|
2236
|
+
innerFail({
|
|
2237
|
+
actual: actual,
|
|
2238
|
+
expected: expected,
|
|
2239
|
+
message: message,
|
|
2240
|
+
operator: "notStrictEqual",
|
|
2241
|
+
stackStartFn: notStrictEqual
|
|
2242
|
+
});
|
|
2243
|
+
}
|
|
2244
|
+
};
|
|
2245
|
+
var Comparison = /*#__PURE__*/_createClass(function Comparison(obj, keys, actual) {
|
|
2246
|
+
var _this = this;
|
|
2247
|
+
_classCallCheck(this, Comparison);
|
|
2248
|
+
keys.forEach(function (key) {
|
|
2249
|
+
if (key in obj) {
|
|
2250
|
+
if (actual !== undefined && typeof actual[key] === "string" && isRegExp(obj[key]) && RegExpPrototypeTest(obj[key], actual[key])) {
|
|
2251
|
+
_this[key] = actual[key];
|
|
2252
|
+
} else {
|
|
2253
|
+
_this[key] = obj[key];
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
});
|
|
2257
|
+
});
|
|
2258
|
+
function compareExceptionKey(actual, expected, key, message, keys, fn) {
|
|
2259
|
+
if (!(key in actual) || !isDeepStrictEqual(actual[key], expected[key])) {
|
|
2260
|
+
if (!message) {
|
|
2261
|
+
// Create placeholder objects to create a nice output.
|
|
2262
|
+
var a = new Comparison(actual, keys);
|
|
2263
|
+
var b = new Comparison(expected, keys, actual);
|
|
2264
|
+
var err = new AssertionError({
|
|
2265
|
+
actual: a,
|
|
2266
|
+
expected: b,
|
|
2267
|
+
operator: "deepStrictEqual",
|
|
2268
|
+
stackStartFn: fn
|
|
2269
|
+
});
|
|
2270
|
+
err.actual = actual;
|
|
2271
|
+
err.expected = expected;
|
|
2272
|
+
err.operator = fn.name;
|
|
2273
|
+
throw err;
|
|
2274
|
+
}
|
|
2275
|
+
innerFail({
|
|
2276
|
+
actual: actual,
|
|
2277
|
+
expected: expected,
|
|
2278
|
+
message: message,
|
|
2279
|
+
operator: fn.name,
|
|
2280
|
+
stackStartFn: fn
|
|
2281
|
+
});
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
function expectedException(actual, expected, msg, fn) {
|
|
2285
|
+
if (typeof expected !== "function") {
|
|
2286
|
+
if (isRegExp(expected)) return RegExpPrototypeTest(expected, actual);
|
|
2287
|
+
// assert.doesNotThrow does not accept objects.
|
|
2288
|
+
if (arguments.length === 2) {
|
|
2289
|
+
throw new ERR_INVALID_ARG_TYPE("expected", ["Function", "RegExp"], expected);
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
// Handle primitives properly.
|
|
2293
|
+
if (_typeof(actual) !== "object" || actual === null) {
|
|
2294
|
+
var err = new AssertionError({
|
|
2295
|
+
actual: actual,
|
|
2296
|
+
expected: expected,
|
|
2297
|
+
message: msg,
|
|
2298
|
+
operator: "deepStrictEqual",
|
|
2299
|
+
stackStartFn: fn
|
|
2300
|
+
});
|
|
2301
|
+
err.operator = fn.name;
|
|
2302
|
+
throw err;
|
|
2303
|
+
}
|
|
2304
|
+
var keys = Object.keys(expected);
|
|
2305
|
+
// Special handle errors to make sure the name and the message are compared
|
|
2306
|
+
// as well.
|
|
2307
|
+
if (expected instanceof Error) {
|
|
2308
|
+
keys.push("name", "message");
|
|
2309
|
+
} else if (keys.length === 0) {
|
|
2310
|
+
throw new ERR_INVALID_ARG_VALUE("error", expected, "may not be an empty object");
|
|
2311
|
+
}
|
|
2312
|
+
if (isDeepEqual === undefined) lazyLoadComparison();
|
|
2313
|
+
keys.forEach(function (key) {
|
|
2314
|
+
if (typeof actual[key] === "string" && isRegExp(expected[key]) && RegExpPrototypeTest(expected[key], actual[key])) {
|
|
2315
|
+
return;
|
|
2316
|
+
}
|
|
2317
|
+
compareExceptionKey(actual, expected, key, msg, keys, fn);
|
|
2318
|
+
});
|
|
2319
|
+
return true;
|
|
2320
|
+
}
|
|
2321
|
+
// Guard instanceof against arrow functions as they don't have a prototype.
|
|
2322
|
+
if (expected.prototype !== undefined && actual instanceof expected) {
|
|
2323
|
+
return true;
|
|
2324
|
+
}
|
|
2325
|
+
if (Error.isPrototypeOf(expected)) {
|
|
2326
|
+
return false;
|
|
2327
|
+
}
|
|
2328
|
+
return expected.call({}, actual) === true;
|
|
2329
|
+
}
|
|
2330
|
+
function getActual(fn) {
|
|
2331
|
+
if (typeof fn !== "function") {
|
|
2332
|
+
throw new ERR_INVALID_ARG_TYPE("fn", "Function", fn);
|
|
2333
|
+
}
|
|
2334
|
+
try {
|
|
2335
|
+
fn();
|
|
2336
|
+
} catch (e) {
|
|
2337
|
+
return e;
|
|
2338
|
+
}
|
|
2339
|
+
return NO_EXCEPTION_SENTINEL;
|
|
2340
|
+
}
|
|
2341
|
+
function checkIsPromise(obj) {
|
|
2342
|
+
// Accept native ES6 promises and promises that are implemented in a similar
|
|
2343
|
+
// way. Do not accept thenables that use a function as `obj` and that have no
|
|
2344
|
+
// `catch` handler.
|
|
2345
|
+
|
|
2346
|
+
// TODO: thenables are checked up until they have the correct methods,
|
|
2347
|
+
// but according to documentation, the `then` method should receive
|
|
2348
|
+
// the `fulfill` and `reject` arguments as well or it may be never resolved.
|
|
2349
|
+
|
|
2350
|
+
return isPromise(obj) || obj !== null && _typeof(obj) === "object" && typeof obj.then === "function" && typeof obj.catch === "function";
|
|
2351
|
+
}
|
|
2352
|
+
function waitForActual(promiseFn) {
|
|
2353
|
+
return Promise.resolve().then(function () {
|
|
2354
|
+
var resultPromise;
|
|
2355
|
+
if (typeof promiseFn === "function") {
|
|
2356
|
+
// Return a rejected promise if `promiseFn` throws synchronously.
|
|
2357
|
+
resultPromise = promiseFn();
|
|
2358
|
+
// Fail in case no promise is returned.
|
|
2359
|
+
if (!checkIsPromise(resultPromise)) {
|
|
2360
|
+
throw new ERR_INVALID_RETURN_VALUE("instance of Promise", "promiseFn", resultPromise);
|
|
2361
|
+
}
|
|
2362
|
+
} else if (checkIsPromise(promiseFn)) {
|
|
2363
|
+
resultPromise = promiseFn;
|
|
2364
|
+
} else {
|
|
2365
|
+
throw new ERR_INVALID_ARG_TYPE("promiseFn", ["Function", "Promise"], promiseFn);
|
|
2366
|
+
}
|
|
2367
|
+
return Promise.resolve().then(function () {
|
|
2368
|
+
return resultPromise;
|
|
2369
|
+
}).then(function () {
|
|
2370
|
+
return NO_EXCEPTION_SENTINEL;
|
|
2371
|
+
}).catch(function (e) {
|
|
2372
|
+
return e;
|
|
2373
|
+
});
|
|
2374
|
+
});
|
|
2375
|
+
}
|
|
2376
|
+
function expectsError(stackStartFn, actual, error, message) {
|
|
2377
|
+
if (typeof error === "string") {
|
|
2378
|
+
if (arguments.length === 4) {
|
|
2379
|
+
throw new ERR_INVALID_ARG_TYPE("error", ["Object", "Error", "Function", "RegExp"], error);
|
|
2380
|
+
}
|
|
2381
|
+
if (_typeof(actual) === "object" && actual !== null) {
|
|
2382
|
+
if (actual.message === error) {
|
|
2383
|
+
throw new ERR_AMBIGUOUS_ARGUMENT("error/message", "The error message \"".concat(actual.message, "\" is identical to the message."));
|
|
2384
|
+
}
|
|
2385
|
+
} else if (actual === error) {
|
|
2386
|
+
throw new ERR_AMBIGUOUS_ARGUMENT("error/message", "The error \"".concat(actual, "\" is identical to the message."));
|
|
2387
|
+
}
|
|
2388
|
+
message = error;
|
|
2389
|
+
error = undefined;
|
|
2390
|
+
} else if (error != null && _typeof(error) !== "object" && typeof error !== "function") {
|
|
2391
|
+
throw new ERR_INVALID_ARG_TYPE("error", ["Object", "Error", "Function", "RegExp"], error);
|
|
2392
|
+
}
|
|
2393
|
+
if (actual === NO_EXCEPTION_SENTINEL) {
|
|
2394
|
+
var details = "";
|
|
2395
|
+
if (error && error.name) {
|
|
2396
|
+
details += " (".concat(error.name, ")");
|
|
2397
|
+
}
|
|
2398
|
+
details += message ? ": ".concat(message) : ".";
|
|
2399
|
+
var fnType = stackStartFn.name === "rejects" ? "rejection" : "exception";
|
|
2400
|
+
innerFail({
|
|
2401
|
+
actual: undefined,
|
|
2402
|
+
expected: error,
|
|
2403
|
+
operator: stackStartFn.name,
|
|
2404
|
+
message: "Missing expected ".concat(fnType).concat(details),
|
|
2405
|
+
stackStartFn: stackStartFn
|
|
2406
|
+
});
|
|
2407
|
+
}
|
|
2408
|
+
if (error && !expectedException(actual, error, message, stackStartFn)) {
|
|
2409
|
+
throw actual;
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
function expectsNoError(stackStartFn, actual, error, message) {
|
|
2413
|
+
if (actual === NO_EXCEPTION_SENTINEL) return;
|
|
2414
|
+
if (typeof error === "string") {
|
|
2415
|
+
message = error;
|
|
2416
|
+
error = undefined;
|
|
2417
|
+
}
|
|
2418
|
+
if (!error || expectedException(actual, error)) {
|
|
2419
|
+
var details = message ? ": ".concat(message) : ".";
|
|
2420
|
+
var fnType = stackStartFn.name === "doesNotReject" ? "rejection" : "exception";
|
|
2421
|
+
innerFail({
|
|
2422
|
+
actual: actual,
|
|
2423
|
+
expected: error,
|
|
2424
|
+
operator: stackStartFn.name,
|
|
2425
|
+
message: "Got unwanted ".concat(fnType).concat(details, "\n") + "Actual message: \"".concat(actual && actual.message, "\""),
|
|
2426
|
+
stackStartFn: stackStartFn
|
|
2427
|
+
});
|
|
2428
|
+
}
|
|
2429
|
+
throw actual;
|
|
2430
|
+
}
|
|
2431
|
+
assert.throws = function throws(promiseFn) {
|
|
2432
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
2433
|
+
args[_key2 - 1] = arguments[_key2];
|
|
2434
|
+
}
|
|
2435
|
+
expectsError.apply(void 0, [throws, getActual(promiseFn)].concat(args));
|
|
2436
|
+
};
|
|
2437
|
+
assert.rejects = function rejects(promiseFn) {
|
|
2438
|
+
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
2439
|
+
args[_key3 - 1] = arguments[_key3];
|
|
2440
|
+
}
|
|
2441
|
+
return waitForActual(promiseFn).then(function (result) {
|
|
2442
|
+
return expectsError.apply(void 0, [rejects, result].concat(args));
|
|
2443
|
+
});
|
|
2444
|
+
};
|
|
2445
|
+
assert.doesNotThrow = function doesNotThrow(fn) {
|
|
2446
|
+
for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
|
|
2447
|
+
args[_key4 - 1] = arguments[_key4];
|
|
2448
|
+
}
|
|
2449
|
+
expectsNoError.apply(void 0, [doesNotThrow, getActual(fn)].concat(args));
|
|
2450
|
+
};
|
|
2451
|
+
assert.doesNotReject = function doesNotReject(fn) {
|
|
2452
|
+
for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
|
|
2453
|
+
args[_key5 - 1] = arguments[_key5];
|
|
2454
|
+
}
|
|
2455
|
+
return waitForActual(fn).then(function (result) {
|
|
2456
|
+
return expectsNoError.apply(void 0, [doesNotReject, result].concat(args));
|
|
2457
|
+
});
|
|
2458
|
+
};
|
|
2459
|
+
assert.ifError = function ifError(err) {
|
|
2460
|
+
if (err !== null && err !== undefined) {
|
|
2461
|
+
var message = "ifError got unwanted exception: ";
|
|
2462
|
+
if (_typeof(err) === "object" && typeof err.message === "string") {
|
|
2463
|
+
if (err.message.length === 0 && err.constructor) {
|
|
2464
|
+
message += err.constructor.name;
|
|
2465
|
+
} else {
|
|
2466
|
+
message += err.message;
|
|
2467
|
+
}
|
|
2468
|
+
} else {
|
|
2469
|
+
message += inspect(err);
|
|
2470
|
+
}
|
|
2471
|
+
var newErr = new AssertionError({
|
|
2472
|
+
actual: err,
|
|
2473
|
+
expected: null,
|
|
2474
|
+
operator: "ifError",
|
|
2475
|
+
message: message,
|
|
2476
|
+
stackStartFn: ifError
|
|
2477
|
+
});
|
|
2478
|
+
|
|
2479
|
+
// Make sure we actually have a stack trace!
|
|
2480
|
+
var origStack = err.stack;
|
|
2481
|
+
if (typeof origStack === "string") {
|
|
2482
|
+
// This will remove any duplicated frames from the error frames taken
|
|
2483
|
+
// from within `ifError` and add the original error frames to the newly
|
|
2484
|
+
// created ones.
|
|
2485
|
+
var tmp2 = origStack.split("\n");
|
|
2486
|
+
tmp2.shift();
|
|
2487
|
+
// Filter all frames existing in err.stack.
|
|
2488
|
+
var tmp1 = newErr.stack.split("\n");
|
|
2489
|
+
for (var i = 0; i < tmp2.length; i++) {
|
|
2490
|
+
// Find the first occurrence of the frame.
|
|
2491
|
+
var pos = tmp1.indexOf(tmp2[i]);
|
|
2492
|
+
if (pos !== -1) {
|
|
2493
|
+
// Only keep new frames.
|
|
2494
|
+
tmp1 = tmp1.slice(0, pos);
|
|
2495
|
+
break;
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
newErr.stack = "".concat(tmp1.join("\n"), "\n").concat(tmp2.join("\n"));
|
|
2499
|
+
}
|
|
2500
|
+
throw newErr;
|
|
2501
|
+
}
|
|
2502
|
+
};
|
|
2503
|
+
|
|
2504
|
+
// Currently in sync with Node.js lib/assert.js
|
|
2505
|
+
// https://github.com/nodejs/node/commit/2a871df3dfb8ea663ef5e1f8f62701ec51384ecb
|
|
2506
|
+
function internalMatch(string, regexp, message, fn, fnName) {
|
|
2507
|
+
if (!isRegExp(regexp)) {
|
|
2508
|
+
throw new ERR_INVALID_ARG_TYPE("regexp", "RegExp", regexp);
|
|
2509
|
+
}
|
|
2510
|
+
var match = fnName === "match";
|
|
2511
|
+
if (typeof string !== "string" || RegExpPrototypeTest(regexp, string) !== match) {
|
|
2512
|
+
if (message instanceof Error) {
|
|
2513
|
+
throw message;
|
|
2514
|
+
}
|
|
2515
|
+
var generatedMessage = !message;
|
|
2516
|
+
|
|
2517
|
+
// 'The input was expected to not match the regular expression ' +
|
|
2518
|
+
message = message || (typeof string !== "string" ? "The \"string\" argument must be of type string. Received type " + "".concat(_typeof(string), " (").concat(inspect(string), ")") : (match ? "The input did not match the regular expression " : "The input was expected to not match the regular expression ") + "".concat(inspect(regexp), ". Input:\n\n").concat(inspect(string), "\n"));
|
|
2519
|
+
var err = new AssertionError({
|
|
2520
|
+
actual: string,
|
|
2521
|
+
expected: regexp,
|
|
2522
|
+
message: message,
|
|
2523
|
+
operator: fnName,
|
|
2524
|
+
stackStartFn: fn
|
|
2525
|
+
});
|
|
2526
|
+
err.generatedMessage = generatedMessage;
|
|
2527
|
+
throw err;
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
assert.match = function match(string, regexp, message) {
|
|
2531
|
+
internalMatch(string, regexp, message, match, "match");
|
|
2532
|
+
};
|
|
2533
|
+
assert.doesNotMatch = function doesNotMatch(string, regexp, message) {
|
|
2534
|
+
internalMatch(string, regexp, message, doesNotMatch, "doesNotMatch");
|
|
2535
|
+
};
|
|
2536
|
+
|
|
2537
|
+
// Expose a strict only variant of assert
|
|
2538
|
+
function strict() {
|
|
2539
|
+
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
2540
|
+
args[_key6] = arguments[_key6];
|
|
2541
|
+
}
|
|
2542
|
+
innerOk.apply(void 0, [strict, args.length].concat(args));
|
|
2543
|
+
}
|
|
2544
|
+
assert.strict = objectAssign(strict, assert, {
|
|
2545
|
+
equal: assert.strictEqual,
|
|
2546
|
+
deepEqual: assert.deepStrictEqual,
|
|
2547
|
+
notEqual: assert.notStrictEqual,
|
|
2548
|
+
notDeepEqual: assert.notDeepStrictEqual
|
|
2549
|
+
});
|
|
2550
|
+
assert.strict.strict = assert.strict;
|
|
2551
|
+
return exports$1;
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2554
|
+
const exports = dew();
|
|
2555
|
+
|
|
2556
|
+
var AssertionError = exports.AssertionError;
|
|
2557
|
+
var deepEqual = exports.deepEqual;
|
|
2558
|
+
var deepStrictEqual = exports.deepStrictEqual;
|
|
2559
|
+
var doesNotReject = exports.doesNotReject;
|
|
2560
|
+
var doesNotThrow = exports.doesNotThrow;
|
|
2561
|
+
var equal = exports.equal;
|
|
2562
|
+
var fail = exports.fail;
|
|
2563
|
+
var ifError = exports.ifError;
|
|
2564
|
+
var notDeepEqual = exports.notDeepEqual;
|
|
2565
|
+
var notDeepStrictEqual = exports.notDeepStrictEqual;
|
|
2566
|
+
var notEqual = exports.notEqual;
|
|
2567
|
+
var notStrictEqual = exports.notStrictEqual;
|
|
2568
|
+
var ok = exports.ok;
|
|
2569
|
+
var rejects = exports.rejects;
|
|
2570
|
+
var strict = exports.strict;
|
|
2571
|
+
var strictEqual = exports.strictEqual;
|
|
2572
|
+
var throws = exports.throws;
|
|
2573
|
+
|
|
2574
|
+
export { AssertionError, deepEqual, deepStrictEqual, exports as default, doesNotReject, doesNotThrow, equal, fail, ifError, notDeepEqual, notDeepStrictEqual, notEqual, notStrictEqual, ok, rejects, strict, strictEqual, throws };
|