From 23563c7188e089929b60f9e10721c6fc43a220ff Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 22 Jun 2023 23:06:12 +0200 Subject: Updated 15 files, added includes/maintenance/deleteUnusedAssets.php and deleted 4944 files (automated) --- .../school/node_modules/ranges-sort/CHANGELOG.md | 118 --------------------- .../school/node_modules/ranges-sort/LICENSE | 22 ---- .../school/node_modules/ranges-sort/README.md | 68 ------------ .../ranges-sort/dist/ranges-sort.cjs.js | 86 --------------- .../ranges-sort/dist/ranges-sort.dev.umd.js | 94 ---------------- .../ranges-sort/dist/ranges-sort.esm.js | 68 ------------ .../ranges-sort/dist/ranges-sort.umd.js | 10 -- .../ranges-sort/examples/_quickTake.js | 18 ---- .../node_modules/ranges-sort/examples/api.json | 1 - .../school/node_modules/ranges-sort/package.json | 112 ------------------- .../node_modules/ranges-sort/types/index.d.ts | 14 --- 11 files changed, 611 deletions(-) delete mode 100644 includes/external/school/node_modules/ranges-sort/CHANGELOG.md delete mode 100644 includes/external/school/node_modules/ranges-sort/LICENSE delete mode 100644 includes/external/school/node_modules/ranges-sort/README.md delete mode 100644 includes/external/school/node_modules/ranges-sort/dist/ranges-sort.cjs.js delete mode 100644 includes/external/school/node_modules/ranges-sort/dist/ranges-sort.dev.umd.js delete mode 100644 includes/external/school/node_modules/ranges-sort/dist/ranges-sort.esm.js delete mode 100644 includes/external/school/node_modules/ranges-sort/dist/ranges-sort.umd.js delete mode 100644 includes/external/school/node_modules/ranges-sort/examples/_quickTake.js delete mode 100644 includes/external/school/node_modules/ranges-sort/examples/api.json delete mode 100644 includes/external/school/node_modules/ranges-sort/package.json delete mode 100644 includes/external/school/node_modules/ranges-sort/types/index.d.ts (limited to 'includes/external/school/node_modules/ranges-sort') diff --git a/includes/external/school/node_modules/ranges-sort/CHANGELOG.md b/includes/external/school/node_modules/ranges-sort/CHANGELOG.md deleted file mode 100644 index e91319a..0000000 --- a/includes/external/school/node_modules/ranges-sort/CHANGELOG.md +++ /dev/null @@ -1,118 +0,0 @@ -# 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 deleted file mode 100644 index 9ea205b..0000000 --- a/includes/external/school/node_modules/ranges-sort/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -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 deleted file mode 100644 index a13f759..0000000 --- a/includes/external/school/node_modules/ranges-sort/README.md +++ /dev/null @@ -1,68 +0,0 @@ -# ranges-sort - -> Sort string index ranges - -
- - page on npm - - - page on codsen.com - - - page on github - - - Downloads per month - - - Code style: prettier - - MIT License - - libera manifesto - -
- -## 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 - -ok codsen star 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 deleted file mode 100644 index 03dde06..0000000 --- a/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.cjs.js +++ /dev/null @@ -1,86 +0,0 @@ -/** - * @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 deleted file mode 100644 index ea07705..0000000 --- a/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.dev.umd.js +++ /dev/null @@ -1,94 +0,0 @@ -/** - * @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 deleted file mode 100644 index 31f0662..0000000 --- a/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.esm.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * @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 deleted file mode 100644 index 2be317f..0000000 --- a/includes/external/school/node_modules/ranges-sort/dist/ranges-sort.umd.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @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:0:e[0] void; -interface Opts { - strictlyTwoElementsInRangeArrays: boolean; - progressFn: undefined | null | ProgressFn; -} -declare const defaults: Opts; -declare function rSort(arrOfRanges: Ranges, originalOptions?: Partial): Ranges; - -export { defaults, rSort, version }; -- cgit