Conexio amb la api
This commit is contained in:
parent
207c0ba819
commit
b12369cb47
48513 changed files with 7391639 additions and 7 deletions
1
node_modules/is-shared-array-buffer/.eslintignore
generated
vendored
Executable file
1
node_modules/is-shared-array-buffer/.eslintignore
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
coverage/
|
||||
18
node_modules/is-shared-array-buffer/.eslintrc
generated
vendored
Executable file
18
node_modules/is-shared-array-buffer/.eslintrc
generated
vendored
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"rules": {
|
||||
"operator-linebreak": [2, "before"],
|
||||
},
|
||||
|
||||
"overrides": [
|
||||
{
|
||||
"files": "test/**",
|
||||
"globals": {
|
||||
"SharedArrayBuffer": false,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
12
node_modules/is-shared-array-buffer/.github/FUNDING.yml
generated
vendored
Executable file
12
node_modules/is-shared-array-buffer/.github/FUNDING.yml
generated
vendored
Executable 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-shared-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']
|
||||
13
node_modules/is-shared-array-buffer/.nycrc
generated
vendored
Executable file
13
node_modules/is-shared-array-buffer/.nycrc
generated
vendored
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"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"
|
||||
]
|
||||
}
|
||||
28
node_modules/is-shared-array-buffer/CHANGELOG.md
generated
vendored
Executable file
28
node_modules/is-shared-array-buffer/CHANGELOG.md
generated
vendored
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
# 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.0.1](https://github.com/inspect-js/is-shared-array-buffer/compare/v1.0.0...v1.0.1) - 2021-03-04
|
||||
|
||||
### Commits
|
||||
|
||||
- [readme] fix repo URLs [`37c38f3`](https://github.com/inspect-js/is-shared-array-buffer/commit/37c38f347392da177197dd2fd518b61240a56203)
|
||||
|
||||
## v1.0.0 - 2021-03-04
|
||||
|
||||
### Commits
|
||||
|
||||
- [Tests] add tests [`9c7b806`](https://github.com/inspect-js/is-shared-array-buffer/commit/9c7b806ab1528814308a7420f8198644f55c916f)
|
||||
- Initial commit [`4e65c5e`](https://github.com/inspect-js/is-shared-array-buffer/commit/4e65c5ecdaa255162bc6507de4ff98cea2472e3b)
|
||||
- [meta] do not publish github action workflow files [`ac3693d`](https://github.com/inspect-js/is-shared-array-buffer/commit/ac3693db8ec26db5444ef4b46aa38a81e8841d30)
|
||||
- readme [`7a984d0`](https://github.com/inspect-js/is-shared-array-buffer/commit/7a984d0db73b77943f6731098134e3351a36793b)
|
||||
- npm init [`a586c99`](https://github.com/inspect-js/is-shared-array-buffer/commit/a586c99316f3c8ae4fd5125621ea933e97a1bf1b)
|
||||
- [actions] add automatic rebasing / merge commit blocking [`184fe62`](https://github.com/inspect-js/is-shared-array-buffer/commit/184fe622680d523e89ac322fa1a52dbba46a8fc0)
|
||||
- Implementation [`207e26d`](https://github.com/inspect-js/is-shared-array-buffer/commit/207e26d1128930f28384cb213b38d69fd52bbd7c)
|
||||
- [meta] create `FUNDING.yml`; add "funding" field [`3cad3fc`](https://github.com/inspect-js/is-shared-array-buffer/commit/3cad3fc9509f91fbc71e84565529f53a94d538d4)
|
||||
- [meta] add auto-changelog [`31f1f2c`](https://github.com/inspect-js/is-shared-array-buffer/commit/31f1f2cbcd616d6c09089d62198d5cc775053324)
|
||||
- [Tests] add `npm run lint` [`2e5146e`](https://github.com/inspect-js/is-shared-array-buffer/commit/2e5146e18f44533382a781fa09a50d4f47caa0e5)
|
||||
- Only apps should have lockfiles [`7b2adfa`](https://github.com/inspect-js/is-shared-array-buffer/commit/7b2adfad6dcd95271ab6ba34658a9a1a21dbeacf)
|
||||
21
node_modules/is-shared-array-buffer/LICENSE
generated
vendored
Executable file
21
node_modules/is-shared-array-buffer/LICENSE
generated
vendored
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2021 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.
|
||||
52
node_modules/is-shared-array-buffer/README.md
generated
vendored
Executable file
52
node_modules/is-shared-array-buffer/README.md
generated
vendored
Executable file
|
|
@ -0,0 +1,52 @@
|
|||
# is-shared-array-buffer <sup>[![Version Badge][2]][1]</sup>
|
||||
|
||||
[![dependency status][5]][6]
|
||||
[![dev dependency status][7]][8]
|
||||
[![License][license-image]][license-url]
|
||||
[![Downloads][downloads-image]][downloads-url]
|
||||
|
||||
[![npm badge][11]][1]
|
||||
|
||||
Is this value a JS SharedArrayBuffer? 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 isSharedArrayBuffer = require('is-shared-array-buffer');
|
||||
|
||||
assert(!isSharedArrayBuffer(function () {}));
|
||||
assert(!isSharedArrayBuffer(null));
|
||||
assert(!isSharedArrayBuffer(function* () { yield 42; return Infinity; });
|
||||
assert(!isSharedArrayBuffer(Symbol('foo')));
|
||||
assert(!isSharedArrayBuffer(1n));
|
||||
assert(!isSharedArrayBuffer(Object(1n)));
|
||||
|
||||
assert(!isSharedArrayBuffer(new Set()));
|
||||
assert(!isSharedArrayBuffer(new WeakSet()));
|
||||
assert(!isSharedArrayBuffer(new Map()));
|
||||
assert(!isSharedArrayBuffer(new WeakMap()));
|
||||
assert(!isSharedArrayBuffer(new WeakRef({})));
|
||||
assert(!isSharedArrayBuffer(new FinalizationRegistry(() => {})));
|
||||
assert(!isSharedArrayBuffer(new ArrayBuffer()));
|
||||
|
||||
assert(isSharedArrayBuffer(new SharedArrayBuffer()));
|
||||
|
||||
class MySharedArrayBuffer extends SharedArrayBuffer {}
|
||||
assert(isSharedArrayBuffer(new MySharedArrayBuffer()));
|
||||
```
|
||||
|
||||
## Tests
|
||||
Simply clone the repo, `npm install`, and run `npm test`
|
||||
|
||||
[1]: https://npmjs.org/package/is-shared-array-buffer
|
||||
[2]: https://versionbadg.es/inspect-js/is-shared-array-buffer.svg
|
||||
[5]: https://david-dm.org/inspect-js/is-shared-array-buffer.svg
|
||||
[6]: https://david-dm.org/inspect-js/is-shared-array-buffer
|
||||
[7]: https://david-dm.org/inspect-js/is-shared-array-buffer/dev-status.svg
|
||||
[8]: https://david-dm.org/inspect-js/is-shared-array-buffer#info=devDependencies
|
||||
[11]: https://nodei.co/npm/is-shared-array-buffer.png?downloads=true&stars=true
|
||||
[license-image]: https://img.shields.io/npm/l/is-shared-array-buffer.svg
|
||||
[license-url]: LICENSE
|
||||
[downloads-image]: https://img.shields.io/npm/dm/is-shared-array-buffer.svg
|
||||
[downloads-url]: https://npm-stat.com/charts.html?package=is-shared-array-buffer
|
||||
21
node_modules/is-shared-array-buffer/index.js
generated
vendored
Executable file
21
node_modules/is-shared-array-buffer/index.js
generated
vendored
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
'use strict';
|
||||
|
||||
var callBound = require('call-bind/callBound');
|
||||
|
||||
var $byteLength = callBound('SharedArrayBuffer.prototype.byteLength', true);
|
||||
|
||||
module.exports = $byteLength
|
||||
? function isSharedArrayBuffer(obj) {
|
||||
if (!obj || typeof obj !== 'object') {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
$byteLength(obj);
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
: function isSharedArrayBuffer(obj) { // eslint-disable-line no-unused-vars
|
||||
return false;
|
||||
};
|
||||
89
node_modules/is-shared-array-buffer/package.json
generated
vendored
Executable file
89
node_modules/is-shared-array-buffer/package.json
generated
vendored
Executable file
|
|
@ -0,0 +1,89 @@
|
|||
{
|
||||
"_from": "is-shared-array-buffer@^1.0.1",
|
||||
"_id": "is-shared-array-buffer@1.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA==",
|
||||
"_location": "/is-shared-array-buffer",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "is-shared-array-buffer@^1.0.1",
|
||||
"name": "is-shared-array-buffer",
|
||||
"escapedName": "is-shared-array-buffer",
|
||||
"rawSpec": "^1.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/es-abstract"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz",
|
||||
"_shasum": "97b0c85fbdacb59c9c446fe653b82cf2b5b7cfe6",
|
||||
"_spec": "is-shared-array-buffer@^1.0.1",
|
||||
"_where": "/home/jack/Documents/JDA/m14/projecte_janmaroto/node_modules/es-abstract",
|
||||
"author": {
|
||||
"name": "Jordan Harband",
|
||||
"email": "ljharb@gmail.com",
|
||||
"url": "http://ljharb.codes"
|
||||
},
|
||||
"auto-changelog": {
|
||||
"output": "CHANGELOG.md",
|
||||
"template": "keepachangelog",
|
||||
"unreleased": false,
|
||||
"commitLimit": false,
|
||||
"backfillLimit": false,
|
||||
"hideCredit": true
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/inspect-js/is-shared-array-buffer/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Is this value a JS SharedArrayBuffer?",
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^17.5.1",
|
||||
"aud": "^1.1.4",
|
||||
"auto-changelog": "^2.2.1",
|
||||
"es-value-fixtures": "^1.2.1",
|
||||
"eslint": "^7.21.0",
|
||||
"for-each": "^0.3.3",
|
||||
"nyc": "^10.3.2",
|
||||
"object-inspect": "^1.9.0",
|
||||
"tape": "^5.2.2"
|
||||
},
|
||||
"exports": {
|
||||
".": "./index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
},
|
||||
"homepage": "https://github.com/inspect-js/is-shared-array-buffer#readme",
|
||||
"keywords": [
|
||||
"javascript",
|
||||
"ecmascript",
|
||||
"is",
|
||||
"sharedarraybuffer",
|
||||
"shared",
|
||||
"array",
|
||||
"buffer"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "is-shared-array-buffer",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/inspect-js/is-shared-array-buffer.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint --ext=.js,.mjs .",
|
||||
"posttest": "aud --production",
|
||||
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
|
||||
"pretest": "npm run lint",
|
||||
"test": "npm run tests-only --",
|
||||
"tests-only": "nyc tape 'test/**/*.js'",
|
||||
"version": "auto-changelog && git add CHANGELOG.md"
|
||||
},
|
||||
"version": "1.0.1"
|
||||
}
|
||||
27
node_modules/is-shared-array-buffer/test/index.js
generated
vendored
Executable file
27
node_modules/is-shared-array-buffer/test/index.js
generated
vendored
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
'use strict';
|
||||
|
||||
var test = require('tape');
|
||||
var inspect = require('object-inspect');
|
||||
var forEach = require('for-each');
|
||||
var v = require('es-value-fixtures');
|
||||
|
||||
var isSharedArrayBuffer = require('..');
|
||||
|
||||
test('isSharedArrayBuffer', function (t) {
|
||||
t.equal(typeof isSharedArrayBuffer, 'function', 'is a function');
|
||||
|
||||
var nonSABs = v.primitives.concat(v.objects);
|
||||
forEach(nonSABs, function (nonSAB) {
|
||||
t.equal(isSharedArrayBuffer(nonSAB), false, inspect(nonSAB) + ' is not a SharedArrayBuffer');
|
||||
});
|
||||
|
||||
t.test('actual SharedArrayBuffer instances', { skip: typeof SharedArrayBuffer === 'undefined' }, function (st) {
|
||||
var sab = new SharedArrayBuffer();
|
||||
|
||||
st.equal(isSharedArrayBuffer(sab), true, inspect(sab) + ' is a SharedArrayBuffer');
|
||||
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.end();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue