diff options
author | Minteck <contact@minteck.org> | 2023-02-23 19:34:56 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2023-02-23 19:34:56 +0100 |
commit | 3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 (patch) | |
tree | 75be5fba4368472fb11c8015aee026b2b9a71888 /includes/external/school/node_modules/ranges-sort | |
parent | 8cc1f13c17fa2fb5a4410542d39e650e02945634 (diff) | |
download | pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.gz pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.bz2 pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.zip |
Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated)
Diffstat (limited to 'includes/external/school/node_modules/ranges-sort')
11 files changed, 611 insertions, 0 deletions
diff --git a/includes/external/school/node_modules/ranges-sort/CHANGELOG.md b/includes/external/school/node_modules/ranges-sort/CHANGELOG.md new file mode 100644 index 0000000..e91319a --- /dev/null +++ b/includes/external/school/node_modules/ranges-sort/CHANGELOG.md @@ -0,0 +1,118 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +## 4.1.0 (2021-05-24) + +### Features + +- config file based major bump blacklisting ([e15f9bb](https://github.com/codsen/codsen/commit/e15f9bba1c4fd5f847ac28b3f38fa6ee633f5dca)) + +## 4.0.15 (2021-04-11) + +### Reverts + +- Revert "chore: setup refresh" ([23cf206](https://github.com/codsen/codsen/commit/23cf206970a087ff0fa04e61f94d919f59ab3881)) + +## 4.0.1 (2021-01-28) + +### Bug Fixes + +- add testStats to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29)) + +## 4.0.0 (2021-01-23) + +### Features + +- rewrite in TS and start using named exports ([353f021](https://github.com/codsen/codsen/commit/353f0210d4b6d7145636f4a3851cc6218e30b664)) + +### BREAKING CHANGES + +- previously: `import rsort from ...` - now `import { rSort } from ...` + +## 3.14.0 (2020-11-28) + +Accidental version bump during migration to sourcehut. Sorry about that. + +## 3.13.0 (2020-09-07) + +### Features + +- discard any nulls among the ranges ([5f86fbc](https://gitlab.com/codsen/codsen/commit/5f86fbcb0989fe3e2f7b19ffd9665b2725266e89)) + +## 3.12.0 (2020-05-24) + +### Features + +- don't throw error if input is not array or it's empty - just quickly return it ([e169a87](https://gitlab.com/codsen/codsen/commit/e169a8747c3a98411d8e7923af334ddc1c6b1fe1)) + +## 3.11.0 (2020-02-01) + +### Features + +- remove all dependencies ([3c8fda8](https://gitlab.com/codsen/codsen/commit/3c8fda875584044b54a3f27e7406b71881f3b6a6)) + +## 3.10.39 (2019-10-02) + +### Performance Improvements + +- remove orginal number package and check-types-mini, make 165 times faster ([6e995c5](https://gitlab.com/codsen/codsen/commit/6e995c5)) + +## 3.10.0 (2019-01-20) + +- ✨ Various documentation and setup tweaks after we migrated to monorepo +- ✨ Setup refresh: updated dependencies and all config files using automated tools + +## 3.6.0 (2018-12-26) + +- ✨ Add `opts.progressFn` ([09de99c](https://gitlab.com/codsen/codsen/tree/master/packages/ranges-sort/commits/09de99c)) + +## 3.5.0 (2018-11-29) + +- ✨ Add `opts.progressFn` - if you pass a function, it will report the progress, calling that function with a number between `0` and `100`. It's not precise and meant to be used as an approximate progress indicator. + +## 3.4.0 (2018-10-25) + +- ✨ Updated all dependencies +- ✨ Restored coveralls.io reporting +- ✨ Restored unit test linting + +## 3.3.0 (2018-06-11) + +GitHub sold us out. In the meantime, we: + +- ✨ Migrated to BitBucket (to host repo + perform CI) and Codacy (for code quality audit) +- ✨ Dropped BitHound (RIP) and Travis +- ✨ Removed `package-lock` + +## 3.2.0 (2018-05-26) + +- ✨ Set up [Prettier](https://prettier.io) on a custom ESLint rule set. +- ✨ Removed `package.lock` and `.editorconfig` +- ✨ Wired Rollup to remove comments from non-dev builds. This means we can now leave the `console.log`s in the source code — there's no need to comment-out `console.log` statements or care about them not spilling into production. Now it's done automatically. +- ✨ Unit tests are pointing at ES modules build, which means that code coverage is correct now, without Babel functions being missed. This is important because now code coverage is real again and now there are no excuses not to perfect it. + +## 3.1.0 (2018-01-10) + +- ✨ Updated all dependencies and setup in general + +## 3.0.0 (2017-12-03) + +- ✨ Set up Rollup, generating three builds: CommonJS, UMD and ES Modules +- ✨ Rebase the code to be natively in ES Modules + +**PS. Bumping major just in case this breaks API endpoints.** + +## 2.1.0 (2017-09-13) + +- ✨ Add more description in readme +- ✨ Add more unit tests, including tests for examples used in readme + +## 2.0.0 (2017-09-12) + +- ✨ Add `opts.strictlyTwoElementsInRangeArrays` (default is `false`, differently from v1 which is opposite) + +## 1.0.0 (2017-09-11) + +- ✨ Initial release diff --git a/includes/external/school/node_modules/ranges-sort/LICENSE b/includes/external/school/node_modules/ranges-sort/LICENSE new file mode 100644 index 0000000..9ea205b --- /dev/null +++ b/includes/external/school/node_modules/ranges-sort/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2010-%YEAR% Roy Revelt and other contributors + +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/includes/external/school/node_modules/ranges-sort/README.md b/includes/external/school/node_modules/ranges-sort/README.md new file mode 100644 index 0000000..a13f759 --- /dev/null +++ b/includes/external/school/node_modules/ranges-sort/README.md @@ -0,0 +1,68 @@ +# ranges-sort + +> Sort string index ranges + +<div class="package-badges"> + <a href="https://www.npmjs.com/package/ranges-sort" rel="nofollow noreferrer noopener"> + <img src="https://img.shields.io/badge/-npm-blue?style=flat-square" alt="page on npm"> + </a> + <a href="https://codsen.com/os/ranges-sort" rel="nofollow noreferrer noopener"> + <img src="https://img.shields.io/badge/-codsen-blue?style=flat-square" alt="page on codsen.com"> + </a> + <a href="https://github.com/codsen/codsen/tree/main/packages/ranges-sort" rel="nofollow noreferrer noopener"> + <img src="https://img.shields.io/badge/-github-blue?style=flat-square" alt="page on github"> + </a> + <a href="https://npmcharts.com/compare/ranges-sort?interval=30" rel="nofollow noreferrer noopener" target="_blank"> + <img src="https://img.shields.io/npm/dm/ranges-sort.svg?style=flat-square" alt="Downloads per month"> + </a> + <a href="https://prettier.io" rel="nofollow noreferrer noopener" target="_blank"> + <img src="https://img.shields.io/badge/code_style-prettier-brightgreen.svg?style=flat-square" alt="Code style: prettier"> + </a> + <img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT License"> + <a href="https://liberamanifesto.com" rel="nofollow noreferrer noopener" target="_blank"> + <img src="https://img.shields.io/badge/libera-manifesto-lightgrey.svg?style=flat-square" alt="libera manifesto"> + </a> +</div> + +## Install + +```bash +npm i ranges-sort +``` + +## Quick Take + +```js +import { strict as assert } from "assert"; +import { rSort } from "ranges-sort"; + +// Ranges (see codsen.com/ranges/) are sorted: +assert.deepEqual( + rSort([ + [2, 3], + [9, 10, "bad grey wolf"], + [1, 2], + ]), + [ + [1, 2], + [2, 3], + [9, 10, "bad grey wolf"], + ] +); +``` + +## Documentation + +Please [visit codsen.com](https://codsen.com/os/ranges-sort/) for a full description of the API and examples. + +## Contributing + +To report bugs or request features or assistance, [raise an issue](https://github.com/codsen/codsen/issues/new/choose) on GitHub. + +## Licence + +MIT License + +Copyright (c) 2010-2021 Roy Revelt and other contributors + +<img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"> diff --git a/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.cjs.js b/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.cjs.js new file mode 100644 index 0000000..03dde06 --- /dev/null +++ b/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.cjs.js @@ -0,0 +1,86 @@ +/** + * @name ranges-sort + * @fileoverview Sort string index ranges + * @version 4.1.0 + * @author Roy Revelt, Codsen Ltd + * @license MIT + * {@link https://codsen.com/os/ranges-sort/} + */ + +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread); + +var version$1 = "4.1.0"; + +var version = version$1; +var defaults = { + strictlyTwoElementsInRangeArrays: false, + progressFn: null +}; +function rSort(arrOfRanges, originalOptions) { + if (!Array.isArray(arrOfRanges) || !arrOfRanges.length) { + return arrOfRanges; + } + var opts = _objectSpread__default['default'](_objectSpread__default['default']({}, defaults), originalOptions); + var culpritsIndex; + var culpritsLen; + if (opts.strictlyTwoElementsInRangeArrays && !arrOfRanges.filter(function (range) { + return range; + }).every(function (rangeArr, indx) { + if (rangeArr.length !== 2) { + culpritsIndex = indx; + culpritsLen = rangeArr.length; + return false; + } + return true; + })) { + throw new TypeError("ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ".concat(culpritsIndex, "th range (").concat(JSON.stringify(arrOfRanges[culpritsIndex], null, 4), ") has not two but ").concat(culpritsLen, " elements!")); + } + if (!arrOfRanges.filter(function (range) { + return range; + }).every(function (rangeArr, indx) { + if (!Number.isInteger(rangeArr[0]) || rangeArr[0] < 0 || !Number.isInteger(rangeArr[1]) || rangeArr[1] < 0) { + culpritsIndex = indx; + return false; + } + return true; + })) { + throw new TypeError("ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ".concat(culpritsIndex, "th range (").concat(JSON.stringify(arrOfRanges[culpritsIndex], null, 4), ") does not consist of only natural numbers!")); + } + var maxPossibleIterations = Math.pow(arrOfRanges.filter(function (range) { + return range; + }).length, 2); + var counter = 0; + return Array.from(arrOfRanges).filter(function (range) { + return range; + }).sort(function (range1, range2) { + if (opts.progressFn) { + counter += 1; + opts.progressFn(Math.floor(counter * 100 / maxPossibleIterations)); + } + if (range1[0] === range2[0]) { + if (range1[1] < range2[1]) { + return -1; + } + if (range1[1] > range2[1]) { + return 1; + } + return 0; + } + if (range1[0] < range2[0]) { + return -1; + } + return 1; + }); +} + +exports.defaults = defaults; +exports.rSort = rSort; +exports.version = version; diff --git a/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.dev.umd.js b/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.dev.umd.js new file mode 100644 index 0000000..ea07705 --- /dev/null +++ b/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.dev.umd.js @@ -0,0 +1,94 @@ +/** + * @name ranges-sort + * @fileoverview Sort string index ranges + * @version 4.1.0 + * @author Roy Revelt, Codsen Ltd + * @license MIT + * {@link https://codsen.com/os/ranges-sort/} + */ + +(function (global, factory) { +typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : +typeof define === 'function' && define.amd ? define(['exports'], factory) : +(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.rangesSort = {})); +}(this, (function (exports) { 'use strict'; + +var version$1 = "4.1.0"; + +const version = version$1; +const defaults = { + strictlyTwoElementsInRangeArrays: false, + progressFn: null, +}; +function rSort(arrOfRanges, originalOptions) { + // quick ending + if (!Array.isArray(arrOfRanges) || !arrOfRanges.length) { + return arrOfRanges; + } + // fill any settings with defaults if missing: + const opts = { ...defaults, ...originalOptions }; + // arrOfRanges validation + let culpritsIndex; + let culpritsLen; + // validate does every range consist of exactly two indexes: + if (opts.strictlyTwoElementsInRangeArrays && + !arrOfRanges + .filter((range) => range) + .every((rangeArr, indx) => { + if (rangeArr.length !== 2) { + culpritsIndex = indx; + culpritsLen = rangeArr.length; + return false; + } + return true; + })) { + throw new TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${culpritsIndex}th range (${JSON.stringify(arrOfRanges[culpritsIndex], null, 4)}) has not two but ${culpritsLen} elements!`); + } + // validate are range indexes natural numbers: + if (!arrOfRanges + .filter((range) => range) + .every((rangeArr, indx) => { + if (!Number.isInteger(rangeArr[0]) || + rangeArr[0] < 0 || + !Number.isInteger(rangeArr[1]) || + rangeArr[1] < 0) { + culpritsIndex = indx; + return false; + } + return true; + })) { + throw new TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${culpritsIndex}th range (${JSON.stringify(arrOfRanges[culpritsIndex], null, 4)}) does not consist of only natural numbers!`); + } + // let's assume worst case scenario is N x N. + const maxPossibleIterations = arrOfRanges.filter((range) => range).length ** 2; + let counter = 0; + return Array.from(arrOfRanges) + .filter((range) => range) + .sort((range1, range2) => { + if (opts.progressFn) { + counter += 1; + opts.progressFn(Math.floor((counter * 100) / maxPossibleIterations)); + } + if (range1[0] === range2[0]) { + if (range1[1] < range2[1]) { + return -1; + } + if (range1[1] > range2[1]) { + return 1; + } + return 0; + } + if (range1[0] < range2[0]) { + return -1; + } + return 1; + }); +} + +exports.defaults = defaults; +exports.rSort = rSort; +exports.version = version; + +Object.defineProperty(exports, '__esModule', { value: true }); + +}))); diff --git a/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.esm.js b/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.esm.js new file mode 100644 index 0000000..31f0662 --- /dev/null +++ b/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.esm.js @@ -0,0 +1,68 @@ +/** + * @name ranges-sort + * @fileoverview Sort string index ranges + * @version 4.1.0 + * @author Roy Revelt, Codsen Ltd + * @license MIT + * {@link https://codsen.com/os/ranges-sort/} + */ + +var version$1 = "4.1.0"; + +const version = version$1; +const defaults = { + strictlyTwoElementsInRangeArrays: false, + progressFn: null +}; +function rSort(arrOfRanges, originalOptions) { + if (!Array.isArray(arrOfRanges) || !arrOfRanges.length) { + return arrOfRanges; + } + const opts = { ...defaults, + ...originalOptions + }; + let culpritsIndex; + let culpritsLen; + if (opts.strictlyTwoElementsInRangeArrays && !arrOfRanges.filter(range => range).every((rangeArr, indx) => { + if (rangeArr.length !== 2) { + culpritsIndex = indx; + culpritsLen = rangeArr.length; + return false; + } + return true; + })) { + throw new TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${culpritsIndex}th range (${JSON.stringify(arrOfRanges[culpritsIndex], null, 4)}) has not two but ${culpritsLen} elements!`); + } + if (!arrOfRanges.filter(range => range).every((rangeArr, indx) => { + if (!Number.isInteger(rangeArr[0]) || rangeArr[0] < 0 || !Number.isInteger(rangeArr[1]) || rangeArr[1] < 0) { + culpritsIndex = indx; + return false; + } + return true; + })) { + throw new TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${culpritsIndex}th range (${JSON.stringify(arrOfRanges[culpritsIndex], null, 4)}) does not consist of only natural numbers!`); + } + const maxPossibleIterations = arrOfRanges.filter(range => range).length ** 2; + let counter = 0; + return Array.from(arrOfRanges).filter(range => range).sort((range1, range2) => { + if (opts.progressFn) { + counter += 1; + opts.progressFn(Math.floor(counter * 100 / maxPossibleIterations)); + } + if (range1[0] === range2[0]) { + if (range1[1] < range2[1]) { + return -1; + } + if (range1[1] > range2[1]) { + return 1; + } + return 0; + } + if (range1[0] < range2[0]) { + return -1; + } + return 1; + }); +} + +export { defaults, rSort, version }; diff --git a/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.umd.js b/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.umd.js new file mode 100644 index 0000000..2be317f --- /dev/null +++ b/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.umd.js @@ -0,0 +1,10 @@ +/** + * @name ranges-sort + * @fileoverview Sort string index ranges + * @version 4.1.0 + * @author Roy Revelt, Codsen Ltd + * @license MIT + * {@link https://codsen.com/os/ranges-sort/} + */ + +!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).rangesSort={})}(this,(function(e){"use strict";const r={strictlyTwoElementsInRangeArrays:!1,progressFn:null};e.defaults=r,e.rSort=function(e,n){if(!Array.isArray(e)||!e.length)return e;const t={...r,...n};let s,o;if(t.strictlyTwoElementsInRangeArrays&&!e.filter((e=>e)).every(((e,r)=>2===e.length||(s=r,o=e.length,!1))))throw new TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${s}th range (${JSON.stringify(e[s],null,4)}) has not two but ${o} elements!`);if(!e.filter((e=>e)).every(((e,r)=>!(!Number.isInteger(e[0])||e[0]<0||!Number.isInteger(e[1])||e[1]<0)||(s=r,!1))))throw new TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${s}th range (${JSON.stringify(e[s],null,4)}) does not consist of only natural numbers!`);const i=e.filter((e=>e)).length**2;let a=0;return Array.from(e).filter((e=>e)).sort(((e,r)=>(t.progressFn&&(a+=1,t.progressFn(Math.floor(100*a/i))),e[0]===r[0]?e[1]<r[1]?-1:e[1]>r[1]?1:0:e[0]<r[0]?-1:1)))},e.version="4.1.0",Object.defineProperty(e,"__esModule",{value:!0})})); diff --git a/includes/external/school/node_modules/ranges-sort/examples/_quickTake.js b/includes/external/school/node_modules/ranges-sort/examples/_quickTake.js new file mode 100644 index 0000000..68edf75 --- /dev/null +++ b/includes/external/school/node_modules/ranges-sort/examples/_quickTake.js @@ -0,0 +1,18 @@ +// Quick Take + +import { strict as assert } from "assert"; +import { rSort } from "../dist/ranges-sort.esm.js"; + +// Ranges (see codsen.com/ranges/) are sorted: +assert.deepEqual( + rSort([ + [2, 3], + [9, 10, "bad grey wolf"], + [1, 2], + ]), + [ + [1, 2], + [2, 3], + [9, 10, "bad grey wolf"], + ] +); diff --git a/includes/external/school/node_modules/ranges-sort/examples/api.json b/includes/external/school/node_modules/ranges-sort/examples/api.json new file mode 100644 index 0000000..bbf2876 --- /dev/null +++ b/includes/external/school/node_modules/ranges-sort/examples/api.json @@ -0,0 +1 @@ +{"_quickTake.js":{"title":"Quick Take","content":"import { strict as assert } from \"assert\";\nimport { rSort } from \"ranges-sort\";\n\n// Ranges (see codsen.com/ranges/) are sorted:\nassert.deepEqual(\n rSort([\n [2, 3],\n [9, 10, \"bad grey wolf\"],\n [1, 2],\n ]),\n [\n [1, 2],\n [2, 3],\n [9, 10, \"bad grey wolf\"],\n ]\n);"}}
\ No newline at end of file diff --git a/includes/external/school/node_modules/ranges-sort/package.json b/includes/external/school/node_modules/ranges-sort/package.json new file mode 100644 index 0000000..464a4e7 --- /dev/null +++ b/includes/external/school/node_modules/ranges-sort/package.json @@ -0,0 +1,112 @@ +{ + "name": "ranges-sort", + "version": "4.1.0", + "description": "Sort string index ranges", + "keywords": [ + "array", + "indexes", + "ranges", + "sort", + "string" + ], + "homepage": "https://codsen.com/os/ranges-sort/", + "repository": { + "type": "git", + "url": "https://github.com/codsen/codsen.git", + "directory": "packages/ranges-sort" + }, + "license": "MIT", + "author": { + "name": "Roy Revelt", + "email": "roy@codsen.com", + "url": "https://codsen.com" + }, + "main": "dist/ranges-sort.cjs.js", + "module": "dist/ranges-sort.esm.js", + "browser": "dist/ranges-sort.umd.js", + "types": "types/index.d.ts", + "scripts": { + "build": "rollup -c", + "esbuild": "node '../../scripts/esbuild.js'", + "esbuild_dev": "cross-env MODE=dev node '../../scripts/esbuild.js'", + "ci_test": "npm run build && npm run format && tap --no-only --reporter=silent --output-file=testStats.md && npm run clean_cov", + "dev": "rollup -c --dev", + "devunittest": "npm run dev && tap --only -R 'base'", + "format": "npm run lect && npm run prettier && npm run lint", + "lect": "lect", + "lint": "../../node_modules/eslint/bin/eslint.js . --ext .js --ext .ts --fix --config \"../../.eslintrc.json\" --quiet", + "perf": "node perf/check", + "prettier": "../../node_modules/prettier/bin-prettier.js '*.{js,css,scss,vue,md,ts}' --write --loglevel silent", + "republish": "npm publish || :", + "tap": "tap", + "tsc": "tsc", + "pretest": "npm run build", + "test": "npm run lint && npm run unittest && npm run test:examples && npm run clean_cov && npm run format", + "test:examples": "../../scripts/test-examples.js && npm run lect && npm run prettier", + "unittest": "./node_modules/.bin/tap --no-only --output-file=testStats.md --reporter=terse && tsc -p tsconfig.json --noEmit && npm run clean_cov && npm run perf", + "clean_cov": "../../scripts/leaveCoverageTotalOnly.js", + "clean_types": "../../scripts/cleanTypes.js" + }, + "tap": { + "coverage-report": [ + "json-summary", + "text" + ], + "nyc-arg": [ + "--exclude=**/*.cjs.js", + "--exclude=**/*.umd.js" + ], + "timeout": 0 + }, + "lect": { + "licence": { + "extras": [ + "" + ] + }, + "req": "{ rSort }", + "various": { + "devDependencies": [] + } + }, + "dependencies": { + "@babel/runtime": "^7.14.0" + }, + "devDependencies": { + "@babel/cli": "^7.14.3", + "@babel/core": "^7.14.3", + "@babel/node": "^7.14.2", + "@babel/plugin-external-helpers": "^7.12.13", + "@babel/plugin-proposal-class-properties": "^7.13.0", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.2", + "@babel/plugin-proposal-object-rest-spread": "^7.14.2", + "@babel/plugin-proposal-optional-chaining": "^7.14.2", + "@babel/plugin-transform-runtime": "^7.14.3", + "@babel/preset-env": "^7.14.2", + "@babel/preset-typescript": "^7.13.0", + "@babel/register": "^7.13.16", + "@rollup/plugin-babel": "^5.3.0", + "@rollup/plugin-commonjs": "^19.0.0", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-node-resolve": "^13.0.0", + "@rollup/plugin-strip": "^2.0.1", + "@rollup/plugin-typescript": "^8.2.1", + "@types/node": "^15.6.0", + "@types/tap": "^15.0.1", + "@typescript-eslint/eslint-plugin": "^4.24.0", + "@typescript-eslint/parser": "^4.24.0", + "core-js": "^3.12.1", + "cross-env": "^7.0.3", + "eslint": "^7.27.0", + "lect": "^0.17.0", + "rollup": "^2.49.0", + "rollup-plugin-ascii": "^0.0.3", + "rollup-plugin-banner": "^0.2.1", + "rollup-plugin-cleanup": "^3.2.1", + "rollup-plugin-dts": "^3.0.1", + "rollup-plugin-terser": "^7.0.2", + "tap": "^14.11.0", + "tslib": "^2.2.0", + "typescript": "^4.2.4" + } +} diff --git a/includes/external/school/node_modules/ranges-sort/types/index.d.ts b/includes/external/school/node_modules/ranges-sort/types/index.d.ts new file mode 100644 index 0000000..f2f8423 --- /dev/null +++ b/includes/external/school/node_modules/ranges-sort/types/index.d.ts @@ -0,0 +1,14 @@ +declare type Range = [from: number, to: number] | [from: number, to: number, whatToInsert: string | null | undefined]; +declare type Ranges = Range[] | null; + +declare const version: string; + +declare type ProgressFn = (percentageDone: number) => void; +interface Opts { + strictlyTwoElementsInRangeArrays: boolean; + progressFn: undefined | null | ProgressFn; +} +declare const defaults: Opts; +declare function rSort(arrOfRanges: Ranges, originalOptions?: Partial<Opts>): Ranges; + +export { defaults, rSort, version }; |