Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/check-error.json

raw
1 {
2 "_id": "check-error",
3 "_rev": "4-1d803ca285051174a767ce208de78aa4",
4 "name": "check-error",
5 "description": "Error comparison and information related utility for node and the browser",
6 "dist-tags": {
7 "latest": "1.0.2"
8 },
9 "versions": {
10 "1.0.0": {
11 "name": "check-error",
12 "description": "Error comparison and information related utility for node and the browser",
13 "keywords": [
14 "check-error",
15 "error",
16 "chai util"
17 ],
18 "license": "MIT",
19 "author": {
20 "name": "Jake Luer",
21 "email": "[email protected]",
22 "url": "http://alogicalparadox.com"
23 },
24 "contributors": [
25 {
26 "name": "David Losert",
27 "url": "https://github.com/davelosert"
28 },
29 {
30 "name": "Keith Cirkel",
31 "url": "https://github.com/keithamus"
32 },
33 {
34 "name": "Miroslav Bajtoš",
35 "url": "https://github.com/bajtos"
36 },
37 {
38 "name": "Lucas Fernandes da Costa",
39 "url": "https://github.com/lucasfcosta"
40 }
41 ],
42 "files": [
43 "index.js",
44 "check-error.js"
45 ],
46 "main": "./index.js",
47 "repository": {
48 "type": "git",
49 "url": "git+ssh://[email protected]/chaijs/check-error.git"
50 },
51 "scripts": {
52 "build": "browserify --bare $npm_package_main --standalone checkError -o check-error.js",
53 "lint": "eslint --ignore-path .gitignore .",
54 "prepublish": "npm run build",
55 "semantic-release": "semantic-release pre && npm publish && semantic-release post",
56 "pretest": "npm run lint",
57 "test": "npm run test:node && npm run test:browser && npm run upload-coverage",
58 "test:browser": "karma start --singleRun=true",
59 "test:node": "istanbul cover _mocha",
60 "upload-coverage": "lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"
61 },
62 "config": {
63 "ghooks": {
64 "commit-msg": "validate-commit-msg"
65 }
66 },
67 "eslintConfig": {
68 "extends": [
69 "strict/es5"
70 ],
71 "env": {
72 "es6": true
73 },
74 "globals": {
75 "HTMLElement": false
76 },
77 "rules": {
78 "complexity": 0,
79 "max-statements": 0
80 }
81 },
82 "dependencies": {},
83 "devDependencies": {
84 "browserify": "^13.0.0",
85 "browserify-istanbul": "^1.0.0",
86 "coveralls": "2.11.9",
87 "eslint": "^2.4.0",
88 "eslint-config-strict": "^8.5.0",
89 "eslint-plugin-filenames": "^0.2.0",
90 "ghooks": "^1.0.1",
91 "istanbul": "^0.4.2",
92 "karma": "^0.13.22",
93 "karma-browserify": "^5.0.2",
94 "karma-coverage": "^0.5.5",
95 "karma-mocha": "^0.2.2",
96 "karma-phantomjs-launcher": "^1.0.0",
97 "karma-sauce-launcher": "^0.3.1",
98 "lcov-result-merger": "^1.0.2",
99 "mocha": "^2.4.5",
100 "phantomjs-prebuilt": "^2.1.5",
101 "semantic-release": "^4.3.5",
102 "simple-assert": "^1.0.0",
103 "travis-after-all": "^1.4.4",
104 "validate-commit-msg": "^2.3.1"
105 },
106 "engines": {
107 "node": "*"
108 },
109 "version": "1.0.0",
110 "gitHead": "b61892d74797f418b93817afd9d02b1cf0b10ed9",
111 "bugs": {
112 "url": "https://github.com/chaijs/check-error/issues"
113 },
114 "homepage": "https://github.com/chaijs/check-error#readme",
115 "_id": "[email protected]",
116 "_shasum": "4ba80ad494b9608e03fc4c33d6aef93d734bdf34",
117 "_from": ".",
118 "_npmVersion": "3.9.5",
119 "_nodeVersion": "0.10.45",
120 "_npmUser": {
121 "name": "chaijs",
122 "email": "[email protected]"
123 },
124 "dist": {
125 "shasum": "4ba80ad494b9608e03fc4c33d6aef93d734bdf34",
126 "tarball": "https://registry.npmjs.org/check-error/-/check-error-1.0.0.tgz"
127 },
128 "maintainers": [
129 {
130 "name": "chaijs",
131 "email": "[email protected]"
132 }
133 ],
134 "_npmOperationalInternal": {
135 "host": "packages-16-east.internal.npmjs.com",
136 "tmp": "tmp/check-error-1.0.0.tgz_1464967937819_0.0839628055691719"
137 },
138 "directories": {}
139 },
140 "1.0.1": {
141 "name": "check-error",
142 "description": "Error comparison and information related utility for node and the browser",
143 "keywords": [
144 "check-error",
145 "error",
146 "chai util"
147 ],
148 "license": "MIT",
149 "author": {
150 "name": "Jake Luer",
151 "email": "[email protected]",
152 "url": "http://alogicalparadox.com"
153 },
154 "contributors": [
155 {
156 "name": "David Losert",
157 "url": "https://github.com/davelosert"
158 },
159 {
160 "name": "Keith Cirkel",
161 "url": "https://github.com/keithamus"
162 },
163 {
164 "name": "Miroslav Bajtoš",
165 "url": "https://github.com/bajtos"
166 },
167 {
168 "name": "Lucas Fernandes da Costa",
169 "url": "https://github.com/lucasfcosta"
170 }
171 ],
172 "files": [
173 "index.js",
174 "check-error.js"
175 ],
176 "main": "./index.js",
177 "repository": {
178 "type": "git",
179 "url": "git+ssh://[email protected]/chaijs/check-error.git"
180 },
181 "scripts": {
182 "build": "browserify --bare $npm_package_main --standalone checkError -o check-error.js",
183 "lint": "eslint --ignore-path .gitignore .",
184 "prepublish": "npm run build",
185 "semantic-release": "semantic-release pre && npm publish && semantic-release post",
186 "pretest": "npm run lint",
187 "test": "npm run test:node && npm run test:browser && npm run upload-coverage",
188 "test:browser": "karma start --singleRun=true",
189 "test:node": "istanbul cover _mocha",
190 "upload-coverage": "lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"
191 },
192 "config": {
193 "ghooks": {
194 "commit-msg": "validate-commit-msg"
195 }
196 },
197 "eslintConfig": {
198 "extends": [
199 "strict/es5"
200 ],
201 "env": {
202 "es6": true
203 },
204 "globals": {
205 "HTMLElement": false
206 },
207 "rules": {
208 "complexity": 0,
209 "max-statements": 0
210 }
211 },
212 "dependencies": {},
213 "devDependencies": {
214 "browserify": "^13.0.0",
215 "browserify-istanbul": "^1.0.0",
216 "coveralls": "2.11.9",
217 "eslint": "^2.4.0",
218 "eslint-config-strict": "^8.5.0",
219 "eslint-plugin-filenames": "^0.2.0",
220 "ghooks": "^1.0.1",
221 "istanbul": "^0.4.2",
222 "karma": "^0.13.22",
223 "karma-browserify": "^5.0.2",
224 "karma-coverage": "^0.5.5",
225 "karma-mocha": "^0.2.2",
226 "karma-phantomjs-launcher": "^1.0.0",
227 "karma-sauce-launcher": "^0.3.1",
228 "lcov-result-merger": "^1.0.2",
229 "mocha": "^2.4.5",
230 "phantomjs-prebuilt": "^2.1.5",
231 "semantic-release": "^4.3.5",
232 "simple-assert": "^1.0.0",
233 "travis-after-all": "^1.4.4",
234 "validate-commit-msg": "^2.3.1"
235 },
236 "engines": {
237 "node": "*"
238 },
239 "version": "1.0.1",
240 "gitHead": "d257b8667423de02d1663c814579024ba90c808c",
241 "bugs": {
242 "url": "https://github.com/chaijs/check-error/issues"
243 },
244 "homepage": "https://github.com/chaijs/check-error#readme",
245 "_id": "[email protected]",
246 "_shasum": "7ba748e678f51cf6b9fb131d41270ac9badb972a",
247 "_from": ".",
248 "_npmVersion": "3.9.5",
249 "_nodeVersion": "0.10.45",
250 "_npmUser": {
251 "name": "chaijs",
252 "email": "[email protected]"
253 },
254 "dist": {
255 "shasum": "7ba748e678f51cf6b9fb131d41270ac9badb972a",
256 "tarball": "https://registry.npmjs.org/check-error/-/check-error-1.0.1.tgz"
257 },
258 "maintainers": [
259 {
260 "name": "chaijs",
261 "email": "[email protected]"
262 }
263 ],
264 "_npmOperationalInternal": {
265 "host": "packages-12-west.internal.npmjs.com",
266 "tmp": "tmp/check-error-1.0.1.tgz_1465291333990_0.3948423690162599"
267 },
268 "directories": {}
269 },
270 "1.0.2": {
271 "name": "check-error",
272 "description": "Error comparison and information related utility for node and the browser",
273 "keywords": [
274 "check-error",
275 "error",
276 "chai util"
277 ],
278 "license": "MIT",
279 "author": {
280 "name": "Jake Luer",
281 "email": "[email protected]",
282 "url": "http://alogicalparadox.com"
283 },
284 "contributors": [
285 {
286 "name": "David Losert",
287 "url": "https://github.com/davelosert"
288 },
289 {
290 "name": "Keith Cirkel",
291 "url": "https://github.com/keithamus"
292 },
293 {
294 "name": "Miroslav Bajtoš",
295 "url": "https://github.com/bajtos"
296 },
297 {
298 "name": "Lucas Fernandes da Costa",
299 "url": "https://github.com/lucasfcosta"
300 }
301 ],
302 "files": [
303 "index.js",
304 "check-error.js"
305 ],
306 "main": "./index.js",
307 "repository": {
308 "type": "git",
309 "url": "git+ssh://[email protected]/chaijs/check-error.git"
310 },
311 "scripts": {
312 "build": "browserify --bare $npm_package_main --standalone checkError -o check-error.js",
313 "lint": "eslint --ignore-path .gitignore .",
314 "prepublish": "npm run build",
315 "semantic-release": "semantic-release pre && npm publish && semantic-release post",
316 "pretest": "npm run lint",
317 "test": "npm run test:node && npm run test:browser && npm run upload-coverage",
318 "test:browser": "karma start --singleRun=true",
319 "test:node": "istanbul cover _mocha",
320 "upload-coverage": "lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"
321 },
322 "config": {
323 "ghooks": {
324 "commit-msg": "validate-commit-msg"
325 }
326 },
327 "eslintConfig": {
328 "extends": [
329 "strict/es5"
330 ],
331 "env": {
332 "es6": true
333 },
334 "globals": {
335 "HTMLElement": false
336 },
337 "rules": {
338 "complexity": 0,
339 "max-statements": 0
340 }
341 },
342 "dependencies": {},
343 "devDependencies": {
344 "browserify": "^13.0.0",
345 "browserify-istanbul": "^1.0.0",
346 "coveralls": "2.11.9",
347 "eslint": "^2.4.0",
348 "eslint-config-strict": "^8.5.0",
349 "eslint-plugin-filenames": "^0.2.0",
350 "ghooks": "^1.0.1",
351 "istanbul": "^0.4.2",
352 "karma": "^0.13.22",
353 "karma-browserify": "^5.0.2",
354 "karma-coverage": "^0.5.5",
355 "karma-mocha": "^0.2.2",
356 "karma-phantomjs-launcher": "^1.0.0",
357 "karma-sauce-launcher": "^0.3.1",
358 "lcov-result-merger": "^1.0.2",
359 "mocha": "^2.4.5",
360 "phantomjs-prebuilt": "^2.1.5",
361 "semantic-release": "^4.3.5",
362 "simple-assert": "^1.0.0",
363 "travis-after-all": "^1.4.4",
364 "validate-commit-msg": "^2.3.1"
365 },
366 "engines": {
367 "node": "*"
368 },
369 "version": "1.0.2",
370 "gitHead": "22a3985d2ec528015774206703332790aec4dea7",
371 "bugs": {
372 "url": "https://github.com/chaijs/check-error/issues"
373 },
374 "homepage": "https://github.com/chaijs/check-error#readme",
375 "_id": "[email protected]",
376 "_shasum": "574d312edd88bb5dd8912e9286dd6c0aed4aac82",
377 "_from": ".",
378 "_npmVersion": "3.10.2",
379 "_nodeVersion": "0.10.46",
380 "_npmUser": {
381 "name": "chaijs",
382 "email": "[email protected]"
383 },
384 "dist": {
385 "shasum": "574d312edd88bb5dd8912e9286dd6c0aed4aac82",
386 "tarball": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz"
387 },
388 "maintainers": [
389 {
390 "name": "chaijs",
391 "email": "[email protected]"
392 }
393 ],
394 "_npmOperationalInternal": {
395 "host": "packages-12-west.internal.npmjs.com",
396 "tmp": "tmp/check-error-1.0.2.tgz_1467062034464_0.8010135267395526"
397 },
398 "directories": {}
399 }
400 },
401 "readme": "<h1 align=center>\n <a href=\"http://chaijs.com\" title=\"Chai Documentation\">\n <img alt=\"ChaiJS\" src=\"http://chaijs.com/img/chai-logo.png\"/> check-error\n </a>\n</h1>\n\n<p align=center>\n Error comparison and information related utility for <a href=\"http://nodejs.org\">node</a> and the browser.\n</p>\n\n<p align=center>\n <a href=\"./LICENSE\">\n <img\n alt=\"license:mit\"\n src=\"https://img.shields.io/badge/license-mit-green.svg?style=flat-square\"\n />\n </a>\n <a href=\"https://github.com/chaijs/check-error/releases\">\n <img\n alt=\"tag:?\"\n src=\"https://img.shields.io/github/tag/chaijs/check-error.svg?style=flat-square\"\n />\n </a>\n <a href=\"https://travis-ci.org/chaijs/check-error\">\n <img\n alt=\"build:?\"\n src=\"https://img.shields.io/travis/chaijs/check-error/master.svg?style=flat-square\"\n />\n </a>\n <a href=\"https://coveralls.io/r/chaijs/check-error\">\n <img\n alt=\"coverage:?\"\n src=\"https://img.shields.io/coveralls/chaijs/check-error/master.svg?style=flat-square\"\n />\n </a>\n <a href=\"https://www.npmjs.com/packages/check-error\">\n <img\n alt=\"npm:?\"\n src=\"https://img.shields.io/npm/v/check-error.svg?style=flat-square\"\n />\n </a>\n <a href=\"https://www.npmjs.com/packages/check-error\">\n <img\n alt=\"dependencies:?\"\n src=\"https://img.shields.io/npm/dm/check-error.svg?style=flat-square\"\n />\n </a>\n <a href=\"\">\n <img\n alt=\"devDependencies:?\"\n src=\"https://img.shields.io/david/chaijs/check-error.svg?style=flat-square\"\n />\n </a>\n <br/>\n <a href=\"https://saucelabs.com/u/chaijs-check-error\">\n <img\n alt=\"Selenium Test Status\"\n src=\"https://saucelabs.com/browser-matrix/chaijs-check-error.svg\"\n />\n </a>\n <br>\n <a href=\"https://chai-slack.herokuapp.com/\">\n <img\n alt=\"Join the Slack chat\"\n src=\"https://img.shields.io/badge/slack-join%20chat-E2206F.svg?style=flat-square\"\n />\n </a>\n <a href=\"https://gitter.im/chaijs/chai\">\n <img\n alt=\"Join the Gitter chat\"\n src=\"https://img.shields.io/badge/gitter-join%20chat-D0104D.svg?style=flat-square\"\n />\n </a>\n</p>\n\n## What is Check-Error?\n\nCheck-Error is a module which you can use to retrieve an Error's information such as its `message` or `constructor` name and also to check whether two Errors are compatible based on their messages, constructors or even instances.\n\n## Installation\n\n### Node.js\n\n`check-error` is available on [npm](http://npmjs.org). To install it, type:\n\n $ npm install check-error\n\n### Browsers\n\nYou can also use it within the browser; install via npm and use the `check-error.js` file found within the download. For example:\n\n```html\n<script src=\"./node_modules/check-error/check-error.js\"></script>\n```\n\n## Usage\n\nThe primary export of `check-error` is an object which has the following methods:\n\n* `compatibleInstance(err, errorLike)` - Checks if an error is compatible with another `errorLike` object. If `errorLike` is an error instance we do a strict comparison, otherwise we return `false` by default, because instances of objects can only be compatible if they're both error instances.\n* `compatibleConstructor(err, errorLike)` - Checks if an error's constructor is compatible with another `errorLike` object. If `err` has the same constructor as `errorLike` or if `err` is an instance of `errorLike`.\n* `compatibleMessage(err, errMatcher)` - Checks if an error message is compatible with an `errMatcher` RegExp or String (we check if the message contains the String).\n* `getConstructorName(errorLike)` - Retrieves the name of a constructor, an error's constructor or `errorLike` itself if it's not an error instance or constructor.\n* `getMessage(err)` - Retrieves the message of an error or `err` itself if it's a String. If `err` or `err.message` is undefined we return an empty String.\n\n```js\nvar checkError = require('check-error');\n```\n\n#### .compatibleInstance(err, errorLike)\n\n```js\nvar checkError = require('check-error');\n\nvar funcThatThrows = function() { throw new TypeError('I am a TypeError') };\nvar caughtErr;\n\ntry {\n funcThatThrows();\n} catch(e) {\n caughtErr = e;\n}\n\nvar sameInstance = caughtErr;\n\ncheckError.compatibleInstance(caughtErr, sameInstance); // true\ncheckError.compatibleInstance(caughtErr, new TypeError('Another error')); // false\n```\n\n#### .compatibleConstructor(err, errorLike)\n\n```js\nvar checkError = require('check-error');\n\nvar funcThatThrows = function() { throw new TypeError('I am a TypeError') };\nvar caughtErr;\n\ntry {\n funcThatThrows();\n} catch(e) {\n caughtErr = e;\n}\n\ncheckError.compatibleConstructor(caughtErr, Error); // true\ncheckError.compatibleConstructor(caughtErr, TypeError); // true\ncheckError.compatibleConstructor(caughtErr, RangeError); // false\n```\n\n#### .compatibleMessage(err, errMatcher)\n\n```js\nvar checkError = require('check-error');\n\nvar funcThatThrows = function() { throw new TypeError('I am a TypeError') };\nvar caughtErr;\n\ntry {\n funcThatThrows();\n} catch(e) {\n caughtErr = e;\n}\n\nvar sameInstance = caughtErr;\n\ncheckError.compatibleMessage(caughtErr, /TypeError$/); // true\ncheckError.compatibleMessage(caughtErr, 'I am a'); // true\ncheckError.compatibleMessage(caughtErr, /unicorn/); // false\ncheckError.compatibleMessage(caughtErr, 'I do not exist'); // false\n```\n\n#### .getConstructorName(errorLike)\n\n```js\nvar checkError = require('check-error');\n\nvar funcThatThrows = function() { throw new TypeError('I am a TypeError') };\nvar caughtErr;\n\ntry {\n funcThatThrows();\n} catch(e) {\n caughtErr = e;\n}\n\nvar sameInstance = caughtErr;\n\ncheckError.getConstructorName(caughtErr) // 'TypeError'\n```\n\n#### .getMessage(err)\n\n```js\nvar checkError = require('check-error');\n\nvar funcThatThrows = function() { throw new TypeError('I am a TypeError') };\nvar caughtErr;\n\ntry {\n funcThatThrows();\n} catch(e) {\n caughtErr = e;\n}\n\nvar sameInstance = caughtErr;\n\ncheckError.getMessage(caughtErr) // 'I am a TypeError'\n```\n",
402 "maintainers": [
403 {
404 "name": "chaijs",
405 "email": "[email protected]"
406 }
407 ],
408 "time": {
409 "modified": "2017-11-06T05:07:14.117Z",
410 "created": "2016-06-03T15:32:19.225Z",
411 "1.0.0": "2016-06-03T15:32:19.225Z",
412 "1.0.1": "2016-06-07T09:22:16.414Z",
413 "1.0.2": "2016-06-27T21:13:56.593Z"
414 },
415 "homepage": "https://github.com/chaijs/check-error#readme",
416 "keywords": [
417 "check-error",
418 "error",
419 "chai util"
420 ],
421 "repository": {
422 "type": "git",
423 "url": "git+ssh://[email protected]/chaijs/check-error.git"
424 },
425 "contributors": [
426 {
427 "name": "David Losert",
428 "url": "https://github.com/davelosert"
429 },
430 {
431 "name": "Keith Cirkel",
432 "url": "https://github.com/keithamus"
433 },
434 {
435 "name": "Miroslav Bajtoš",
436 "url": "https://github.com/bajtos"
437 },
438 {
439 "name": "Lucas Fernandes da Costa",
440 "url": "https://github.com/lucasfcosta"
441 }
442 ],
443 "author": {
444 "name": "Jake Luer",
445 "email": "[email protected]",
446 "url": "http://alogicalparadox.com"
447 },
448 "bugs": {
449 "url": "https://github.com/chaijs/check-error/issues"
450 },
451 "license": "MIT",
452 "readmeFilename": "README.md",
453 "users": {
454 "justjavac": true
455 },
456 "_attachments": {}
457 }