Initial commit
This commit is contained in:
17
node_modules/is-array-buffer/.eslintrc
generated
vendored
Normal file
17
node_modules/is-array-buffer/.eslintrc
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"globals": {
|
||||
"DataView": false,
|
||||
},
|
||||
|
||||
"rules": {
|
||||
"new-cap": ["error", {
|
||||
"capIsNewExceptions": [
|
||||
"GetIntrinsic",
|
||||
],
|
||||
}],
|
||||
},
|
||||
}
|
12
node_modules/is-array-buffer/.github/FUNDING.yml
generated
vendored
Normal file
12
node_modules/is-array-buffer/.github/FUNDING.yml
generated
vendored
Normal 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/is-array-buffer
|
||||
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']
|
9
node_modules/is-array-buffer/.nycrc
generated
vendored
Normal file
9
node_modules/is-array-buffer/.nycrc
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"all": true,
|
||||
"check-coverage": false,
|
||||
"reporter": ["text-summary", "text", "html", "json"],
|
||||
"exclude": [
|
||||
"coverage",
|
||||
"test"
|
||||
]
|
||||
}
|
75
node_modules/is-array-buffer/CHANGELOG.md
generated
vendored
Normal file
75
node_modules/is-array-buffer/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
# 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).
|
||||
|
||||
## [v3.0.4](https://github.com/fengyuanchen/is-array-buffer/compare/v3.0.3...v3.0.4) - 2024-02-02
|
||||
|
||||
### Commits
|
||||
|
||||
- [patch] add types [`15fab4c`](https://github.com/fengyuanchen/is-array-buffer/commit/15fab4c68378904a12592969042e638dbc6be8e5)
|
||||
|
||||
## [v3.0.3](https://github.com/fengyuanchen/is-array-buffer/compare/v3.0.2...v3.0.3) - 2024-02-02
|
||||
|
||||
### Commits
|
||||
|
||||
- [Fix] TAs can take a DataView in node 0.8; use a simpler check [`69a03f6`](https://github.com/fengyuanchen/is-array-buffer/commit/69a03f671f892b724be1a899a3d90c981e7601c9)
|
||||
- [Dev Deps] update `aud`, `available-typed-arrays`, `npmignore`, `object-inspect`, `tape` [`53ca341`](https://github.com/fengyuanchen/is-array-buffer/commit/53ca34182d2aab61e90e744ee47d01f6577b616e)
|
||||
- [Deps] update `call-bind`, `get-intrinsic`, `is-typed-array` [`bec883f`](https://github.com/fengyuanchen/is-array-buffer/commit/bec883f31e83410a46927a843ded46ebffbbb1f6)
|
||||
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`944d4ce`](https://github.com/fengyuanchen/is-array-buffer/commit/944d4cea229ce29a0965665bf59df290c53ecbbb)
|
||||
- [meta] add missing `engines.node` [`0852be6`](https://github.com/fengyuanchen/is-array-buffer/commit/0852be6f64188912d2383ff9b6a7cc12bd369006)
|
||||
- [Deps] update `get-intrinsic` [`b59c4af`](https://github.com/fengyuanchen/is-array-buffer/commit/b59c4af432014649d6cd1f070cf6e9917e6ad524)
|
||||
|
||||
## [v3.0.2](https://github.com/fengyuanchen/is-array-buffer/compare/v3.0.1...v3.0.2) - 2023-03-01
|
||||
|
||||
### Commits
|
||||
|
||||
- [Fix] `node` 0.8: an object arg to a TA only throws a RangeError when it is an ArrayBuffer of an incompatible byte length [`d5108f6`](https://github.com/fengyuanchen/is-array-buffer/commit/d5108f6d06245e616b6c563995f214a38732243c)
|
||||
- [Dev Deps] update `object-inspect`, `tape` [`400f456`](https://github.com/fengyuanchen/is-array-buffer/commit/400f4563ccbe27c7fbb485665352c76210bba9cb)
|
||||
- [Deps] update `get-intrinsic` [`133732e`](https://github.com/fengyuanchen/is-array-buffer/commit/133732ec88f8dded1c705b758badc2240077a6d8)
|
||||
|
||||
## [v3.0.1](https://github.com/fengyuanchen/is-array-buffer/compare/v3.0.0...v3.0.1) - 2023-01-05
|
||||
|
||||
### Commits
|
||||
|
||||
- [Fix] in node 0.8, TAs do not coerce Uint8Arrays to an ArrayBuffer properly [`e488763`](https://github.com/fengyuanchen/is-array-buffer/commit/e48876346f446825dad619e55dcc830ed93f2853)
|
||||
- [Dev Deps] update `@ljharb/eslint-config`, `aud` [`8eebfa2`](https://github.com/fengyuanchen/is-array-buffer/commit/8eebfa21881f3a9fa5094f8c486f00e496658ea9)
|
||||
|
||||
## [v3.0.0](https://github.com/fengyuanchen/is-array-buffer/compare/v2.0.0...v3.0.0) - 2023-01-04
|
||||
|
||||
### Commits
|
||||
|
||||
- [Breaking] replace package implementation [`b65f929`](https://github.com/fengyuanchen/is-array-buffer/commit/b65f929d856d2a42f043be0f5a0fc2e067370ed1)
|
||||
- Initial implementation, tests, readme [`06afa73`](https://github.com/fengyuanchen/is-array-buffer/commit/06afa73e775960802ea9257cc6b4cdf768c72d3f)
|
||||
- Initial commit [`051813f`](https://github.com/fengyuanchen/is-array-buffer/commit/051813f15e3cbf515e2447306761dd9c42819150)
|
||||
- npm init [`946d3de`](https://github.com/fengyuanchen/is-array-buffer/commit/946d3de82b15471fb2c00a4a2a5a52eb0515eb04)
|
||||
- [meta] use `npmignore` to autogenerate an npmignore file [`ca4c446`](https://github.com/fengyuanchen/is-array-buffer/commit/ca4c446f37daf5ab8cc590f2194574c2706561ed)
|
||||
- Only apps should have lockfiles [`be7d8eb`](https://github.com/fengyuanchen/is-array-buffer/commit/be7d8eb09dc5033c04df85d7ba9a8714f4e54357)
|
||||
- docs: fix badge link [`9ea7fb6`](https://github.com/fengyuanchen/is-array-buffer/commit/9ea7fb638e79f8938161b3b7370cb965d8e93a8b)
|
||||
|
||||
<!-- auto-changelog-above -->
|
||||
|
||||
## 2.0.0 (Feb 12, 2021)
|
||||
|
||||
- Refactor in TypeScript.
|
||||
- Drop the `dist` directory.
|
||||
- Drop the UMD bundled file.
|
||||
- Add a declaration file for TypeScript.
|
||||
|
||||
## 1.0.1 (Apr 1, 2018)
|
||||
|
||||
- Improve code style.
|
||||
|
||||
## 1.0.0 (Jul 25, 2017)
|
||||
|
||||
- Supports UMD, CommonJS and ES Module.
|
||||
|
||||
## 0.1.0 (Nov 28, 2015)
|
||||
|
||||
- Check if ArrayBuffer is defined first.
|
||||
|
||||
## 0.0.1 (Nov 11, 2015)
|
||||
|
||||
- Initial release.
|
21
node_modules/is-array-buffer/LICENSE
generated
vendored
Normal file
21
node_modules/is-array-buffer/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2015 Chen Gengyuan, 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.
|
56
node_modules/is-array-buffer/README.md
generated
vendored
Normal file
56
node_modules/is-array-buffer/README.md
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
# is-array-buffer <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]
|
||||
|
||||
Is this value a JS ArrayBuffer? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
var assert = require('assert');
|
||||
var isArrayBuffer = require('is-array-buffer');
|
||||
|
||||
assert(!isArrayBuffer(function () {}));
|
||||
assert(!isArrayBuffer(null));
|
||||
assert(!isArrayBuffer(function* () { yield 42; return Infinity; });
|
||||
assert(!isArrayBuffer(Symbol('foo')));
|
||||
assert(!isArrayBuffer(1n));
|
||||
assert(!isArrayBuffer(Object(1n)));
|
||||
|
||||
assert(!isArrayBuffer(new Set()));
|
||||
assert(!isArrayBuffer(new WeakSet()));
|
||||
assert(!isArrayBuffer(new Map()));
|
||||
assert(!isArrayBuffer(new WeakMap()));
|
||||
assert(!isArrayBuffer(new WeakRef({})));
|
||||
assert(!isArrayBuffer(new FinalizationRegistry(() => {})));
|
||||
assert(!isArrayBuffer(new SharedArrayBuffer()));
|
||||
|
||||
assert(isArrayBuffer(new ArrayBuffer()));
|
||||
|
||||
class MyArrayBuffer extends ArrayBuffer {}
|
||||
assert(isArrayBuffer(new MyArrayBuffer()));
|
||||
```
|
||||
|
||||
## Tests
|
||||
Simply clone the repo, `npm install`, and run `npm test`
|
||||
|
||||
[package-url]: https://npmjs.org/package/is-array-buffer
|
||||
[npm-version-svg]: https://versionbadg.es/inspect-js/is-array-buffer.svg
|
||||
[deps-svg]: https://david-dm.org/inspect-js/is-array-buffer.svg
|
||||
[deps-url]: https://david-dm.org/inspect-js/is-array-buffer
|
||||
[dev-deps-svg]: https://david-dm.org/inspect-js/is-array-buffer/dev-status.svg
|
||||
[dev-deps-url]: https://david-dm.org/inspect-js/is-array-buffer#info=devDependencies
|
||||
[npm-badge-png]: https://nodei.co/npm/is-array-buffer.png?downloads=true&stars=true
|
||||
[license-image]: https://img.shields.io/npm/l/is-array-buffer.svg
|
||||
[license-url]: LICENSE
|
||||
[downloads-image]: https://img.shields.io/npm/dm/is-array-buffer.svg
|
||||
[downloads-url]: https://npm-stat.com/charts.html?package=is-array-buffer
|
||||
[codecov-image]: https://codecov.io/gh/inspect-js/is-array-buffer/branch/main/graphs/badge.svg
|
||||
[codecov-url]: https://app.codecov.io/gh/inspect-js/is-array-buffer/
|
||||
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-array-buffer
|
||||
[actions-url]: https://github.com/inspect-js/is-array-buffer/actions
|
3
node_modules/is-array-buffer/index.d.ts
generated
vendored
Normal file
3
node_modules/is-array-buffer/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare function isArrayBuffer(value: unknown): value is ArrayBuffer;
|
||||
|
||||
export = isArrayBuffer;
|
42
node_modules/is-array-buffer/index.js
generated
vendored
Normal file
42
node_modules/is-array-buffer/index.js
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
'use strict';
|
||||
|
||||
var callBind = require('call-bind');
|
||||
var callBound = require('call-bind/callBound');
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $ArrayBuffer = GetIntrinsic('%ArrayBuffer%', true);
|
||||
/** @type {undefined | ((receiver: ArrayBuffer) => number) | ((receiver: unknown) => never)} */
|
||||
var $byteLength = callBound('ArrayBuffer.prototype.byteLength', true);
|
||||
var $toString = callBound('Object.prototype.toString');
|
||||
|
||||
// in node 0.10, ArrayBuffers have no prototype methods, but have an own slot-checking `slice` method
|
||||
var abSlice = !!$ArrayBuffer && !$byteLength && new $ArrayBuffer(0).slice;
|
||||
var $abSlice = !!abSlice && callBind(abSlice);
|
||||
|
||||
/** @type {import('.')} */
|
||||
module.exports = $byteLength || $abSlice
|
||||
? function isArrayBuffer(obj) {
|
||||
if (!obj || typeof obj !== 'object') {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
if ($byteLength) {
|
||||
// @ts-expect-error no idea why TS can't handle the overload
|
||||
$byteLength(obj);
|
||||
} else {
|
||||
// @ts-expect-error TS chooses not to type-narrow inside a closure
|
||||
$abSlice(obj, 0);
|
||||
}
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
: $ArrayBuffer
|
||||
// in node 0.8, ArrayBuffers have no prototype or own methods, but also no Symbol.toStringTag
|
||||
? function isArrayBuffer(obj) {
|
||||
return $toString(obj) === '[object ArrayBuffer]';
|
||||
}
|
||||
: function isArrayBuffer(obj) { // eslint-disable-line no-unused-vars
|
||||
return false;
|
||||
};
|
89
node_modules/is-array-buffer/package.json
generated
vendored
Normal file
89
node_modules/is-array-buffer/package.json
generated
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"name": "is-array-buffer",
|
||||
"version": "3.0.4",
|
||||
"description": "Is this value a JS ArrayBuffer?",
|
||||
"main": "index.js",
|
||||
"exports": {
|
||||
".": "./index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"types": "./index.d.ts",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"prepack": "npmignore --auto --commentLines=autogenerated",
|
||||
"prepublishOnly": "safe-publish-latest",
|
||||
"prepublish": "not-in-publish || npm run prepublishOnly",
|
||||
"lint": "eslint --ext=.js,.mjs .",
|
||||
"postlint": "tsc -p .",
|
||||
"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/inspect-js/is-array-buffer.git"
|
||||
},
|
||||
"keywords": [
|
||||
"javascript",
|
||||
"ecmascript",
|
||||
"is",
|
||||
"arraybuffer",
|
||||
"array",
|
||||
"buffer"
|
||||
],
|
||||
"author": "Jordan Harband <ljharb@gmail.com>",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
},
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/inspect-js/is-array-buffer/issues"
|
||||
},
|
||||
"homepage": "https://github.com/inspect-js/is-array-buffer#readme",
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^21.1.0",
|
||||
"@types/call-bind": "^1.0.5",
|
||||
"@types/es-value-fixtures": "^1.4.4",
|
||||
"@types/for-each": "^0.3.3",
|
||||
"@types/get-intrinsic": "^1.2.2",
|
||||
"@types/object-inspect": "^1.8.4",
|
||||
"@types/tape": "^5.6.4",
|
||||
"aud": "^2.0.4",
|
||||
"auto-changelog": "^2.4.0",
|
||||
"available-typed-arrays": "^1.0.6",
|
||||
"es-value-fixtures": "^1.4.2",
|
||||
"eslint": "=8.8.0",
|
||||
"for-each": "^0.3.3",
|
||||
"in-publish": "^2.0.1",
|
||||
"npmignore": "^0.3.1",
|
||||
"nyc": "^10.3.2",
|
||||
"object-inspect": "^1.13.1",
|
||||
"safe-publish-latest": "^2.0.0",
|
||||
"tape": "^5.7.4",
|
||||
"typescript": "next"
|
||||
},
|
||||
"auto-changelog": {
|
||||
"output": "CHANGELOG.md",
|
||||
"template": "keepachangelog",
|
||||
"unreleased": false,
|
||||
"commitLimit": false,
|
||||
"backfillLimit": false,
|
||||
"hideCredit": true,
|
||||
"startingVersion": "2.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"call-bind": "^1.0.2",
|
||||
"get-intrinsic": "^1.2.1"
|
||||
},
|
||||
"publishConfig": {
|
||||
"ignore": [
|
||||
".github/workflows"
|
||||
]
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
}
|
50
node_modules/is-array-buffer/test/index.js
generated
vendored
Normal file
50
node_modules/is-array-buffer/test/index.js
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
'use strict';
|
||||
|
||||
var test = require('tape');
|
||||
var inspect = require('object-inspect');
|
||||
var forEach = require('for-each');
|
||||
var v = require('es-value-fixtures');
|
||||
var availableTypedArrays = require('available-typed-arrays')();
|
||||
|
||||
var isArrayBuffer = require('..');
|
||||
|
||||
test('isArrayBuffer', function (t) {
|
||||
t.equal(typeof isArrayBuffer, 'function', 'is a function');
|
||||
|
||||
/** @type {unknown[]} */
|
||||
var nonABs = [].concat(
|
||||
// @ts-expect-error TS sucks with [].concat
|
||||
v.primitives,
|
||||
v.objects,
|
||||
typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(0) : []
|
||||
);
|
||||
forEach(nonABs, function (nonAB) {
|
||||
t.equal(isArrayBuffer(nonAB), false, inspect(nonAB) + ' is not an ArrayBuffer');
|
||||
});
|
||||
|
||||
t.test('actual ArrayBuffer instances', { skip: typeof ArrayBuffer === 'undefined' }, function (st) {
|
||||
// @ts-expect-error TS grumbles about 0 args
|
||||
var ab = new ArrayBuffer();
|
||||
st.equal(isArrayBuffer(ab), true, inspect(ab) + ' is an ArrayBuffer');
|
||||
|
||||
var ab42 = new ArrayBuffer(42);
|
||||
st.equal(isArrayBuffer(ab42), true, inspect(ab42) + ' is an ArrayBuffer');
|
||||
|
||||
var dv = new DataView(ab42);
|
||||
st.equal(isArrayBuffer(dv), false, inspect(dv) + ' is not an ArrayBuffer');
|
||||
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('Typed Arrays', { skip: availableTypedArrays.length === 0 }, function (st) {
|
||||
forEach(availableTypedArrays, function (TypedArray) {
|
||||
var ta = new global[TypedArray](0);
|
||||
st.equal(isArrayBuffer(ta.buffer), true, inspect(ta.buffer) + ', the TA\'s buffer, is an ArrayBuffer');
|
||||
st.equal(isArrayBuffer(ta), false, inspect(ta) + ' is not an ArrayBuffer');
|
||||
});
|
||||
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.end();
|
||||
});
|
49
node_modules/is-array-buffer/tsconfig.json
generated
vendored
Normal file
49
node_modules/is-array-buffer/tsconfig.json
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
/* Visit https://aka.ms/tsconfig to read more about this file */
|
||||
|
||||
/* Projects */
|
||||
|
||||
/* Language and Environment */
|
||||
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
||||
"useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
||||
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
||||
|
||||
/* Modules */
|
||||
"module": "commonjs", /* Specify what module code is generated. */
|
||||
// "rootDir": "./", /* Specify the root folder within your source files. */
|
||||
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
||||
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
||||
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
||||
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
||||
"typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
|
||||
"resolveJsonModule": true, /* Enable importing .json files. */
|
||||
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
||||
|
||||
/* JavaScript Support */
|
||||
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
||||
"checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
||||
"maxNodeModuleJsDepth": 0, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
||||
|
||||
/* Emit */
|
||||
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
||||
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
||||
"noEmit": true, /* Disable emitting files from a compilation. */
|
||||
|
||||
/* Interop Constraints */
|
||||
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
||||
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
||||
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
||||
|
||||
/* Type Checking */
|
||||
"strict": true, /* Enable all strict type-checking options. */
|
||||
|
||||
/* Completeness */
|
||||
//"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
||||
},
|
||||
"exclude": [
|
||||
"coverage"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user