initial commit

migrate files over from github
This commit is contained in:
Rim
2025-03-14 07:53:23 -04:00
commit 073cff8914
669 changed files with 89809 additions and 0 deletions

View File

@ -0,0 +1,3 @@
declare function RequireObjectCoercible<T extends {}>(value: T, optMessage?: string): T;
export = RequireObjectCoercible;

11
node_modules/es-object-atoms/RequireObjectCoercible.js generated vendored Normal file
View File

@ -0,0 +1,11 @@
'use strict';
var $TypeError = require('es-errors/type');
/** @type {import('./RequireObjectCoercible')} */
module.exports = function RequireObjectCoercible(value) {
if (value == null) {
throw new $TypeError((arguments.length > 0 && arguments[1]) || ('Cannot call method on ' + value));
}
return value;
};

7
node_modules/es-object-atoms/ToObject.d.ts generated vendored Normal file
View File

@ -0,0 +1,7 @@
declare function ToObject<T extends object>(value: number): Number;
declare function ToObject<T extends object>(value: boolean): Boolean;
declare function ToObject<T extends object>(value: string): String;
declare function ToObject<T extends object>(value: bigint): BigInt;
declare function ToObject<T extends object>(value: T): T;
export = ToObject;

10
node_modules/es-object-atoms/ToObject.js generated vendored Normal file
View File

@ -0,0 +1,10 @@
'use strict';
var $Object = require('./');
var RequireObjectCoercible = require('./RequireObjectCoercible');
/** @type {import('./ToObject')} */
module.exports = function ToObject(value) {
RequireObjectCoercible(value);
return $Object(value);
};

3
node_modules/es-object-atoms/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,3 @@
declare const Object: ObjectConstructor;
export = Object;

4
node_modules/es-object-atoms/index.js generated vendored Normal file
View File

@ -0,0 +1,4 @@
'use strict';
/** @type {import('.')} */
module.exports = Object;

3
node_modules/es-object-atoms/isObject.d.ts generated vendored Normal file
View File

@ -0,0 +1,3 @@
declare function isObject(x: unknown): x is object;
export = isObject;

6
node_modules/es-object-atoms/isObject.js generated vendored Normal file
View File

@ -0,0 +1,6 @@
'use strict';
/** @type {import('./isObject')} */
module.exports = function isObject(x) {
return !!x && (typeof x === 'function' || typeof x === 'object');
};

80
node_modules/es-object-atoms/package.json generated vendored Normal file
View File

@ -0,0 +1,80 @@
{
"name": "es-object-atoms",
"version": "1.1.1",
"description": "ES Object-related atoms: Object, ToObject, RequireObjectCoercible",
"main": "index.js",
"exports": {
".": "./index.js",
"./RequireObjectCoercible": "./RequireObjectCoercible.js",
"./isObject": "./isObject.js",
"./ToObject": "./ToObject.js",
"./package.json": "./package.json"
},
"sideEffects": false,
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run lint",
"test": "npm run tests-only",
"tests-only": "nyc tape 'test/**/*.js'",
"posttest": "npx npm@\">= 10.2\" audit --production",
"prelint": "evalmd README.md",
"lint": "eslint --ext=js,mjs .",
"postlint": "tsc -p . && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)",
"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/es-object-atoms.git"
},
"keywords": [
"javascript",
"ecmascript",
"object",
"toobject",
"coercible"
],
"author": "Jordan Harband <ljharb@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/ljharb/es-object-atoms/issues"
},
"homepage": "https://github.com/ljharb/es-object-atoms#readme",
"dependencies": {
"es-errors": "^1.3.0"
},
"devDependencies": {
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.3",
"@types/tape": "^5.8.1",
"auto-changelog": "^2.5.0",
"eclint": "^2.8.1",
"encoding": "^0.1.13",
"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"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
},
"publishConfig": {
"ignore": [
".github/workflows"
]
},
"engines": {
"node": ">= 0.4"
}
}

6
node_modules/es-object-atoms/tsconfig.json generated vendored Normal file
View File

@ -0,0 +1,6 @@
{
"extends": "@ljharb/tsconfig",
"compilerOptions": {
"target": "es5",
},
}