format: prettify entire project
This commit is contained in:
2
node_modules/get-proto/Object.getPrototypeOf.d.ts
generated
vendored
2
node_modules/get-proto/Object.getPrototypeOf.d.ts
generated
vendored
@ -2,4 +2,4 @@ declare function getProto<O extends object>(object: O): object | null;
|
||||
|
||||
declare const x: typeof getProto | null;
|
||||
|
||||
export = x;
|
||||
export = x;
|
||||
|
2
node_modules/get-proto/Reflect.getPrototypeOf.d.ts
generated
vendored
2
node_modules/get-proto/Reflect.getPrototypeOf.d.ts
generated
vendored
@ -1,3 +1,3 @@
|
||||
declare const x: typeof Reflect.getPrototypeOf | null;
|
||||
|
||||
export = x;
|
||||
export = x;
|
||||
|
3
node_modules/get-proto/Reflect.getPrototypeOf.js
generated
vendored
3
node_modules/get-proto/Reflect.getPrototypeOf.js
generated
vendored
@ -1,4 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('./Reflect.getPrototypeOf')} */
|
||||
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
||||
module.exports =
|
||||
(typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
||||
|
39
node_modules/get-proto/index.js
generated
vendored
39
node_modules/get-proto/index.js
generated
vendored
@ -6,22 +6,23 @@ var originalGetProto = require('./Object.getPrototypeOf');
|
||||
var getDunderProto = require('dunder-proto/get');
|
||||
|
||||
/** @type {import('.')} */
|
||||
module.exports = reflectGetProto
|
||||
? function getProto(O) {
|
||||
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||||
return reflectGetProto(O);
|
||||
}
|
||||
: originalGetProto
|
||||
? function getProto(O) {
|
||||
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
||||
throw new TypeError('getProto: not an object');
|
||||
}
|
||||
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||||
return originalGetProto(O);
|
||||
}
|
||||
: getDunderProto
|
||||
? function getProto(O) {
|
||||
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||||
return getDunderProto(O);
|
||||
}
|
||||
: null;
|
||||
module.exports =
|
||||
reflectGetProto ?
|
||||
function getProto(O) {
|
||||
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||||
return reflectGetProto(O);
|
||||
}
|
||||
: originalGetProto ?
|
||||
function getProto(O) {
|
||||
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
||||
throw new TypeError('getProto: not an object');
|
||||
}
|
||||
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||||
return originalGetProto(O);
|
||||
}
|
||||
: getDunderProto ?
|
||||
function getProto(O) {
|
||||
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||||
return getDunderProto(O);
|
||||
}
|
||||
: null;
|
||||
|
158
node_modules/get-proto/package.json
generated
vendored
158
node_modules/get-proto/package.json
generated
vendored
@ -1,81 +1,81 @@
|
||||
{
|
||||
"name": "get-proto",
|
||||
"version": "1.0.1",
|
||||
"description": "Robustly get the [[Prototype]] of an object",
|
||||
"main": "index.js",
|
||||
"exports": {
|
||||
".": "./index.js",
|
||||
"./Reflect.getPrototypeOf": "./Reflect.getPrototypeOf.js",
|
||||
"./Object.getPrototypeOf": "./Object.getPrototypeOf.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"scripts": {
|
||||
"prepack": "npmignore --auto --commentLines=autogenerated",
|
||||
"prepublish": "not-in-publish || npm run prepublishOnly",
|
||||
"prepublishOnly": "safe-publish-latest",
|
||||
"pretest": "npm run --silent lint",
|
||||
"test": "npm run tests-only",
|
||||
"posttest": "npx npm@\">=10.2\" audit --production",
|
||||
"tests-only": "nyc tape 'test/**/*.js'",
|
||||
"prelint": "evalmd README.md",
|
||||
"lint": "eslint --ext=js,mjs .",
|
||||
"postlint": "tsc && attw -P",
|
||||
"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/get-proto.git"
|
||||
},
|
||||
"keywords": [
|
||||
"get",
|
||||
"proto",
|
||||
"prototype",
|
||||
"getPrototypeOf",
|
||||
"[[Prototype]]"
|
||||
],
|
||||
"author": "Jordan Harband <ljharb@gmail.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/ljharb/get-proto/issues"
|
||||
},
|
||||
"homepage": "https://github.com/ljharb/get-proto#readme",
|
||||
"dependencies": {
|
||||
"dunder-proto": "^1.0.1",
|
||||
"es-object-atoms": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@arethetypeswrong/cli": "^0.17.2",
|
||||
"@ljharb/eslint-config": "^21.1.1",
|
||||
"@ljharb/tsconfig": "^0.2.3",
|
||||
"@types/tape": "^5.8.0",
|
||||
"auto-changelog": "^2.5.0",
|
||||
"eslint": "=8.8.0",
|
||||
"evalmd": "^0.0.19",
|
||||
"in-publish": "^2.0.1",
|
||||
"npmignore": "^0.3.1",
|
||||
"nyc": "^10.3.2",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/index.js"
|
||||
}
|
||||
"name": "get-proto",
|
||||
"version": "1.0.1",
|
||||
"description": "Robustly get the [[Prototype]] of an object",
|
||||
"main": "index.js",
|
||||
"exports": {
|
||||
".": "./index.js",
|
||||
"./Reflect.getPrototypeOf": "./Reflect.getPrototypeOf.js",
|
||||
"./Object.getPrototypeOf": "./Object.getPrototypeOf.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"scripts": {
|
||||
"prepack": "npmignore --auto --commentLines=autogenerated",
|
||||
"prepublish": "not-in-publish || npm run prepublishOnly",
|
||||
"prepublishOnly": "safe-publish-latest",
|
||||
"pretest": "npm run --silent lint",
|
||||
"test": "npm run tests-only",
|
||||
"posttest": "npx npm@\">=10.2\" audit --production",
|
||||
"tests-only": "nyc tape 'test/**/*.js'",
|
||||
"prelint": "evalmd README.md",
|
||||
"lint": "eslint --ext=js,mjs .",
|
||||
"postlint": "tsc && attw -P",
|
||||
"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/get-proto.git"
|
||||
},
|
||||
"keywords": [
|
||||
"get",
|
||||
"proto",
|
||||
"prototype",
|
||||
"getPrototypeOf",
|
||||
"[[Prototype]]"
|
||||
],
|
||||
"author": "Jordan Harband <ljharb@gmail.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/ljharb/get-proto/issues"
|
||||
},
|
||||
"homepage": "https://github.com/ljharb/get-proto#readme",
|
||||
"dependencies": {
|
||||
"dunder-proto": "^1.0.1",
|
||||
"es-object-atoms": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@arethetypeswrong/cli": "^0.17.2",
|
||||
"@ljharb/eslint-config": "^21.1.1",
|
||||
"@ljharb/tsconfig": "^0.2.3",
|
||||
"@types/tape": "^5.8.0",
|
||||
"auto-changelog": "^2.5.0",
|
||||
"eslint": "=8.8.0",
|
||||
"evalmd": "^0.0.19",
|
||||
"in-publish": "^2.0.1",
|
||||
"npmignore": "^0.3.1",
|
||||
"nyc": "^10.3.2",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/index.js"
|
||||
}
|
||||
}
|
||||
|
12
node_modules/get-proto/tsconfig.json
generated
vendored
12
node_modules/get-proto/tsconfig.json
generated
vendored
@ -1,9 +1,7 @@
|
||||
{
|
||||
"extends": "@ljharb/tsconfig",
|
||||
"compilerOptions": {
|
||||
//"target": "es2021",
|
||||
},
|
||||
"exclude": [
|
||||
"coverage",
|
||||
],
|
||||
"extends": "@ljharb/tsconfig",
|
||||
"compilerOptions": {
|
||||
//"target": "es2021",
|
||||
},
|
||||
"exclude": ["coverage"]
|
||||
}
|
||||
|
Reference in New Issue
Block a user