diff options
Diffstat (limited to 'backend/node_modules/set-function-length')
| -rw-r--r-- | backend/node_modules/set-function-length/.eslintrc | 27 | ||||
| -rw-r--r-- | backend/node_modules/set-function-length/.github/FUNDING.yml | 12 | ||||
| -rw-r--r-- | backend/node_modules/set-function-length/.nycrc | 13 | ||||
| -rw-r--r-- | backend/node_modules/set-function-length/CHANGELOG.md | 41 | ||||
| -rw-r--r-- | backend/node_modules/set-function-length/LICENSE | 21 | ||||
| -rw-r--r-- | backend/node_modules/set-function-length/README.md | 56 | ||||
| -rw-r--r-- | backend/node_modules/set-function-length/env.js | 19 | ||||
| -rw-r--r-- | backend/node_modules/set-function-length/index.js | 41 | ||||
| -rw-r--r-- | backend/node_modules/set-function-length/package.json | 84 |
9 files changed, 0 insertions, 314 deletions
diff --git a/backend/node_modules/set-function-length/.eslintrc b/backend/node_modules/set-function-length/.eslintrc deleted file mode 100644 index 7cff507..0000000 --- a/backend/node_modules/set-function-length/.eslintrc +++ /dev/null @@ -1,27 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "rules": { - "id-length": "off", - "new-cap": ["error", { - "capIsNewExceptions": [ - "GetIntrinsic" - ], - }], - "no-extra-parens": "off", - }, - - "overrides": [ - { - "files": ["test/**/*.js"], - "rules": { - "id-length": "off", - "max-lines-per-function": "off", - "multiline-comment-style": "off", - "no-empty-function": "off", - }, - }, - ], -} diff --git a/backend/node_modules/set-function-length/.github/FUNDING.yml b/backend/node_modules/set-function-length/.github/FUNDING.yml deleted file mode 100644 index 92feb6f..0000000 --- a/backend/node_modules/set-function-length/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/set-function-name -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with a single custom sponsorship URL diff --git a/backend/node_modules/set-function-length/.nycrc b/backend/node_modules/set-function-length/.nycrc deleted file mode 100644 index 1826526..0000000 --- a/backend/node_modules/set-function-length/.nycrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "lines": 86, - "statements": 85.93, - "functions": 82.43, - "branches": 76.06, - "exclude": [ - "coverage", - "test" - ] -} diff --git a/backend/node_modules/set-function-length/CHANGELOG.md b/backend/node_modules/set-function-length/CHANGELOG.md deleted file mode 100644 index 9539676..0000000 --- a/backend/node_modules/set-function-length/CHANGELOG.md +++ /dev/null @@ -1,41 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v1.1.1](https://github.com/ljharb/set-function-length/compare/v1.1.0...v1.1.1) - 2023-10-19 - -### Fixed - -- [Fix] move `define-data-property` to runtime deps [`#2`](https://github.com/ljharb/set-function-length/issues/2) - -### Commits - -- [Dev Deps] update `object-inspect`; add missing `call-bind` [`5aecf79`](https://github.com/ljharb/set-function-length/commit/5aecf79e7d6400957a5d9bd9ac20d4528908ca18) - -## [v1.1.0](https://github.com/ljharb/set-function-length/compare/v1.0.1...v1.1.0) - 2023-10-13 - -### Commits - -- [New] add `env` entry point [`475c87a`](https://github.com/ljharb/set-function-length/commit/475c87aa2f59b700aaed589d980624ec596acdcb) -- [Tests] add coverage with `nyc` [`14f0bf8`](https://github.com/ljharb/set-function-length/commit/14f0bf8c145ae60bf14a026420a06bb7be132c36) -- [eslint] fix linting failure [`fb516f9`](https://github.com/ljharb/set-function-length/commit/fb516f93c664057138c53559ef63c8622a093335) -- [Deps] update `define-data-property` [`d727e7c`](https://github.com/ljharb/set-function-length/commit/d727e7c6c9a40d7bf26797694e500ea68741feea) - -## [v1.0.1](https://github.com/ljharb/set-function-length/compare/v1.0.0...v1.0.1) - 2023-10-12 - -### Commits - -- [Refactor] use `get-intrinsic`, since it‘s in the dep graph anyways [`278a954`](https://github.com/ljharb/set-function-length/commit/278a954a06cd849051c569ff7aee56df6798933e) -- [meta] add `exports` [`72acfe5`](https://github.com/ljharb/set-function-length/commit/72acfe5a0310071fb205a72caba5ecbab24336a0) - -## v1.0.0 - 2023-10-12 - -### Commits - -- Initial implementation, tests, readme [`fce14e1`](https://github.com/ljharb/set-function-length/commit/fce14e17586460e4f294405173be72b6ffdf7e5f) -- Initial commit [`ca7ba85`](https://github.com/ljharb/set-function-length/commit/ca7ba857c7c283f9d26e21f14e71cd388f2cb722) -- npm init [`6a7e493`](https://github.com/ljharb/set-function-length/commit/6a7e493927736cebcaf5c1a84e69b8e6b7b744d8) -- Only apps should have lockfiles [`d2bf6c4`](https://github.com/ljharb/set-function-length/commit/d2bf6c43de8a51b02a0aa53e8d62cb50c4a2b0da) diff --git a/backend/node_modules/set-function-length/LICENSE b/backend/node_modules/set-function-length/LICENSE deleted file mode 100644 index 0314929..0000000 --- a/backend/node_modules/set-function-length/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Jordan Harband and 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. diff --git a/backend/node_modules/set-function-length/README.md b/backend/node_modules/set-function-length/README.md deleted file mode 100644 index 15e3ac4..0000000 --- a/backend/node_modules/set-function-length/README.md +++ /dev/null @@ -1,56 +0,0 @@ -# set-function-length <sup>[![Version Badge][npm-version-svg]][package-url]</sup> - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -Set a function’s length. - -Arguments: - - `fn`: the function - - `length`: the new length. Must be an integer between 0 and 2**32. - - `loose`: Optional. If true, and the length fails to be set, do not throw. Default false. - -Returns `fn`. - -## Usage - -```javascript -var setFunctionLength = require('set-function-length'); -var assert = require('assert'); - -function zero() {} -function one(_) {} -function two(_, __) {} - -assert.equal(zero.length, 0); -assert.equal(one.length, 1); -assert.equal(two.length, 2); - -assert.equal(setFunctionLength(zero, 10), zero); -assert.equal(setFunctionLength(one, 11), one); -assert.equal(setFunctionLength(two, 12), two); - -assert.equal(zero.length, 10); -assert.equal(one.length, 11); -assert.equal(two.length, 12); -``` - -[package-url]: https://npmjs.org/package/set-function-length -[npm-version-svg]: https://versionbadg.es/ljharb/set-function-length.svg -[deps-svg]: https://david-dm.org/ljharb/set-function-length.svg -[deps-url]: https://david-dm.org/ljharb/set-function-length -[dev-deps-svg]: https://david-dm.org/ljharb/set-function-length/dev-status.svg -[dev-deps-url]: https://david-dm.org/ljharb/set-function-length#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/set-function-length.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/set-function-length.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/set-function-length.svg -[downloads-url]: https://npm-stat.com/charts.html?package=set-function-length -[codecov-image]: https://codecov.io/gh/ljharb/set-function-length/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/ljharb/set-function-length/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/set-function-length -[actions-url]: https://github.com/ljharb/set-function-length/actions diff --git a/backend/node_modules/set-function-length/env.js b/backend/node_modules/set-function-length/env.js deleted file mode 100644 index 80c0911..0000000 --- a/backend/node_modules/set-function-length/env.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var gOPD = require('gopd'); - -var functionsHaveConfigurableLengths = gOPD && gOPD(function () {}, 'length').configurable; - -var functionsHaveWritableLengths = gOPD && gOPD(function () {}, 'length').writable; - -var boundFnsHaveConfigurableLengths = gOPD && gOPD(function () {}.bind(), 'length').configurable; - -var boundFnsHaveWritableLengths = gOPD && gOPD(function () {}.bind(), 'length').writable; - -module.exports = { - __proto__: null, - boundFnsHaveConfigurableLengths: boundFnsHaveConfigurableLengths, - boundFnsHaveWritableLengths: boundFnsHaveWritableLengths, - functionsHaveConfigurableLengths: functionsHaveConfigurableLengths, - functionsHaveWritableLengths: functionsHaveWritableLengths -}; diff --git a/backend/node_modules/set-function-length/index.js b/backend/node_modules/set-function-length/index.js deleted file mode 100644 index 7a31688..0000000 --- a/backend/node_modules/set-function-length/index.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -var GetIntrinsic = require('get-intrinsic'); -var define = require('define-data-property'); -var hasDescriptors = require('has-property-descriptors')(); -var gOPD = require('gopd'); - -var $TypeError = GetIntrinsic('%TypeError%'); -var $floor = GetIntrinsic('%Math.floor%'); - -module.exports = function setFunctionLength(fn, length) { - if (typeof fn !== 'function') { - throw new $TypeError('`fn` is not a function'); - } - if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) { - throw new $TypeError('`length` must be a positive 32-bit integer'); - } - - var loose = arguments.length > 2 && !!arguments[2]; - - var functionLengthIsConfigurable = true; - var functionLengthIsWritable = true; - if ('length' in fn && gOPD) { - var desc = gOPD(fn, 'length'); - if (desc && !desc.configurable) { - functionLengthIsConfigurable = false; - } - if (desc && !desc.writable) { - functionLengthIsWritable = false; - } - } - - if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) { - if (hasDescriptors) { - define(fn, 'length', length, true, true); - } else { - define(fn, 'length', length); - } - } - return fn; -}; diff --git a/backend/node_modules/set-function-length/package.json b/backend/node_modules/set-function-length/package.json deleted file mode 100644 index fdc2cb6..0000000 --- a/backend/node_modules/set-function-length/package.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "name": "set-function-length", - "version": "1.1.1", - "description": "Set a function's length property", - "main": "index.js", - "exports": { - ".": "./index.js", - "./env": "./env.js", - "./package.json": "./package.json" - }, - "directories": { - "test": "test" - }, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublish": "not-in-publish || npm run prepublishOnly", - "prepublishOnly": "safe-publish-latest", - "prelint": "evalmd README.md", - "lint": "eslint --ext=js,mjs .", - "pretest": "npm run lint", - "tests-only": "nyc tape 'test/**/*.js'", - "test": "npm run tests-only", - "posttest": "aud --production", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/ljharb/set-function-length.git" - }, - "keywords": [ - "javascript", - "ecmascript", - "set", - "function", - "length", - "function.length" - ], - "author": "Jordan Harband <ljharb@gmail.com>", - "license": "MIT", - "bugs": { - "url": "https://github.com/ljharb/set-function-length/issues" - }, - "homepage": "https://github.com/ljharb/set-function-length#readme", - "devDependencies": { - "@ljharb/eslint-config": "^21.1.0", - "aud": "^2.0.3", - "auto-changelog": "^2.4.0", - "call-bind": "^1.0.4", - "es-value-fixtures": "^1.4.2", - "eslint": "=8.8.0", - "evalmd": "^0.0.19", - "for-each": "^0.3.3", - "in-publish": "^2.0.1", - "npmignore": "^0.3.0", - "nyc": "^10.3.2", - "object-inspect": "^1.13.1", - "safe-publish-latest": "^2.0.0", - "tape": "^5.7.1" - }, - "dependencies": { - "define-data-property": "^1.1.1", - "get-intrinsic": "^1.2.1", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows", - "test" - ] - } -} |
