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 /school/node_modules/string-trim-spaces-only | |
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 'school/node_modules/string-trim-spaces-only')
11 files changed, 0 insertions, 656 deletions
diff --git a/school/node_modules/string-trim-spaces-only/CHANGELOG.md b/school/node_modules/string-trim-spaces-only/CHANGELOG.md deleted file mode 100644 index ad7d17a..0000000 --- a/school/node_modules/string-trim-spaces-only/CHANGELOG.md +++ /dev/null @@ -1,97 +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. - -## 3.1.0 (2021-05-24) - -### Features - -- config file based major bump blacklisting ([e15f9bb](https://github.com/codsen/codsen/commit/e15f9bba1c4fd5f847ac28b3f38fa6ee633f5dca)) - -## 3.0.15 (2021-04-11) - -### Reverts - -- Revert "chore: setup refresh" ([23cf206](https://github.com/codsen/codsen/commit/23cf206970a087ff0fa04e61f94d919f59ab3881)) - -## 3.0.1 (2021-01-28) - -### Bug Fixes - -- add testStats to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29)) - -## 3.0.0 (2021-01-23) - -### Features - -- rewrite in TS, start using named exports ([f1af4d2](https://github.com/codsen/codsen/commit/f1af4d2eecbda15edc33f9b9080bc99f495cbd3a)) - -### BREAKING CHANGES - -- previously: `import trimSpaces from ...` - now `import { trimSpaces } from ...` - -## 2.9.0 (2020-11-28) - -Accidental version bump during migration to sourcehut. Sorry about that. - -## 2.8.0 (2019-09-11) - -### Features - -- add granular options to trim (or not) each whitespace type ([c12e5b3](https://gitlab.com/codsen/codsen/commit/c12e5b3)) - -## 2.7.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 - -## 2.3.0 (2018-12-26) - -- ✨ Add `opts.classicTrim` - -## 2.2.0 (2018-10-26) - -- ✨ Updated all dependencies -- ✨ Restored coveralls.io reporting -- ✨ Restored unit test linting - -## 2.1.0 (2018-10-15) - -- ✨ Updated all dependencies and restored unit test coverage tracking: reporting in terminal and coveralls.io - -## 2.0.0 (2018-07-26) - -- 📦 API change: now the result is not a string but a plain object, for example: - -```js -{ - res: "", - ranges: [[0, 1]] -} -``` - -The trimmed string that was previously returned is now returned under key `res`. -Additionally, we also supply ranges of what was deleted under key `ranges`. - -Additionally, now only string input is allowed. Non-string input will cause error `throw`s. We need to make API stricter because output type is different from the input type (string vs plain object) and if an accidentally wrong type, a plain object was given, if we returned it without causing an error, it could be interpreted as a valid output type and cause errors when keys `res` or `ranges` would not be found (or worse, found and consumed from a wrong place)! - -- ✨ PLUS, added `opts.classicTrim`. It's the same as `String.trim()` except you get both string and corresponding ranges. Native `String.trim()` does not give the latter. - -## 1.2.0 (2018-06-16) - -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 - -## 1.1.0 (2018-05-25) - -- ✨ 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. It is important because now code coverage is real again and now there are no excuses not to perfect it. - -## 1.0.0 (2018-02-13) - -- ✨ First public release diff --git a/school/node_modules/string-trim-spaces-only/LICENSE b/school/node_modules/string-trim-spaces-only/LICENSE deleted file mode 100644 index 9ea205b..0000000 --- a/school/node_modules/string-trim-spaces-only/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/school/node_modules/string-trim-spaces-only/README.md b/school/node_modules/string-trim-spaces-only/README.md deleted file mode 100644 index e683d8c..0000000 --- a/school/node_modules/string-trim-spaces-only/README.md +++ /dev/null @@ -1,70 +0,0 @@ -# string-trim-spaces-only - -> Like String.trim() but you can choose granularly what to trim - -<div class="package-badges"> - <a href="https://www.npmjs.com/package/string-trim-spaces-only" 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/string-trim-spaces-only" 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/string-trim-spaces-only" 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/string-trim-spaces-only?interval=30" rel="nofollow noreferrer noopener" target="_blank"> - <img src="https://img.shields.io/npm/dm/string-trim-spaces-only.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 string-trim-spaces-only -``` - -## Quick Take - -```js -import { strict as assert } from "assert"; -import { trimSpaces } from "string-trim-spaces-only"; - -assert.deepEqual(trimSpaces(" aaa "), { - res: "aaa", - ranges: [ - [0, 2], - [5, 8], - ], -}); - -assert.deepEqual(trimSpaces(" \t zz \n "), { - res: "\t zz \n", - ranges: [ - [0, 3], - [12, 16], - ], -}); -``` - -## Documentation - -Please [visit codsen.com](https://codsen.com/os/string-trim-spaces-only/) 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/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.cjs.js b/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.cjs.js deleted file mode 100644 index 33746c8..0000000 --- a/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.cjs.js +++ /dev/null @@ -1,97 +0,0 @@ -/** - * @name string-trim-spaces-only - * @fileoverview Like String.trim() but you can choose granularly what to trim - * @version 3.1.0 - * @author Roy Revelt, Codsen Ltd - * @license MIT - * {@link https://codsen.com/os/string-trim-spaces-only/} - */ - -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); -var _typeof = require('@babel/runtime/helpers/typeof'); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread); -var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof); - -var version$1 = "3.1.0"; - -var version = version$1; -var defaults = { - classicTrim: false, - cr: false, - lf: false, - tab: false, - space: true, - nbsp: false -}; -function trimSpaces(str, originalOpts) { - if (typeof str !== "string") { - throw new Error("string-trim-spaces-only: [THROW_ID_01] input must be string! It was given as ".concat(_typeof__default['default'](str), ", equal to:\n").concat(JSON.stringify(str, null, 4))); - } - var opts = _objectSpread__default['default'](_objectSpread__default['default']({}, defaults), originalOpts); - function check(_char) { - return opts.classicTrim && !_char.trim() || !opts.classicTrim && (opts.space && _char === " " || opts.cr && _char === "\r" || opts.lf && _char === "\n" || opts.tab && _char === "\t" || opts.nbsp && _char === "\xA0"); - } - var newStart; - var newEnd; - if (str.length) { - if (check(str[0])) { - for (var i = 0, len = str.length; i < len; i++) { - if (!check(str[i])) { - newStart = i; - break; - } - if (i === str.length - 1) { - return { - res: "", - ranges: [[0, str.length]] - }; - } - } - } - if (check(str[str.length - 1])) { - for (var _i = str.length; _i--;) { - if (!check(str[_i])) { - newEnd = _i + 1; - break; - } - } - } - if (newStart) { - if (newEnd) { - return { - res: str.slice(newStart, newEnd), - ranges: [[0, newStart], [newEnd, str.length]] - }; - } - return { - res: str.slice(newStart), - ranges: [[0, newStart]] - }; - } - if (newEnd) { - return { - res: str.slice(0, newEnd), - ranges: [[newEnd, str.length]] - }; - } - return { - res: str, - ranges: [] - }; - } - return { - res: "", - ranges: [] - }; -} - -exports.defaults = defaults; -exports.trimSpaces = trimSpaces; -exports.version = version; diff --git a/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.dev.umd.js b/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.dev.umd.js deleted file mode 100644 index 9f9629a..0000000 --- a/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.dev.umd.js +++ /dev/null @@ -1,116 +0,0 @@ -/** - * @name string-trim-spaces-only - * @fileoverview Like String.trim() but you can choose granularly what to trim - * @version 3.1.0 - * @author Roy Revelt, Codsen Ltd - * @license MIT - * {@link https://codsen.com/os/string-trim-spaces-only/} - */ - -(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.stringTrimSpacesOnly = {})); -}(this, (function (exports) { 'use strict'; - -var version$1 = "3.1.0"; - -const version = version$1; -const defaults = { - classicTrim: false, - cr: false, - lf: false, - tab: false, - space: true, - nbsp: false, -}; -function trimSpaces(str, originalOpts) { - // insurance: - if (typeof str !== "string") { - throw new Error(`string-trim-spaces-only: [THROW_ID_01] input must be string! It was given as ${typeof str}, equal to:\n${JSON.stringify(str, null, 4)}`); - } - // opts preparation: - const opts = { ...defaults, ...originalOpts }; - function check(char) { - return ((opts.classicTrim && !char.trim()) || - (!opts.classicTrim && - ((opts.space && char === " ") || - (opts.cr && char === "\r") || - (opts.lf && char === "\n") || - (opts.tab && char === "\t") || - (opts.nbsp && char === "\u00a0")))); - } - // action: - let newStart; - let newEnd; - if (str.length) { - if (check(str[0])) { - for (let i = 0, len = str.length; i < len; i++) { - if (!check(str[i])) { - newStart = i; - break; - } - // if we traversed the whole string this way and didn't stumble on a non- - // space/whitespace character (depending on opts.classicTrim), this means - // whole thing can be trimmed: - if (i === str.length - 1) { - // this means there are only spaces/whitespace from beginning to the end - return { - res: "", - ranges: [[0, str.length]], - }; - } - } - } - // if we reached this far, check the last character - find out, is it worth - // trimming the end of the given string: - if (check(str[str.length - 1])) { - for (let i = str.length; i--;) { - if (!check(str[i])) { - newEnd = i + 1; - break; - } - } - } - if (newStart) { - if (newEnd) { - return { - res: str.slice(newStart, newEnd), - ranges: [ - [0, newStart], - [newEnd, str.length], - ], - }; - } - return { - res: str.slice(newStart), - ranges: [[0, newStart]], - }; - } - if (newEnd) { - return { - res: str.slice(0, newEnd), - ranges: [[newEnd, str.length]], - }; - } - // if we reached this far, there was nothing to trim: - return { - res: str, - ranges: [], - }; - } - // if we reached this far, this means it's an empty string. In which case, - // return empty values: - return { - res: "", - ranges: [], - }; -} - -exports.defaults = defaults; -exports.trimSpaces = trimSpaces; -exports.version = version; - -Object.defineProperty(exports, '__esModule', { value: true }); - -}))); diff --git a/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.esm.js b/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.esm.js deleted file mode 100644 index d241b54..0000000 --- a/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.esm.js +++ /dev/null @@ -1,85 +0,0 @@ -/** - * @name string-trim-spaces-only - * @fileoverview Like String.trim() but you can choose granularly what to trim - * @version 3.1.0 - * @author Roy Revelt, Codsen Ltd - * @license MIT - * {@link https://codsen.com/os/string-trim-spaces-only/} - */ - -var version$1 = "3.1.0"; - -const version = version$1; -const defaults = { - classicTrim: false, - cr: false, - lf: false, - tab: false, - space: true, - nbsp: false -}; -function trimSpaces(str, originalOpts) { - if (typeof str !== "string") { - throw new Error(`string-trim-spaces-only: [THROW_ID_01] input must be string! It was given as ${typeof str}, equal to:\n${JSON.stringify(str, null, 4)}`); - } - const opts = { ...defaults, - ...originalOpts - }; - function check(char) { - return opts.classicTrim && !char.trim() || !opts.classicTrim && (opts.space && char === " " || opts.cr && char === "\r" || opts.lf && char === "\n" || opts.tab && char === "\t" || opts.nbsp && char === "\u00a0"); - } - let newStart; - let newEnd; - if (str.length) { - if (check(str[0])) { - for (let i = 0, len = str.length; i < len; i++) { - if (!check(str[i])) { - newStart = i; - break; - } - if (i === str.length - 1) { - return { - res: "", - ranges: [[0, str.length]] - }; - } - } - } - if (check(str[str.length - 1])) { - for (let i = str.length; i--;) { - if (!check(str[i])) { - newEnd = i + 1; - break; - } - } - } - if (newStart) { - if (newEnd) { - return { - res: str.slice(newStart, newEnd), - ranges: [[0, newStart], [newEnd, str.length]] - }; - } - return { - res: str.slice(newStart), - ranges: [[0, newStart]] - }; - } - if (newEnd) { - return { - res: str.slice(0, newEnd), - ranges: [[newEnd, str.length]] - }; - } - return { - res: str, - ranges: [] - }; - } - return { - res: "", - ranges: [] - }; -} - -export { defaults, trimSpaces, version }; diff --git a/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.umd.js b/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.umd.js deleted file mode 100644 index c7e8716..0000000 --- a/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.umd.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @name string-trim-spaces-only - * @fileoverview Like String.trim() but you can choose granularly what to trim - * @version 3.1.0 - * @author Roy Revelt, Codsen Ltd - * @license MIT - * {@link https://codsen.com/os/string-trim-spaces-only/} - */ - -!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).stringTrimSpacesOnly={})}(this,(function(e){"use strict";const n={classicTrim:!1,cr:!1,lf:!1,tab:!1,space:!0,nbsp:!1};e.defaults=n,e.trimSpaces=function(e,t){if("string"!=typeof e)throw new Error(`string-trim-spaces-only: [THROW_ID_01] input must be string! It was given as ${typeof e}, equal to:\n${JSON.stringify(e,null,4)}`);const s={...n,...t};function r(e){return s.classicTrim&&!e.trim()||!s.classicTrim&&(s.space&&" "===e||s.cr&&"\r"===e||s.lf&&"\n"===e||s.tab&&"\t"===e||s.nbsp&&" "===e)}let i,l;if(e.length){if(r(e[0]))for(let n=0,t=e.length;n<t;n++){if(!r(e[n])){i=n;break}if(n===e.length-1)return{res:"",ranges:[[0,e.length]]}}if(r(e[e.length-1]))for(let n=e.length;n--;)if(!r(e[n])){l=n+1;break}return i?l?{res:e.slice(i,l),ranges:[[0,i],[l,e.length]]}:{res:e.slice(i),ranges:[[0,i]]}:l?{res:e.slice(0,l),ranges:[[l,e.length]]}:{res:e,ranges:[]}}return{res:"",ranges:[]}},e.version="3.1.0",Object.defineProperty(e,"__esModule",{value:!0})})); diff --git a/school/node_modules/string-trim-spaces-only/examples/_quickTake.js b/school/node_modules/string-trim-spaces-only/examples/_quickTake.js deleted file mode 100644 index 041a490..0000000 --- a/school/node_modules/string-trim-spaces-only/examples/_quickTake.js +++ /dev/null @@ -1,20 +0,0 @@ -// Quick Take - -import { strict as assert } from "assert"; -import { trimSpaces } from "../dist/string-trim-spaces-only.esm.js"; - -assert.deepEqual(trimSpaces(" aaa "), { - res: "aaa", - ranges: [ - [0, 2], - [5, 8], - ], -}); - -assert.deepEqual(trimSpaces(" \t zz \n "), { - res: "\t zz \n", - ranges: [ - [0, 3], - [12, 16], - ], -}); diff --git a/school/node_modules/string-trim-spaces-only/examples/api.json b/school/node_modules/string-trim-spaces-only/examples/api.json deleted file mode 100644 index d7b0861..0000000 --- a/school/node_modules/string-trim-spaces-only/examples/api.json +++ /dev/null @@ -1 +0,0 @@ -{"_quickTake.js":{"title":"Quick Take","content":"import { strict as assert } from \"assert\";\nimport { trimSpaces } from \"string-trim-spaces-only\";\n\nassert.deepEqual(trimSpaces(\" aaa \"), {\n res: \"aaa\",\n ranges: [\n [0, 2],\n [5, 8],\n ],\n});\n\nassert.deepEqual(trimSpaces(\" \\t zz \\n \"), {\n res: \"\\t zz \\n\",\n ranges: [\n [0, 3],\n [12, 16],\n ],\n});"}}
\ No newline at end of file diff --git a/school/node_modules/string-trim-spaces-only/package.json b/school/node_modules/string-trim-spaces-only/package.json deleted file mode 100644 index cf0a9ff..0000000 --- a/school/node_modules/string-trim-spaces-only/package.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "name": "string-trim-spaces-only", - "version": "3.1.0", - "description": "Like String.trim() but you can choose granularly what to trim", - "keywords": [ - "characters", - "end", - "front", - "just", - "only", - "space", - "spaces", - "string", - "text", - "trim" - ], - "homepage": "https://codsen.com/os/string-trim-spaces-only/", - "repository": { - "type": "git", - "url": "https://github.com/codsen/codsen.git", - "directory": "packages/string-trim-spaces-only" - }, - "license": "MIT", - "author": { - "name": "Roy Revelt", - "email": "roy@codsen.com", - "url": "https://codsen.com" - }, - "main": "dist/string-trim-spaces-only.cjs.js", - "module": "dist/string-trim-spaces-only.esm.js", - "browser": "dist/string-trim-spaces-only.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": "{ trimSpaces }", - "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/school/node_modules/string-trim-spaces-only/types/index.d.ts b/school/node_modules/string-trim-spaces-only/types/index.d.ts deleted file mode 100644 index 05c7bef..0000000 --- a/school/node_modules/string-trim-spaces-only/types/index.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -declare type Range = [from: number, to: number] | [from: number, to: number, whatToInsert: string | null | undefined]; -declare type Ranges = Range[] | null; - -declare const version: string; - -interface Opts { - classicTrim: boolean; - cr: boolean; - lf: boolean; - tab: boolean; - space: boolean; - nbsp: boolean; -} -declare const defaults: Opts; -interface Res { - res: string; - ranges: Ranges; -} -declare function trimSpaces(str: string, originalOpts?: Partial<Opts>): Res; - -export { defaults, trimSpaces, version }; |