Fix actions/tour

This commit is contained in:
2025-02-13 23:19:32 +01:00
parent 47dd1adb30
commit fa21d30994
4543 changed files with 680810 additions and 0 deletions

5
node_modules/has-proto/.eslintrc generated vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"root": true,
"extends": "@ljharb",
}

12
node_modules/has-proto/.github/FUNDING.yml generated vendored Normal file
View File

@@ -0,0 +1,12 @@
# 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/has-proto
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 up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

52
node_modules/has-proto/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,52 @@
# 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.0](https://github.com/inspect-js/has-proto/compare/v1.0.3...v1.1.0) - 2024-12-01
### Commits
- [New] add `accessor` and `mutator` endpoints [`144f6a9`](https://github.com/inspect-js/has-proto/commit/144f6a9c2a3925f25058d5d5ea7eab3be57767d9)
- [types] use shared config [`8b597cf`](https://github.com/inspect-js/has-proto/commit/8b597cff2b09f0351bc357cac0e0c7b0c8bb7e70)
- [Refactor] cache result at module level [`88418bd`](https://github.com/inspect-js/has-proto/commit/88418bde7e0c37c7d9aa6cc79150e774004c01d8)
- [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `tape` [`d246200`](https://github.com/inspect-js/has-proto/commit/d246200bae6ceceebb495df7f8eb0f27a017b63f)
- [Deps] update `gopd`, `reflect.getprototypeof` [`6f72364`](https://github.com/inspect-js/has-proto/commit/6f723645da9b5bef0aaae4a1aa66c07a1fed179f)
- [Tests] add `@arethetypeswrong/cli` [`8194e1a`](https://github.com/inspect-js/has-proto/commit/8194e1a607233f63c5bd0b91112c0423b3296ac9)
- [Tests] replace `aud` with `npm audit` [`fd7ad11`](https://github.com/inspect-js/has-proto/commit/fd7ad111dc35488b3200a763204dba0f6087defc)
- [Dev Deps] update `@types/tape` [`2695808`](https://github.com/inspect-js/has-proto/commit/26958086aec0b1cbfdddd4f10e54d2de1facf85c)
- [Dev Deps] add missing peer dep [`fa4b2f7`](https://github.com/inspect-js/has-proto/commit/fa4b2f77f7c0071e1c06b5590c9bada8e6b2edce)
## [v1.0.3](https://github.com/inspect-js/has-proto/compare/v1.0.2...v1.0.3) - 2024-02-19
### Commits
- [types] add missing declaration file [`26ecade`](https://github.com/inspect-js/has-proto/commit/26ecade05d253bb5dc376945ee3186d1fbe334f8)
## [v1.0.2](https://github.com/inspect-js/has-proto/compare/v1.0.1...v1.0.2) - 2024-02-19
### Commits
- add types [`6435262`](https://github.com/inspect-js/has-proto/commit/64352626cf511c0276d5f4bb6be770a0bf0f8524)
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `npmignore`, `tape` [`f16a5e4`](https://github.com/inspect-js/has-proto/commit/f16a5e4121651e551271419f9d60fdd3561fd82c)
- [Refactor] tiny cleanup [`d1f1a4b`](https://github.com/inspect-js/has-proto/commit/d1f1a4bdc135f115a10f148ce302676224534702)
- [meta] add `sideEffects` flag [`e7ab1a6`](https://github.com/inspect-js/has-proto/commit/e7ab1a6f153b3e80dee68d1748b71e46767a0531)
## [v1.0.1](https://github.com/inspect-js/has-proto/compare/v1.0.0...v1.0.1) - 2022-12-21
### Commits
- [meta] correct URLs and description [`ef34483`](https://github.com/inspect-js/has-proto/commit/ef34483ca0d35680f271b6b96e35526151b25dfc)
- [patch] add an additional criteria [`e81959e`](https://github.com/inspect-js/has-proto/commit/e81959ed7c7a77fbf459f00cb4ef824f1099497f)
- [Dev Deps] update `aud` [`2bec2c4`](https://github.com/inspect-js/has-proto/commit/2bec2c47b072b122ff5443fba0263f6dc649531f)
## v1.0.0 - 2022-12-12
### Commits
- Initial implementation, tests, readme [`6886fea`](https://github.com/inspect-js/has-proto/commit/6886fea578f67daf69a7920b2eb7637ea6ebb0bc)
- Initial commit [`99129c8`](https://github.com/inspect-js/has-proto/commit/99129c8f42471ac89cb681ba9cb9d52a583eb94f)
- npm init [`2844ad8`](https://github.com/inspect-js/has-proto/commit/2844ad8e75b84d66a46765b3bab9d2e8ea692e10)
- Only apps should have lockfiles [`c65bc5e`](https://github.com/inspect-js/has-proto/commit/c65bc5e40b9004463f7336d47c67245fb139a36a)

21
node_modules/has-proto/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 Inspect JS
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.

57
node_modules/has-proto/README.md generated vendored Normal file
View File

@@ -0,0 +1,57 @@
# has-proto <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]
Does this environment have the ability to set the [[Prototype]] of an object on creation with `__proto__`?
## Example
```js
var hasProto = require('has-proto');
var assert = require('assert');
assert.equal(typeof hasProto(), 'boolean');
var hasProtoAccessor = require('has-proto/accessor')();
if (hasProtoAccessor) {
assert.equal([].__proto__, Array.prototype);
} else {
assert(!('__proto__' in Object.prototype));
}
var hasProtoMutator = require('has-proto/mutator');
var obj = {};
assert('toString' in obj);
obj.__proto__ = null;
if (hasProtoMutator) {
assert(!('toString' in obj));
} else {
assert('toString' in obj);
assert.equal(obj.__proto__, null);
}
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[package-url]: https://npmjs.org/package/has-proto
[npm-version-svg]: https://versionbadg.es/inspect-js/has-proto.svg
[deps-svg]: https://david-dm.org/inspect-js/has-proto.svg
[deps-url]: https://david-dm.org/inspect-js/has-proto
[dev-deps-svg]: https://david-dm.org/inspect-js/has-proto/dev-status.svg
[dev-deps-url]: https://david-dm.org/inspect-js/has-proto#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/has-proto.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/has-proto.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/has-proto.svg
[downloads-url]: https://npm-stat.com/charts.html?package=has-proto
[codecov-image]: https://codecov.io/gh/inspect-js/has-proto/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/inspect-js/has-proto/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-proto
[actions-url]: https://github.com/inspect-js/has-proto/actions

3
node_modules/has-proto/accessor.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
declare function accessor(): boolean;
export = accessor;

20
node_modules/has-proto/accessor.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
'use strict';
var result = require('./')();
var test = {
__proto__: null,
foo: {}
};
/** @type {import('./accessor')} */
module.exports = function hasAccessor() {
/* eslint no-proto: 0 */
return result
&& !('toString' in test)
// eslint-disable-next-line no-extra-parens
&& /** @type {{ __proto__?: typeof Object.prototype }} */ ({}).__proto__ === Object.prototype
// eslint-disable-next-line no-extra-parens
&& /** @type {ReadonlyArray<never> & { __proto__?: typeof Array.prototype }} */ (
[]).__proto__ === Array.prototype;
};

12
node_modules/has-proto/helpers/getDunder.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
'use strict';
var callBind = require('call-bind');
var gOPD = require('gopd');
// eslint-disable-next-line no-extra-parens, no-proto
var hasProto = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
// eslint-disable-next-line no-extra-parens
var dunderGetter = hasProto && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
module.exports = dunderGetter && dunderGetter.get && callBind(dunderGetter.get);

9
node_modules/has-proto/helpers/setDunder.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
'use strict';
var callBind = require('call-bind');
var gOPD = require('gopd');
// @ts-expect-error TS can't handle dunder proto
var desc = gOPD && gOPD(Object.prototype, '__proto__');
module.exports = !!desc && !!desc.set && callBind(desc.set);

3
node_modules/has-proto/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
declare function hasProto(): boolean;
export = hasProto;

15
node_modules/has-proto/index.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
'use strict';
var test = {
__proto__: null,
foo: {}
};
// @ts-expect-error: TS errors on an inherited property for some reason
var result = { __proto__: test }.foo === test.foo
&& !(test instanceof Object);
/** @type {import('.')} */
module.exports = function hasProto() {
return result;
};

3
node_modules/has-proto/mutator.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
declare function mutator(): boolean;
export = mutator;

33
node_modules/has-proto/mutator.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
'use strict';
var result = require('./')();
var test = {
__proto__: null,
foo: {}
};
var setter = require('./helpers/setDunder');
/** @type {import('./mutator')} */
module.exports = function hasMutator() {
if (!result) {
return false;
}
var obj = { __proto__: test };
// @ts-expect-error: TS errors on an inherited property for some reason
if (obj.foo !== test.foo) {
return false;
}
if (!setter) {
return false;
}
setter(obj, null);
if ('foo' in obj || 'toString' in obj) {
return false;
}
return true;
};

92
node_modules/has-proto/package.json generated vendored Normal file
View File

@@ -0,0 +1,92 @@
{
"name": "has-proto",
"version": "1.1.0",
"description": "Does this environment have the ability to get the [[Prototype]] of an object on creation with `__proto__`?",
"main": "index.js",
"exports": {
".": "./index.js",
"./accessor": "./accessor.js",
"./mutator": "./mutator.js",
"./package.json": "./package.json"
},
"sideEffects": false,
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prelint": "evalmd README.md",
"lint": "eslint --ext=js,mjs .",
"postlint": "tsc -p . && attw -P",
"pretest": "npm run lint",
"tests-only": "tape 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "npx npm@'>=10.2' audit --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/inspect-js/has-proto.git"
},
"keywords": [
"prototype",
"proto",
"set",
"get",
"__proto__",
"getPrototypeOf",
"setPrototypeOf",
"has"
],
"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/inspect-js/has-proto/issues"
},
"homepage": "https://github.com/inspect-js/has-proto#readme",
"testling": {
"files": "test/index.js"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.0",
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.0",
"@types/call-bind": "^1.0.5",
"@types/gopd": "^1.0.3",
"@types/tape": "^5.6.5",
"auto-changelog": "^2.5.0",
"encoding": "^0.1.13",
"eslint": "=8.8.0",
"evalmd": "^0.0.19",
"gopd": "^1.1.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.1",
"reflect.getprototypeof": "^1.0.7",
"safe-publish-latest": "^2.0.0",
"tape": "^5.9.0",
"typescript": "next"
},
"engines": {
"node": ">= 0.4"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
},
"publishConfig": {
"ignore": [
".github/workflows",
"types"
]
},
"dependencies": {
"call-bind": "^1.0.7"
}
}

34
node_modules/has-proto/test/accessor.js generated vendored Normal file
View File

@@ -0,0 +1,34 @@
'use strict';
var test = require('tape');
var gPO = require('reflect.getprototypeof/polyfill')();
var gOPD = require('gopd');
var hasProto = require('../');
var hasProtoAccessor = require('../accessor');
var getter = require('../helpers/getDunder');
test('hasProtoAccessor', function (t) {
var result = hasProtoAccessor();
t.equal(typeof result, 'boolean', 'returns a boolean (' + result + ')');
var obj = { __proto__: null };
if (result) {
t.notOk('toString' in obj, 'null object lacks toString');
t.equal(gPO(obj), null);
if (gOPD && getter) {
t.equal(getter(obj), null);
}
} else if (hasProto()) {
t.notOk('toString' in obj, 'null object lacks toString');
if (gOPD && getter) {
t.equal(getter(obj), null);
}
} else {
t.ok('toString' in obj, 'without proto, null object has toString');
t.equal(gPO(obj), Object.prototype);
}
t.end();
});

28
node_modules/has-proto/test/index.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
'use strict';
var test = require('tape');
var gPO = require('reflect.getprototypeof/polyfill')();
var gOPD = require('gopd');
var hasProto = require('../');
var getter = require('../helpers/getDunder');
test('hasProto', function (t) {
var result = hasProto();
t.equal(typeof result, 'boolean', 'returns a boolean (' + result + ')');
var obj = { __proto__: null };
if (result) {
t.notOk('toString' in obj, 'null object lacks toString');
if (gOPD && getter) {
t.equal(getter(obj), null);
}
} else {
t.ok('toString' in obj, 'without proto, null object has toString');
t.equal(gPO(obj), Object.prototype);
}
t.end();
});

34
node_modules/has-proto/test/mutator.js generated vendored Normal file
View File

@@ -0,0 +1,34 @@
'use strict';
var test = require('tape');
var gPO = require('reflect.getprototypeof/polyfill')();
var gOPD = require('gopd');
var hasProto = require('../');
var hasProtoMutator = require('../mutator');
var getter = require('../helpers/getDunder');
test('hasProtoMutator', function (t) {
var result = hasProtoMutator();
t.equal(typeof result, 'boolean', 'returns a boolean (' + result + ')');
var obj = { __proto__: null };
if (result) {
t.notOk('toString' in obj, 'null object lacks toString');
t.equal(gPO(obj), null);
if (gOPD && getter) {
t.equal(getter(obj), null);
}
} else if (hasProto()) {
t.notOk('toString' in obj, 'null object lacks toString');
if (gOPD && getter) {
t.equal(getter(obj), null);
}
} else {
t.ok('toString' in obj, 'without proto, null object has toString');
t.equal(gPO(obj), Object.prototype);
}
t.end();
});

11
node_modules/has-proto/tsconfig.json generated vendored Normal file
View File

@@ -0,0 +1,11 @@
{
"extends": "@ljharb/tsconfig",
"exclude": [
"coverage",
],
"compilerOptions": {
"typeRoots": [
"types",
],
},
}