From 868522aa377a4519adb0b9f402586ab7a41b86ba Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 21 May 2024 22:56:20 +0200 Subject: Adding debian version 5.28.2+dfsg1+~cs23.11.12.3-6. Signed-off-by: Daniel Baumann --- debian/tests/test_modules/abort-controller/LICENSE | 21 + .../tests/test_modules/abort-controller/browser.js | 13 + .../test_modules/abort-controller/browser.mjs | 11 + .../abort-controller/dist/abort-controller.d.ts | 43 + .../abort-controller/dist/abort-controller.js | 127 + .../abort-controller/dist/abort-controller.mjs | 118 + .../test_modules/abort-controller/package.json | 97 + .../test_modules/abort-controller/polyfill.js | 21 + .../test_modules/abort-controller/polyfill.mjs | 19 + debian/tests/test_modules/atomic-sleep/LICENSE | 22 + debian/tests/test_modules/atomic-sleep/index.js | 38 + .../tests/test_modules/atomic-sleep/package.json | 37 + debian/tests/test_modules/chai-iterator/LICENSE | 20 + .../test_modules/chai-iterator/chai-iterator.js | 334 ++ .../tests/test_modules/chai-iterator/package.json | 70 + debian/tests/test_modules/chai-string/LICENSE | 20 + .../tests/test_modules/chai-string/chai-string.js | 317 ++ debian/tests/test_modules/chai-string/package.json | 32 + debian/tests/test_modules/delay/index.d.ts | 107 + debian/tests/test_modules/delay/index.js | 72 + debian/tests/test_modules/delay/license | 9 + debian/tests/test_modules/delay/package.json | 54 + debian/tests/test_modules/dicer/LICENSE | 19 + debian/tests/test_modules/dicer/lib/Dicer.js | 239 ++ .../tests/test_modules/dicer/lib/HeaderParser.js | 110 + debian/tests/test_modules/dicer/lib/PartStream.js | 11 + debian/tests/test_modules/dicer/package.json | 16 + .../tests/test_modules/event-target-shim/LICENSE | 22 + .../event-target-shim/dist/event-target-shim.js | 871 ++++ .../event-target-shim/dist/event-target-shim.mjs | 862 ++++ .../test_modules/event-target-shim/index.d.ts | 399 ++ .../test_modules/event-target-shim/package.json | 82 + debian/tests/test_modules/https-pem/LICENSE | 21 + debian/tests/test_modules/https-pem/README.md | 78 + debian/tests/test_modules/https-pem/cert.pem | 17 + debian/tests/test_modules/https-pem/index.js | 7 + debian/tests/test_modules/https-pem/install.js | 10 + debian/tests/test_modules/https-pem/key.pem | 27 + debian/tests/test_modules/https-pem/package.json | 44 + debian/tests/test_modules/https-pem/test.js | 23 + debian/tests/test_modules/node-forge/LICENSE | 331 ++ debian/tests/test_modules/node-forge/lib/aes.js | 1091 +++++ .../test_modules/node-forge/lib/aesCipherSuites.js | 282 ++ .../test_modules/node-forge/lib/asn1-validator.js | 91 + debian/tests/test_modules/node-forge/lib/asn1.js | 1434 +++++++ debian/tests/test_modules/node-forge/lib/baseN.js | 186 + debian/tests/test_modules/node-forge/lib/cipher.js | 230 ++ .../test_modules/node-forge/lib/cipherModes.js | 999 +++++ debian/tests/test_modules/node-forge/lib/des.js | 496 +++ .../tests/test_modules/node-forge/lib/ed25519.js | 1072 +++++ debian/tests/test_modules/node-forge/lib/forge.js | 13 + debian/tests/test_modules/node-forge/lib/form.js | 149 + debian/tests/test_modules/node-forge/lib/hmac.js | 146 + debian/tests/test_modules/node-forge/lib/http.js | 1346 ++++++ .../tests/test_modules/node-forge/lib/index.all.js | 16 + debian/tests/test_modules/node-forge/lib/index.js | 33 + debian/tests/test_modules/node-forge/lib/jsbn.js | 1264 ++++++ debian/tests/test_modules/node-forge/lib/kem.js | 168 + debian/tests/test_modules/node-forge/lib/log.js | 319 ++ debian/tests/test_modules/node-forge/lib/md.all.js | 13 + debian/tests/test_modules/node-forge/lib/md.js | 11 + debian/tests/test_modules/node-forge/lib/md5.js | 289 ++ debian/tests/test_modules/node-forge/lib/mgf.js | 12 + debian/tests/test_modules/node-forge/lib/mgf1.js | 57 + debian/tests/test_modules/node-forge/lib/oids.js | 179 + debian/tests/test_modules/node-forge/lib/pbe.js | 1023 +++++ debian/tests/test_modules/node-forge/lib/pbkdf2.js | 211 + debian/tests/test_modules/node-forge/lib/pem.js | 237 ++ debian/tests/test_modules/node-forge/lib/pkcs1.js | 276 ++ debian/tests/test_modules/node-forge/lib/pkcs12.js | 1074 +++++ debian/tests/test_modules/node-forge/lib/pkcs7.js | 1260 ++++++ .../tests/test_modules/node-forge/lib/pkcs7asn1.js | 410 ++ debian/tests/test_modules/node-forge/lib/pki.js | 102 + debian/tests/test_modules/node-forge/lib/prime.js | 297 ++ .../test_modules/node-forge/lib/prime.worker.js | 168 + debian/tests/test_modules/node-forge/lib/prng.js | 419 ++ debian/tests/test_modules/node-forge/lib/pss.js | 241 ++ debian/tests/test_modules/node-forge/lib/random.js | 191 + debian/tests/test_modules/node-forge/lib/rc2.js | 410 ++ debian/tests/test_modules/node-forge/lib/rsa.js | 1949 +++++++++ debian/tests/test_modules/node-forge/lib/sha1.js | 319 ++ debian/tests/test_modules/node-forge/lib/sha256.js | 327 ++ debian/tests/test_modules/node-forge/lib/sha512.js | 561 +++ debian/tests/test_modules/node-forge/lib/socket.js | 287 ++ debian/tests/test_modules/node-forge/lib/ssh.js | 236 ++ debian/tests/test_modules/node-forge/lib/tls.js | 4282 ++++++++++++++++++++ .../tests/test_modules/node-forge/lib/tlssocket.js | 249 ++ debian/tests/test_modules/node-forge/lib/util.js | 2652 ++++++++++++ debian/tests/test_modules/node-forge/lib/x509.js | 3242 +++++++++++++++ debian/tests/test_modules/node-forge/lib/xhr.js | 738 ++++ debian/tests/test_modules/node-forge/package.json | 123 + debian/tests/test_modules/selfsigned/LICENSE | 22 + debian/tests/test_modules/selfsigned/index.d.ts | 57 + debian/tests/test_modules/selfsigned/index.js | 205 + debian/tests/test_modules/selfsigned/package.json | 44 + 95 files changed, 36299 insertions(+) create mode 100644 debian/tests/test_modules/abort-controller/LICENSE create mode 100644 debian/tests/test_modules/abort-controller/browser.js create mode 100644 debian/tests/test_modules/abort-controller/browser.mjs create mode 100644 debian/tests/test_modules/abort-controller/dist/abort-controller.d.ts create mode 100644 debian/tests/test_modules/abort-controller/dist/abort-controller.js create mode 100644 debian/tests/test_modules/abort-controller/dist/abort-controller.mjs create mode 100644 debian/tests/test_modules/abort-controller/package.json create mode 100644 debian/tests/test_modules/abort-controller/polyfill.js create mode 100644 debian/tests/test_modules/abort-controller/polyfill.mjs create mode 100644 debian/tests/test_modules/atomic-sleep/LICENSE create mode 100644 debian/tests/test_modules/atomic-sleep/index.js create mode 100644 debian/tests/test_modules/atomic-sleep/package.json create mode 100644 debian/tests/test_modules/chai-iterator/LICENSE create mode 100644 debian/tests/test_modules/chai-iterator/chai-iterator.js create mode 100644 debian/tests/test_modules/chai-iterator/package.json create mode 100644 debian/tests/test_modules/chai-string/LICENSE create mode 100644 debian/tests/test_modules/chai-string/chai-string.js create mode 100644 debian/tests/test_modules/chai-string/package.json create mode 100644 debian/tests/test_modules/delay/index.d.ts create mode 100644 debian/tests/test_modules/delay/index.js create mode 100644 debian/tests/test_modules/delay/license create mode 100644 debian/tests/test_modules/delay/package.json create mode 100644 debian/tests/test_modules/dicer/LICENSE create mode 100644 debian/tests/test_modules/dicer/lib/Dicer.js create mode 100644 debian/tests/test_modules/dicer/lib/HeaderParser.js create mode 100644 debian/tests/test_modules/dicer/lib/PartStream.js create mode 100644 debian/tests/test_modules/dicer/package.json create mode 100644 debian/tests/test_modules/event-target-shim/LICENSE create mode 100644 debian/tests/test_modules/event-target-shim/dist/event-target-shim.js create mode 100644 debian/tests/test_modules/event-target-shim/dist/event-target-shim.mjs create mode 100644 debian/tests/test_modules/event-target-shim/index.d.ts create mode 100644 debian/tests/test_modules/event-target-shim/package.json create mode 100644 debian/tests/test_modules/https-pem/LICENSE create mode 100644 debian/tests/test_modules/https-pem/README.md create mode 100644 debian/tests/test_modules/https-pem/cert.pem create mode 100644 debian/tests/test_modules/https-pem/index.js create mode 100644 debian/tests/test_modules/https-pem/install.js create mode 100644 debian/tests/test_modules/https-pem/key.pem create mode 100644 debian/tests/test_modules/https-pem/package.json create mode 100644 debian/tests/test_modules/https-pem/test.js create mode 100644 debian/tests/test_modules/node-forge/LICENSE create mode 100644 debian/tests/test_modules/node-forge/lib/aes.js create mode 100644 debian/tests/test_modules/node-forge/lib/aesCipherSuites.js create mode 100644 debian/tests/test_modules/node-forge/lib/asn1-validator.js create mode 100644 debian/tests/test_modules/node-forge/lib/asn1.js create mode 100644 debian/tests/test_modules/node-forge/lib/baseN.js create mode 100644 debian/tests/test_modules/node-forge/lib/cipher.js create mode 100644 debian/tests/test_modules/node-forge/lib/cipherModes.js create mode 100644 debian/tests/test_modules/node-forge/lib/des.js create mode 100644 debian/tests/test_modules/node-forge/lib/ed25519.js create mode 100644 debian/tests/test_modules/node-forge/lib/forge.js create mode 100644 debian/tests/test_modules/node-forge/lib/form.js create mode 100644 debian/tests/test_modules/node-forge/lib/hmac.js create mode 100644 debian/tests/test_modules/node-forge/lib/http.js create mode 100644 debian/tests/test_modules/node-forge/lib/index.all.js create mode 100644 debian/tests/test_modules/node-forge/lib/index.js create mode 100644 debian/tests/test_modules/node-forge/lib/jsbn.js create mode 100644 debian/tests/test_modules/node-forge/lib/kem.js create mode 100644 debian/tests/test_modules/node-forge/lib/log.js create mode 100644 debian/tests/test_modules/node-forge/lib/md.all.js create mode 100644 debian/tests/test_modules/node-forge/lib/md.js create mode 100644 debian/tests/test_modules/node-forge/lib/md5.js create mode 100644 debian/tests/test_modules/node-forge/lib/mgf.js create mode 100644 debian/tests/test_modules/node-forge/lib/mgf1.js create mode 100644 debian/tests/test_modules/node-forge/lib/oids.js create mode 100644 debian/tests/test_modules/node-forge/lib/pbe.js create mode 100644 debian/tests/test_modules/node-forge/lib/pbkdf2.js create mode 100644 debian/tests/test_modules/node-forge/lib/pem.js create mode 100644 debian/tests/test_modules/node-forge/lib/pkcs1.js create mode 100644 debian/tests/test_modules/node-forge/lib/pkcs12.js create mode 100644 debian/tests/test_modules/node-forge/lib/pkcs7.js create mode 100644 debian/tests/test_modules/node-forge/lib/pkcs7asn1.js create mode 100644 debian/tests/test_modules/node-forge/lib/pki.js create mode 100644 debian/tests/test_modules/node-forge/lib/prime.js create mode 100644 debian/tests/test_modules/node-forge/lib/prime.worker.js create mode 100644 debian/tests/test_modules/node-forge/lib/prng.js create mode 100644 debian/tests/test_modules/node-forge/lib/pss.js create mode 100644 debian/tests/test_modules/node-forge/lib/random.js create mode 100644 debian/tests/test_modules/node-forge/lib/rc2.js create mode 100644 debian/tests/test_modules/node-forge/lib/rsa.js create mode 100644 debian/tests/test_modules/node-forge/lib/sha1.js create mode 100644 debian/tests/test_modules/node-forge/lib/sha256.js create mode 100644 debian/tests/test_modules/node-forge/lib/sha512.js create mode 100644 debian/tests/test_modules/node-forge/lib/socket.js create mode 100644 debian/tests/test_modules/node-forge/lib/ssh.js create mode 100644 debian/tests/test_modules/node-forge/lib/tls.js create mode 100644 debian/tests/test_modules/node-forge/lib/tlssocket.js create mode 100644 debian/tests/test_modules/node-forge/lib/util.js create mode 100644 debian/tests/test_modules/node-forge/lib/x509.js create mode 100644 debian/tests/test_modules/node-forge/lib/xhr.js create mode 100644 debian/tests/test_modules/node-forge/package.json create mode 100644 debian/tests/test_modules/selfsigned/LICENSE create mode 100644 debian/tests/test_modules/selfsigned/index.d.ts create mode 100644 debian/tests/test_modules/selfsigned/index.js create mode 100644 debian/tests/test_modules/selfsigned/package.json (limited to 'debian/tests/test_modules') diff --git a/debian/tests/test_modules/abort-controller/LICENSE b/debian/tests/test_modules/abort-controller/LICENSE new file mode 100644 index 0000000..c914149 --- /dev/null +++ b/debian/tests/test_modules/abort-controller/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Toru Nagashima + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/debian/tests/test_modules/abort-controller/browser.js b/debian/tests/test_modules/abort-controller/browser.js new file mode 100644 index 0000000..b0c5ec3 --- /dev/null +++ b/debian/tests/test_modules/abort-controller/browser.js @@ -0,0 +1,13 @@ +/*globals self, window */ +"use strict" + +/*eslint-disable @mysticatea/prettier */ +const { AbortController, AbortSignal } = + typeof self !== "undefined" ? self : + typeof window !== "undefined" ? window : + /* otherwise */ undefined +/*eslint-enable @mysticatea/prettier */ + +module.exports = AbortController +module.exports.AbortSignal = AbortSignal +module.exports.default = AbortController diff --git a/debian/tests/test_modules/abort-controller/browser.mjs b/debian/tests/test_modules/abort-controller/browser.mjs new file mode 100644 index 0000000..a8f321a --- /dev/null +++ b/debian/tests/test_modules/abort-controller/browser.mjs @@ -0,0 +1,11 @@ +/*globals self, window */ + +/*eslint-disable @mysticatea/prettier */ +const { AbortController, AbortSignal } = + typeof self !== "undefined" ? self : + typeof window !== "undefined" ? window : + /* otherwise */ undefined +/*eslint-enable @mysticatea/prettier */ + +export default AbortController +export { AbortController, AbortSignal } diff --git a/debian/tests/test_modules/abort-controller/dist/abort-controller.d.ts b/debian/tests/test_modules/abort-controller/dist/abort-controller.d.ts new file mode 100644 index 0000000..75852fb --- /dev/null +++ b/debian/tests/test_modules/abort-controller/dist/abort-controller.d.ts @@ -0,0 +1,43 @@ +import { EventTarget } from "event-target-shim" + +type Events = { + abort: any +} +type EventAttributes = { + onabort: any +} +/** + * The signal class. + * @see https://dom.spec.whatwg.org/#abortsignal + */ +declare class AbortSignal extends EventTarget { + /** + * AbortSignal cannot be constructed directly. + */ + constructor() + /** + * Returns `true` if this `AbortSignal`"s `AbortController` has signaled to abort, and `false` otherwise. + */ + readonly aborted: boolean +} +/** + * The AbortController. + * @see https://dom.spec.whatwg.org/#abortcontroller + */ +declare class AbortController { + /** + * Initialize this controller. + */ + constructor() + /** + * Returns the `AbortSignal` object associated with this object. + */ + readonly signal: AbortSignal + /** + * Abort and signal to any observers that the associated activity is to be aborted. + */ + abort(): void +} + +export default AbortController +export { AbortController, AbortSignal } diff --git a/debian/tests/test_modules/abort-controller/dist/abort-controller.js b/debian/tests/test_modules/abort-controller/dist/abort-controller.js new file mode 100644 index 0000000..49af739 --- /dev/null +++ b/debian/tests/test_modules/abort-controller/dist/abort-controller.js @@ -0,0 +1,127 @@ +/** + * @author Toru Nagashima + * See LICENSE file in root directory for full license. + */ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var eventTargetShim = require('event-target-shim'); + +/** + * The signal class. + * @see https://dom.spec.whatwg.org/#abortsignal + */ +class AbortSignal extends eventTargetShim.EventTarget { + /** + * AbortSignal cannot be constructed directly. + */ + constructor() { + super(); + throw new TypeError("AbortSignal cannot be constructed directly"); + } + /** + * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise. + */ + get aborted() { + const aborted = abortedFlags.get(this); + if (typeof aborted !== "boolean") { + throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`); + } + return aborted; + } +} +eventTargetShim.defineEventAttribute(AbortSignal.prototype, "abort"); +/** + * Create an AbortSignal object. + */ +function createAbortSignal() { + const signal = Object.create(AbortSignal.prototype); + eventTargetShim.EventTarget.call(signal); + abortedFlags.set(signal, false); + return signal; +} +/** + * Abort a given signal. + */ +function abortSignal(signal) { + if (abortedFlags.get(signal) !== false) { + return; + } + abortedFlags.set(signal, true); + signal.dispatchEvent({ type: "abort" }); +} +/** + * Aborted flag for each instances. + */ +const abortedFlags = new WeakMap(); +// Properties should be enumerable. +Object.defineProperties(AbortSignal.prototype, { + aborted: { enumerable: true }, +}); +// `toString()` should return `"[object AbortSignal]"` +if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") { + Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, { + configurable: true, + value: "AbortSignal", + }); +} + +/** + * The AbortController. + * @see https://dom.spec.whatwg.org/#abortcontroller + */ +class AbortController { + /** + * Initialize this controller. + */ + constructor() { + signals.set(this, createAbortSignal()); + } + /** + * Returns the `AbortSignal` object associated with this object. + */ + get signal() { + return getSignal(this); + } + /** + * Abort and signal to any observers that the associated activity is to be aborted. + */ + abort() { + abortSignal(getSignal(this)); + } +} +/** + * Associated signals. + */ +const signals = new WeakMap(); +/** + * Get the associated signal of a given controller. + */ +function getSignal(controller) { + const signal = signals.get(controller); + if (signal == null) { + throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`); + } + return signal; +} +// Properties should be enumerable. +Object.defineProperties(AbortController.prototype, { + signal: { enumerable: true }, + abort: { enumerable: true }, +}); +if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") { + Object.defineProperty(AbortController.prototype, Symbol.toStringTag, { + configurable: true, + value: "AbortController", + }); +} + +exports.AbortController = AbortController; +exports.AbortSignal = AbortSignal; +exports.default = AbortController; + +module.exports = AbortController +module.exports.AbortController = module.exports["default"] = AbortController +module.exports.AbortSignal = AbortSignal +//# sourceMappingURL=abort-controller.js.map diff --git a/debian/tests/test_modules/abort-controller/dist/abort-controller.mjs b/debian/tests/test_modules/abort-controller/dist/abort-controller.mjs new file mode 100644 index 0000000..88ba22d --- /dev/null +++ b/debian/tests/test_modules/abort-controller/dist/abort-controller.mjs @@ -0,0 +1,118 @@ +/** + * @author Toru Nagashima + * See LICENSE file in root directory for full license. + */ +import { EventTarget, defineEventAttribute } from 'event-target-shim'; + +/** + * The signal class. + * @see https://dom.spec.whatwg.org/#abortsignal + */ +class AbortSignal extends EventTarget { + /** + * AbortSignal cannot be constructed directly. + */ + constructor() { + super(); + throw new TypeError("AbortSignal cannot be constructed directly"); + } + /** + * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise. + */ + get aborted() { + const aborted = abortedFlags.get(this); + if (typeof aborted !== "boolean") { + throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`); + } + return aborted; + } +} +defineEventAttribute(AbortSignal.prototype, "abort"); +/** + * Create an AbortSignal object. + */ +function createAbortSignal() { + const signal = Object.create(AbortSignal.prototype); + EventTarget.call(signal); + abortedFlags.set(signal, false); + return signal; +} +/** + * Abort a given signal. + */ +function abortSignal(signal) { + if (abortedFlags.get(signal) !== false) { + return; + } + abortedFlags.set(signal, true); + signal.dispatchEvent({ type: "abort" }); +} +/** + * Aborted flag for each instances. + */ +const abortedFlags = new WeakMap(); +// Properties should be enumerable. +Object.defineProperties(AbortSignal.prototype, { + aborted: { enumerable: true }, +}); +// `toString()` should return `"[object AbortSignal]"` +if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") { + Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, { + configurable: true, + value: "AbortSignal", + }); +} + +/** + * The AbortController. + * @see https://dom.spec.whatwg.org/#abortcontroller + */ +class AbortController { + /** + * Initialize this controller. + */ + constructor() { + signals.set(this, createAbortSignal()); + } + /** + * Returns the `AbortSignal` object associated with this object. + */ + get signal() { + return getSignal(this); + } + /** + * Abort and signal to any observers that the associated activity is to be aborted. + */ + abort() { + abortSignal(getSignal(this)); + } +} +/** + * Associated signals. + */ +const signals = new WeakMap(); +/** + * Get the associated signal of a given controller. + */ +function getSignal(controller) { + const signal = signals.get(controller); + if (signal == null) { + throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`); + } + return signal; +} +// Properties should be enumerable. +Object.defineProperties(AbortController.prototype, { + signal: { enumerable: true }, + abort: { enumerable: true }, +}); +if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") { + Object.defineProperty(AbortController.prototype, Symbol.toStringTag, { + configurable: true, + value: "AbortController", + }); +} + +export default AbortController; +export { AbortController, AbortSignal }; +//# sourceMappingURL=abort-controller.mjs.map diff --git a/debian/tests/test_modules/abort-controller/package.json b/debian/tests/test_modules/abort-controller/package.json new file mode 100644 index 0000000..fc705e0 --- /dev/null +++ b/debian/tests/test_modules/abort-controller/package.json @@ -0,0 +1,97 @@ +{ + "name": "abort-controller", + "version": "3.0.0", + "description": "An implementation of WHATWG AbortController interface.", + "main": "dist/abort-controller", + "files": [ + "dist", + "polyfill.*", + "browser.*" + ], + "engines": { + "node": ">=6.5" + }, + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "browser": "./browser.js", + "devDependencies": { + "@babel/core": "^7.2.2", + "@babel/plugin-transform-modules-commonjs": "^7.2.0", + "@babel/preset-env": "^7.3.0", + "@babel/register": "^7.0.0", + "@mysticatea/eslint-plugin": "^8.0.1", + "@mysticatea/spy": "^0.1.2", + "@types/mocha": "^5.2.5", + "@types/node": "^10.12.18", + "assert": "^1.4.1", + "codecov": "^3.1.0", + "dts-bundle-generator": "^2.0.0", + "eslint": "^5.12.1", + "karma": "^3.1.4", + "karma-chrome-launcher": "^2.2.0", + "karma-coverage": "^1.1.2", + "karma-firefox-launcher": "^1.1.0", + "karma-growl-reporter": "^1.0.0", + "karma-ie-launcher": "^1.0.0", + "karma-mocha": "^1.3.0", + "karma-rollup-preprocessor": "^7.0.0-rc.2", + "mocha": "^5.2.0", + "npm-run-all": "^4.1.5", + "nyc": "^13.1.0", + "opener": "^1.5.1", + "rimraf": "^2.6.3", + "rollup": "^1.1.2", + "rollup-plugin-babel": "^4.3.2", + "rollup-plugin-babel-minify": "^7.0.0", + "rollup-plugin-commonjs": "^9.2.0", + "rollup-plugin-node-resolve": "^4.0.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "rollup-plugin-typescript": "^1.0.0", + "rollup-watch": "^4.3.1", + "ts-node": "^8.0.1", + "type-tester": "^1.0.0", + "typescript": "^3.2.4" + }, + "scripts": { + "preversion": "npm test", + "version": "npm run -s build && git add dist/*", + "postversion": "git push && git push --tags", + "clean": "rimraf .nyc_output coverage", + "coverage": "opener coverage/lcov-report/index.html", + "lint": "eslint . --ext .ts", + "build": "run-s -s build:*", + "build:rollup": "rollup -c", + "build:dts": "dts-bundle-generator -o dist/abort-controller.d.ts src/abort-controller.ts && ts-node scripts/fix-dts", + "test": "run-s -s lint test:*", + "test:mocha": "nyc mocha test/*.ts", + "test:karma": "karma start --single-run", + "watch": "run-p -s watch:*", + "watch:mocha": "mocha test/*.ts --require ts-node/register --watch-extensions ts --watch --growl", + "watch:karma": "karma start --watch", + "codecov": "codecov" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/mysticatea/abort-controller.git" + }, + "keywords": [ + "w3c", + "whatwg", + "event", + "events", + "abort", + "cancel", + "abortcontroller", + "abortsignal", + "controller", + "signal", + "shim" + ], + "author": "Toru Nagashima (https://github.com/mysticatea)", + "license": "MIT", + "bugs": { + "url": "https://github.com/mysticatea/abort-controller/issues" + }, + "homepage": "https://github.com/mysticatea/abort-controller#readme" +} diff --git a/debian/tests/test_modules/abort-controller/polyfill.js b/debian/tests/test_modules/abort-controller/polyfill.js new file mode 100644 index 0000000..3ca8923 --- /dev/null +++ b/debian/tests/test_modules/abort-controller/polyfill.js @@ -0,0 +1,21 @@ +/*globals require, self, window */ +"use strict" + +const ac = require("./dist/abort-controller") + +/*eslint-disable @mysticatea/prettier */ +const g = + typeof self !== "undefined" ? self : + typeof window !== "undefined" ? window : + typeof global !== "undefined" ? global : + /* otherwise */ undefined +/*eslint-enable @mysticatea/prettier */ + +if (g) { + if (typeof g.AbortController === "undefined") { + g.AbortController = ac.AbortController + } + if (typeof g.AbortSignal === "undefined") { + g.AbortSignal = ac.AbortSignal + } +} diff --git a/debian/tests/test_modules/abort-controller/polyfill.mjs b/debian/tests/test_modules/abort-controller/polyfill.mjs new file mode 100644 index 0000000..0602a64 --- /dev/null +++ b/debian/tests/test_modules/abort-controller/polyfill.mjs @@ -0,0 +1,19 @@ +/*globals self, window */ +import * as ac from "./dist/abort-controller" + +/*eslint-disable @mysticatea/prettier */ +const g = + typeof self !== "undefined" ? self : + typeof window !== "undefined" ? window : + typeof global !== "undefined" ? global : + /* otherwise */ undefined +/*eslint-enable @mysticatea/prettier */ + +if (g) { + if (typeof g.AbortController === "undefined") { + g.AbortController = ac.AbortController + } + if (typeof g.AbortSignal === "undefined") { + g.AbortSignal = ac.AbortSignal + } +} diff --git a/debian/tests/test_modules/atomic-sleep/LICENSE b/debian/tests/test_modules/atomic-sleep/LICENSE new file mode 100644 index 0000000..d1d8849 --- /dev/null +++ b/debian/tests/test_modules/atomic-sleep/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) +Copyright (c) 2020 David Mark Clements + + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE +OR OTHER DEALINGS IN THE SOFTWARE. + diff --git a/debian/tests/test_modules/atomic-sleep/index.js b/debian/tests/test_modules/atomic-sleep/index.js new file mode 100644 index 0000000..fbfc8b2 --- /dev/null +++ b/debian/tests/test_modules/atomic-sleep/index.js @@ -0,0 +1,38 @@ +'use strict' + +/* global SharedArrayBuffer, Atomics */ + +if (typeof SharedArrayBuffer !== 'undefined' && typeof Atomics !== 'undefined') { + const nil = new Int32Array(new SharedArrayBuffer(4)) + + function sleep (ms) { + // also filters out NaN, non-number types, including empty strings, but allows bigints + const valid = ms > 0 && ms < Infinity + if (valid === false) { + if (typeof ms !== 'number' && typeof ms !== 'bigint') { + throw TypeError('sleep: ms must be a number') + } + throw RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity') + } + + Atomics.wait(nil, 0, 0, Number(ms)) + } + module.exports = sleep +} else { + + function sleep (ms) { + // also filters out NaN, non-number types, including empty strings, but allows bigints + const valid = ms > 0 && ms < Infinity + if (valid === false) { + if (typeof ms !== 'number' && typeof ms !== 'bigint') { + throw TypeError('sleep: ms must be a number') + } + throw RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity') + } + const target = Date.now() + Number(ms) + while (target > Date.now()){} + } + + module.exports = sleep + +} diff --git a/debian/tests/test_modules/atomic-sleep/package.json b/debian/tests/test_modules/atomic-sleep/package.json new file mode 100644 index 0000000..cfdf200 --- /dev/null +++ b/debian/tests/test_modules/atomic-sleep/package.json @@ -0,0 +1,37 @@ +{ + "name": "atomic-sleep", + "version": "1.0.0", + "description": "Zero CPU overhead, zero dependency, true event-loop blocking sleep", + "main": "index.js", + "scripts": { + "test": "tap -R classic- -j1 test", + "lint": "standard", + "ci": "npm run lint && npm test" + }, + "keywords": [ + "sleep", + "pause", + "wait", + "performance", + "atomics" + ], + "engines": { + "node": ">=8.0.0" + }, + "author": "David Mark Clements (@davidmarkclem)", + "license": "MIT", + "devDependencies": { + "standard": "^14.3.1", + "tap": "^14.10.6", + "tape": "^4.13.2" + }, + "dependencies": {}, + "repository": { + "type": "git", + "url": "git+https://github.com/davidmarkclements/atomic-sleep.git" + }, + "bugs": { + "url": "https://github.com/davidmarkclements/atomic-sleep/issues" + }, + "homepage": "https://github.com/davidmarkclements/atomic-sleep#readme" +} diff --git a/debian/tests/test_modules/chai-iterator/LICENSE b/debian/tests/test_modules/chai-iterator/LICENSE new file mode 100644 index 0000000..34f7723 --- /dev/null +++ b/debian/tests/test_modules/chai-iterator/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2016-2017 Akim McMath +Copyright (c) 2018 Harry Sarson + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/debian/tests/test_modules/chai-iterator/chai-iterator.js b/debian/tests/test_modules/chai-iterator/chai-iterator.js new file mode 100644 index 0000000..e2c9f93 --- /dev/null +++ b/debian/tests/test_modules/chai-iterator/chai-iterator.js @@ -0,0 +1,334 @@ +(function (chaiIterator) { + 'use strict'; + + /* istanbul ignore else */ + if (typeof module === 'object' && typeof exports === 'object') { + module.exports = chaiIterator; + } else if (typeof define === 'function' && define.amd) { + define(function () { + return chaiIterator; + }); + } else { + chai.use(chaiIterator); + } +})(function (chai, utils) { + 'use strict'; + + var Assertion = chai.Assertion; + var assert = chai.assert; + + var noop = function () {}; + + var ELLIPSIS = unquote('...'); + + // Expect/should assertions ============================= + + Assertion.addProperty('iterable', function () { + this.assert(isIterable(this._obj), + 'expected #{this} to be iterable', + 'expected #{this} not to be iterable' + ); + }); + + Assertion.addProperty('iterate', function () { + new Assertion(this._obj).iterable; + + utils.flag(this, 'iterate', true); + }); + + Assertion.addMethod('over', iterateMethod('to iterate over', function (exp) { + var it = this._obj[Symbol.iterator](); + var actual = slice(it, exp.length + 2); + var suffix = it.next().done ? [] : [ELLIPSIS]; + + return actual.concat(suffix); + })); + + Assertion.addMethod('from', iterateMethod('to begin iteration with', function (exp) { + return slice(this._obj[Symbol.iterator](), exp.length); + })); + + Assertion.addMethod('until', iterateMethod('to end iteration with', function (exp) { + var it = this._obj[Symbol.iterator](); + var actual = slice(it, exp.length); + var step = it.next(); + + while (!step.done) { + actual.push(step.value); + actual.shift(); + step = it.next(); + } + + return actual; + })); + + Assertion.addProperty('for', noop); + + Assertion.overwriteChainableMethod('lengthOf', function (_super) { + return function (exp) { + if (utils.flag(this, 'iterate')) { + var len = iterableLength(this._obj, exp); + + this.assert( + len === exp, + 'expected #{this} to iterate for length of #{exp}, but got #{act}', + 'expected #{this} not to iterate for length of #{exp}', + exp, + len + ); + } else { + _super.apply(this, arguments); + } + }; + }, function (_super) { + return function () { + _super.apply(this); + }; + }); + + Assertion.overwriteMethod('above', function (_super) { + return function (exp) { + if (utils.flag(this, 'iterate')) { + var len = iterableLength(this._obj, exp); + + this.assert( + len > exp, + 'expected #{this} to iterate for length above #{exp}, but got #{act}', + 'expected #{this} not to iterate for length above #{exp}', + exp, + len + ); + } else { + _super.apply(this, arguments); + } + }; + }); + + Assertion.overwriteMethod('below', function (_super) { + return function (exp) { + if (utils.flag(this, 'iterate')) { + var max = exp + 100; + var len = iterableLength(this._obj, max); + var act = len === Infinity ? unquote('more than ' + max) : len; + + this.assert( + len < exp, + 'expected #{this} to iterate for length below #{exp}, but got #{act}', + 'expected #{this} not to iterate for length below #{exp}', + exp, + act + ); + } else { + _super.apply(this, arguments); + } + }; + }); + + Assertion.overwriteMethod('least', function (_super) { + return function (exp) { + if (utils.flag(this, 'iterate')) { + var len = iterableLength(this._obj, exp); + + this.assert( + len >= exp, + 'expected #{this} to iterate for length of at least #{exp}, but got #{act}', + 'expected #{this} not to iterate for length of at least #{exp}', + exp, + len + ); + } else { + _super.apply(this, arguments); + } + }; + }); + + Assertion.overwriteMethod('most', function (_super) { + return function (exp) { + if (utils.flag(this, 'iterate')) { + var max = exp + 100; + var len = iterableLength(this._obj, max); + var act = len === Infinity ? unquote('more than ' + max) : len; + + this.assert( + len <= exp, + 'expected #{this} to iterate for length of at most #{exp}, but got #{act}', + 'expected #{this} not to iterate for length of at most #{exp}', + exp, + act + ); + } else { + _super.apply(this, arguments); + } + }; + }); + + Assertion.overwriteMethod('within', function (_super) { + return function (min, max) { + if (utils.flag(this, 'iterate')) { + var cutoff = max + 100; + var len = iterableLength(this._obj, cutoff); + var exp = unquote(min + 'and' + max); + var act = len === Infinity ? unquote('more than ' + cutoff) : len; + + this.assert( + min <= len && len <= max, + 'expected #{this} to iterate for length within #{exp}, but got #{act}', + 'expected #{this} not to iterate for length within #{exp}', + exp, + act + ); + } else { + _super.apply(this, arguments); + } + }; + }); + + // Assert methods ======================================= + + assert.isIterable = function (value, msg) { + new Assertion(value, msg).iterable; + }; + + assert.isNotIterable = function (value, msg) { + new Assertion(value, msg).not.iterable; + }; + + assert.iteratesFrom = function (value, exp, msg) { + new Assertion(value, msg).iterate.from(exp); + }; + + assert.doesNotIterateFrom = function (value, exp, msg) { + new Assertion(value, msg).not.iterate.from(exp); + }; + + assert.deepIteratesFrom = function (value, exp, msg) { + new Assertion(value, msg).deep.iterate.from(exp); + }; + + assert.doesNotDeepIterateFrom = function (value, exp, msg) { + new Assertion(value, msg).not.deep.iterate.from(exp); + }; + + assert.iteratesOver = function (value, exp, msg) { + new Assertion(value, msg).iterate.over(exp); + }; + + assert.doesNotIterateOver = function (value, exp, msg) { + new Assertion(value, msg).not.iterate.over(exp); + }; + + assert.deepIteratesOver = function (value, exp, msg) { + new Assertion(value, msg).deep.iterate.over(exp); + }; + + assert.doesNotDeepIterateOver = function (value, exp, msg) { + new Assertion(value, msg).not.deep.iterate.over(exp); + }; + + assert.iteratesUntil = function (value, exp, msg) { + new Assertion(value, msg).iterate.until(exp); + }; + + assert.doesNotIterateUntil = function (value, exp, msg) { + new Assertion(value, msg).not.iterate.until(exp); + }; + + assert.deepIteratesUntil = function (value, exp, msg) { + new Assertion(value, msg).deep.iterate.until(exp); + }; + + assert.doesNotDeepIterateUntil = function (value, exp, msg) { + new Assertion(value, msg).not.deep.iterate.until(exp); + }; + + var _lengthOf = assert.lengthOf; + + assert.lengthOf = function (value, exp, msg) { + if (isIterable(value) && typeof value.length !== 'number') { + new Assertion(value, msg).iterate.for.lengthOf(exp); + } else { + _lengthOf.apply(assert, arguments); + } + }; + + // Helpers ============================================== + + function iterateMethod(predicate, getActual) { + return function (iterable) { + assert(utils.flag(this, 'iterate'), 'the iterate flag must be set'); + new Assertion(iterable).iterable; + + var exp = slice(iterable[Symbol.iterator]()); + var act = getActual.call(this, exp); + + var deep = utils.flag(this, 'deep') ? ' deep' : ''; + + this.assert(compareArrays(exp, act, deep), + 'expected #{this} ' + predicate + deep + ' values #{exp}, but got #{act}', + 'expected #{this} not ' + predicate + deep + ' values #{exp}', + exp, + act + ); + }; + } + + // Utilities ============================================ + + function isIterable(value) { + return value !== undefined && value !== null && typeof value[Symbol.iterator] === 'function'; + } + + function iterableLength(iterable, max) { + max = max === undefined ? Infinity : max; + + var it = iterable[Symbol.iterator](); + + for (var i = 0; i <= max; i++) { + if (it.next().done) { + return i; + } + } + + return Infinity; + } + + function strictEqual(a, b) { + return a === b; + } + + function compareArrays(exp, act, deep) { + var equalFn = deep ? utils.eql : strictEqual; + + return exp.length === act.length && exp.every(function (value, i) { + return equalFn(value, act[i]); + }); + } + + function slice(it, stop) { + stop = stop === undefined ? Infinity : stop; + + var result = []; + var max = stop - 1; + var step = it.next(); + + for (var i = 0; i <= max && !step.done; i++) { + result.push(step.value); + if (i < max) { + step = it.next(); + } + } + + return result; + } + + function unquote(str) { + return { + inspect: function () { + return this.toString(); + }, + toString: function () { + return str; + } + }; + } +}); diff --git a/debian/tests/test_modules/chai-iterator/package.json b/debian/tests/test_modules/chai-iterator/package.json new file mode 100644 index 0000000..34f76c1 --- /dev/null +++ b/debian/tests/test_modules/chai-iterator/package.json @@ -0,0 +1,70 @@ +{ + "name": "chai-iterator", + "version": "3.0.2", + "description": "Chai assertions for iterable objects", + "main": "chai-iterator.js", + "scripts": { + "test:lint": "xo", + "test:mocha": "mocha test/**/*.js", + "test:cover": "nyc npm run test:mocha", + "test": "npm run test:lint && npm run test:cover", + "coveralls": "nyc report --reporter=text-lcov | coveralls" + }, + "files": [ + "chai-iterator.js", + "LICENSE", + "CHANGELOG.md", + "README.md" + ], + "repository": { + "type": "git", + "url": "https://github.com/harrysarson/chai-iterator.git" + }, + "keywords": [ + "chai", + "chai-plugin", + "browser", + "iterator", + "iterable", + "iteration", + "generator", + "yield", + "es6", + "es2015", + "typescript" + ], + "engines": { + "node": ">=6.0" + }, + "author": "Harry Sarson ", + "license": "MIT", + "bugs": { + "url": "https://github.com/harrysarson/chai-iterator/issues" + }, + "homepage": "https://github.com/harrysarson/chai-iterator", + "peerDependencies": { + "chai": "4.x" + }, + "devDependencies": { + "chai": "4.1.2", + "coveralls": "3.0.2", + "mocha": "6.0.0", + "nyc": "13.3.0", + "xo": "0.24.0" + }, + "xo": { + "esnext": false, + "globals": [ + "chai", + "define", + "module" + ], + "env": [ + "mocha" + ], + "rules": { + "no-unused-expressions": "off", + "no-use-extend-native/no-use-extend-native": "off" + } + } +} diff --git a/debian/tests/test_modules/chai-string/LICENSE b/debian/tests/test_modules/chai-string/LICENSE new file mode 100644 index 0000000..900e198 --- /dev/null +++ b/debian/tests/test_modules/chai-string/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) +Copyright (c) 2013 Oleg Nechiporenko + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE +OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/debian/tests/test_modules/chai-string/chai-string.js b/debian/tests/test_modules/chai-string/chai-string.js new file mode 100644 index 0000000..669995d --- /dev/null +++ b/debian/tests/test_modules/chai-string/chai-string.js @@ -0,0 +1,317 @@ +(function (plugin) { + if (typeof require === "function" && typeof exports === "object" && typeof module === "object") { + // NodeJS + module.exports = plugin; + } + else { + if (typeof define === "function" && define.amd) { + // AMD + define(function () { + return plugin; + }); + } + else { + // Other environment (usually