From 8539cacbbe7dd7e5bece23b971cf1792f9ade3e7 Mon Sep 17 00:00:00 2001
From: David Sherret
Date: Fri, 13 Sep 2024 15:27:20 +0100
Subject: chore: update more registry.json files (#25615)
Extracted out of https://github.com/denoland/deno/pull/25614
It's better for these to be non-minified because then diffs are better
when adding new versions.
---
tests/registry/npm/type-detect/registry.json | 126 ++++++++++++++++++++++++++-
1 file changed, 125 insertions(+), 1 deletion(-)
(limited to 'tests/registry/npm/type-detect')
diff --git a/tests/registry/npm/type-detect/registry.json b/tests/registry/npm/type-detect/registry.json
index 9c04ee5c7..0ea3ddc10 100644
--- a/tests/registry/npm/type-detect/registry.json
+++ b/tests/registry/npm/type-detect/registry.json
@@ -1 +1,125 @@
-{"name":"type-detect","description":"Improved typeof detection for node.js and the browser.","dist-tags":{"latest":"4.0.8"},"versions":{"4.0.8":{"name":"type-detect","description":"Improved typeof detection for node.js and the browser.","license":"MIT","author":{"name":"Jake Luer","email":"jake@alogicalparadox.com","url":"http://alogicalparadox.com"},"files":["index.js","type-detect.js"],"main":"./type-detect.js","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/type-detect.git"},"scripts":{"bench":"node bench","build":"rollup -c rollup.conf.js","commit-msg":"commitlint -x angular","lint":"eslint --ignore-path .gitignore .","prepare":"cross-env NODE_ENV=production npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest:node":"cross-env NODE_ENV=test npm run build","pretest:browser":"cross-env NODE_ENV=test npm run build","test":"npm run test:node && npm run test:browser","test:browser":"karma start --singleRun=true","test:node":"nyc mocha type-detect.test.js","posttest:node":"nyc report --report-dir \"coverage/node-$(node --version)\" --reporter=lcovonly && npm run upload-coverage","posttest:browser":"npm run upload-coverage","upload-coverage":"codecov"},"eslintConfig":{"env":{"es6":true},"extends":["strict/es6"],"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0,"prefer-rest-params":0}},"devDependencies":{"@commitlint/cli":"^4.2.2","benchmark":"^2.1.0","buble":"^0.16.0","codecov":"^3.0.0","commitlint-config-angular":"^4.2.1","cross-env":"^5.1.1","eslint":"^4.10.0","eslint-config-strict":"^14.0.0","eslint-plugin-filenames":"^1.2.0","husky":"^0.14.3","karma":"^1.7.1","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-detect-browsers":"^2.2.5","karma-edge-launcher":"^0.4.2","karma-firefox-launcher":"^1.0.1","karma-ie-launcher":"^1.0.0","karma-mocha":"^1.3.0","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-safaritechpreview-launcher":"0.0.6","karma-sauce-launcher":"^1.2.0","mocha":"^4.0.1","nyc":"^11.3.0","rollup":"^0.50.0","rollup-plugin-buble":"^0.16.0","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-istanbul":"^1.1.0","rollup-plugin-node-resolve":"^3.0.0","semantic-release":"^8.2.0","simple-assert":"^1.0.0"},"engines":{"node":">=4"},"version":"4.0.8","gitHead":"a40d8395f06507edd3e4806cb3fe5a878f6a6551","bugs":{"url":"https://github.com/chaijs/type-detect/issues"},"_id":"type-detect@4.0.8","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","dist":{"integrity":"sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==","shasum":"7646fb5f18871cfbb7749e69bd39a6388eb7450c","tarball":"http://localhost:4260/type-detect/type-detect-4.0.8.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEFxImpCxU+MuBlIeBAmerqd0RsGClH5O5G220HhFDPjAiBu9IIino0NDpaZJe49jwAOU5KIoB0BfJu8oPqZi0uLhw=="}]},"directories":{}}},"readme":"\n
\n\n Improved typeof detection for node and the browser.\n
\n\n\n \n
\n \n \n
\n \n \n
\n \n \n
\n \n \n
\n \n \n
\n \n \n
\n \n
\n
\n | Supported Browsers |
\n Chrome | \n Edge | \n Firefox | \n Safari | \n IE | \n
\n | ✅ | \n ✅ | \n ✅ | \n ✅ | \n 9, 10, 11 | \n
\n
\n
\n \n
\n \n \n
\n \n
\n\n## What is Type-Detect?\n\nType Detect is a module which you can use to detect the type of a given object. It returns a string representation of the object's type, either using [`typeof`](http://www.ecma-international.org/ecma-262/6.0/index.html#sec-typeof-operator) or [`@@toStringTag`](http://www.ecma-international.org/ecma-262/6.0/index.html#sec-symbol.tostringtag). It also normalizes some object names for consistency among browsers.\n\n## Why?\n\nThe `typeof` operator will only specify primitive values; everything else is `\"object\"` (including `null`, arrays, regexps, etc). Many developers use `Object.prototype.toString()` - which is a fine alternative and returns many more types (null returns `[object Null]`, Arrays as `[object Array]`, regexps as `[object RegExp]` etc). \n\nSadly, `Object.prototype.toString` is slow, and buggy. By slow - we mean it is slower than `typeof`. By buggy - we mean that some values (like Promises, the global object, iterators, dataviews, a bunch of HTML elements) all report different things in different browsers.\n\n`type-detect` fixes all of the shortcomings with `Object.prototype.toString`. We have extra code to speed up checks of JS and DOM objects, as much as 20-30x faster for some values. `type-detect` also fixes any consistencies with these objects.\n\n## Installation\n\n### Node.js\n\n`type-detect` is available on [npm](http://npmjs.org). To install it, type:\n\n $ npm install type-detect\n\n### Browsers\n\nYou can also use it within the browser; install via npm and use the `type-detect.js` file found within the download. For example:\n\n```html\n\n```\n\n## Usage\n\nThe primary export of `type-detect` is function that can serve as a replacement for `typeof`. The results of this function will be more specific than that of native `typeof`.\n\n```js\nvar type = require('type-detect');\n```\n\n#### array\n\n```js\nassert(type([]) === 'Array');\nassert(type(new Array()) === 'Array');\n```\n\n#### regexp\n\n```js\nassert(type(/a-z/gi) === 'RegExp');\nassert(type(new RegExp('a-z')) === 'RegExp');\n```\n\n#### function\n\n```js\nassert(type(function () {}) === 'function');\n```\n\n#### arguments\n\n```js\n(function () {\n assert(type(arguments) === 'Arguments');\n})();\n```\n\n#### date\n\n```js\nassert(type(new Date) === 'Date');\n```\n\n#### number\n\n```js\nassert(type(1) === 'number');\nassert(type(1.234) === 'number');\nassert(type(-1) === 'number');\nassert(type(-1.234) === 'number');\nassert(type(Infinity) === 'number');\nassert(type(NaN) === 'number');\nassert(type(new Number(1)) === 'Number'); // note - the object version has a capital N\n```\n\n#### string\n\n```js\nassert(type('hello world') === 'string');\nassert(type(new String('hello')) === 'String'); // note - the object version has a capital S\n```\n\n#### null\n\n```js\nassert(type(null) === 'null');\nassert(type(undefined) !== 'null');\n```\n\n#### undefined\n\n```js\nassert(type(undefined) === 'undefined');\nassert(type(null) !== 'undefined');\n```\n\n#### object\n\n```js\nvar Noop = function () {};\nassert(type({}) === 'Object');\nassert(type(Noop) !== 'Object');\nassert(type(new Noop) === 'Object');\nassert(type(new Object) === 'Object');\n```\n\n#### ECMA6 Types\n\nAll new ECMAScript 2015 objects are also supported, such as Promises and Symbols:\n\n```js\nassert(type(new Map() === 'Map');\nassert(type(new WeakMap()) === 'WeakMap');\nassert(type(new Set()) === 'Set');\nassert(type(new WeakSet()) === 'WeakSet');\nassert(type(Symbol()) === 'symbol');\nassert(type(new Promise(callback) === 'Promise');\nassert(type(new Int8Array()) === 'Int8Array');\nassert(type(new Uint8Array()) === 'Uint8Array');\nassert(type(new UInt8ClampedArray()) === 'Uint8ClampedArray');\nassert(type(new Int16Array()) === 'Int16Array');\nassert(type(new Uint16Array()) === 'Uint16Array');\nassert(type(new Int32Array()) === 'Int32Array');\nassert(type(new UInt32Array()) === 'Uint32Array');\nassert(type(new Float32Array()) === 'Float32Array');\nassert(type(new Float64Array()) === 'Float64Array');\nassert(type(new ArrayBuffer()) === 'ArrayBuffer');\nassert(type(new DataView(arrayBuffer)) === 'DataView');\n```\n\nAlso, if you use `Symbol.toStringTag` to change an Objects return value of the `toString()` Method, `type()` will return this value, e.g:\n\n```js\nvar myObject = {};\nmyObject[Symbol.toStringTag] = 'myCustomType';\nassert(type(myObject) === 'myCustomType');\n```\n","author":{"name":"Jake Luer","email":"jake@alogicalparadox.com","url":"http://alogicalparadox.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/type-detect.git"},"homepage":"https://github.com/chaijs/type-detect#readme","bugs":{"url":"https://github.com/chaijs/type-detect/issues"},"license":"MIT","readmeFilename":"README.md"}
+{
+ "name": "type-detect",
+ "description": "Improved typeof detection for node.js and the browser.",
+ "dist-tags": {
+ "latest": "4.0.8"
+ },
+ "versions": {
+ "4.0.8": {
+ "name": "type-detect",
+ "description": "Improved typeof detection for node.js and the browser.",
+ "license": "MIT",
+ "author": {
+ "name": "Jake Luer",
+ "email": "jake@alogicalparadox.com",
+ "url": "http://alogicalparadox.com"
+ },
+ "files": [
+ "index.js",
+ "type-detect.js"
+ ],
+ "main": "./type-detect.js",
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/chaijs/type-detect.git"
+ },
+ "scripts": {
+ "bench": "node bench",
+ "build": "rollup -c rollup.conf.js",
+ "commit-msg": "commitlint -x angular",
+ "lint": "eslint --ignore-path .gitignore .",
+ "prepare": "cross-env NODE_ENV=production npm run build",
+ "semantic-release": "semantic-release pre && npm publish && semantic-release post",
+ "pretest:node": "cross-env NODE_ENV=test npm run build",
+ "pretest:browser": "cross-env NODE_ENV=test npm run build",
+ "test": "npm run test:node && npm run test:browser",
+ "test:browser": "karma start --singleRun=true",
+ "test:node": "nyc mocha type-detect.test.js",
+ "posttest:node": "nyc report --report-dir \"coverage/node-$(node --version)\" --reporter=lcovonly && npm run upload-coverage",
+ "posttest:browser": "npm run upload-coverage",
+ "upload-coverage": "codecov"
+ },
+ "eslintConfig": {
+ "env": {
+ "es6": true
+ },
+ "extends": [
+ "strict/es6"
+ ],
+ "globals": {
+ "HTMLElement": false
+ },
+ "rules": {
+ "complexity": 0,
+ "max-statements": 0,
+ "prefer-rest-params": 0
+ }
+ },
+ "devDependencies": {
+ "@commitlint/cli": "^4.2.2",
+ "benchmark": "^2.1.0",
+ "buble": "^0.16.0",
+ "codecov": "^3.0.0",
+ "commitlint-config-angular": "^4.2.1",
+ "cross-env": "^5.1.1",
+ "eslint": "^4.10.0",
+ "eslint-config-strict": "^14.0.0",
+ "eslint-plugin-filenames": "^1.2.0",
+ "husky": "^0.14.3",
+ "karma": "^1.7.1",
+ "karma-chrome-launcher": "^2.2.0",
+ "karma-coverage": "^1.1.1",
+ "karma-detect-browsers": "^2.2.5",
+ "karma-edge-launcher": "^0.4.2",
+ "karma-firefox-launcher": "^1.0.1",
+ "karma-ie-launcher": "^1.0.0",
+ "karma-mocha": "^1.3.0",
+ "karma-opera-launcher": "^1.0.0",
+ "karma-safari-launcher": "^1.0.0",
+ "karma-safaritechpreview-launcher": "0.0.6",
+ "karma-sauce-launcher": "^1.2.0",
+ "mocha": "^4.0.1",
+ "nyc": "^11.3.0",
+ "rollup": "^0.50.0",
+ "rollup-plugin-buble": "^0.16.0",
+ "rollup-plugin-commonjs": "^8.2.6",
+ "rollup-plugin-istanbul": "^1.1.0",
+ "rollup-plugin-node-resolve": "^3.0.0",
+ "semantic-release": "^8.2.0",
+ "simple-assert": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "version": "4.0.8",
+ "gitHead": "a40d8395f06507edd3e4806cb3fe5a878f6a6551",
+ "bugs": {
+ "url": "https://github.com/chaijs/type-detect/issues"
+ },
+ "_id": "type-detect@4.0.8",
+ "_npmVersion": "5.6.0",
+ "_nodeVersion": "8.9.4",
+ "dist": {
+ "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
+ "shasum": "7646fb5f18871cfbb7749e69bd39a6388eb7450c",
+ "tarball": "http://localhost:4260/type-detect/type-detect-4.0.8.tgz"
+ },
+ "directories": {}
+ }
+ },
+ "author": {
+ "name": "Jake Luer",
+ "email": "jake@alogicalparadox.com",
+ "url": "http://alogicalparadox.com"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/chaijs/type-detect.git"
+ },
+ "homepage": "https://github.com/chaijs/type-detect#readme",
+ "bugs": {
+ "url": "https://github.com/chaijs/type-detect/issues"
+ },
+ "license": "MIT",
+ "readmeFilename": "README.md"
+}
--
cgit v1.2.3