Debian Codegraph @

workspaces/arborist/test/fixtures/reify-cases/old-package-lock.js

raw
1 // generated from test/fixtures/old-package-lock
2 module.exports = t => {
3 const path = t.testdir({
4 "node_modules": {
5 "once": {
6 "package.json": JSON.stringify({
7 "_from": "once",
8 "_id": "[email protected]",
9 "_inBundle": false,
10 "_integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
11 "_location": "/once",
12 "_phantomChildren": {},
13 "_requested": {
14 "type": "tag",
15 "registry": true,
16 "raw": "once",
17 "name": "once",
18 "escapedName": "once",
19 "rawSpec": "",
20 "saveSpec": null,
21 "fetchSpec": "latest"
22 },
23 "_requiredBy": [
24 "#USER",
25 "/"
26 ],
27 "_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
28 "_shasum": "583b1aa775961d4b113ac17d9c50baef9dd76bd1",
29 "_spec": "once",
30 "_where": "/Users/isaacs/dev/npm/arborist/test/fixtures/old-package-lock",
31 "author": {
32 "name": "Isaac Z. Schlueter",
33 "email": "[email protected]",
34 "url": "http://blog.izs.me/"
35 },
36 "bugs": {
37 "url": "https://github.com/isaacs/once/issues"
38 },
39 "bundleDependencies": false,
40 "dependencies": {
41 "wrappy": "1"
42 },
43 "deprecated": false,
44 "description": "Run a function exactly one time",
45 "devDependencies": {
46 "tap": "^7.0.1"
47 },
48 "directories": {
49 "test": "test"
50 },
51 "files": [
52 "once.js"
53 ],
54 "homepage": "https://github.com/isaacs/once#readme",
55 "keywords": [
56 "once",
57 "function",
58 "one",
59 "single"
60 ],
61 "license": "ISC",
62 "main": "once.js",
63 "name": "once",
64 "repository": {
65 "type": "git",
66 "url": "git://github.com/isaacs/once.git"
67 },
68 "scripts": {
69 "test": "tap test/*.js"
70 },
71 "version": "1.4.0"
72 })
73 },
74 "wrappy": {
75 "package.json": JSON.stringify({
76 "_from": "wrappy@1",
77 "_id": "[email protected]",
78 "_inBundle": false,
79 "_integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
80 "_location": "/wrappy",
81 "_phantomChildren": {},
82 "_requested": {
83 "type": "range",
84 "registry": true,
85 "raw": "wrappy@1",
86 "name": "wrappy",
87 "escapedName": "wrappy",
88 "rawSpec": "1",
89 "saveSpec": null,
90 "fetchSpec": "1"
91 },
92 "_requiredBy": [
93 "/once"
94 ],
95 "_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
96 "_shasum": "b5243d8f3ec1aa35f1364605bc0d1036e30ab69f",
97 "_spec": "wrappy@1",
98 "_where": "/Users/isaacs/dev/npm/arborist/test/fixtures/old-package-lock/node_modules/once",
99 "author": {
100 "name": "Isaac Z. Schlueter",
101 "email": "[email protected]",
102 "url": "http://blog.izs.me/"
103 },
104 "bugs": {
105 "url": "https://github.com/npm/wrappy/issues"
106 },
107 "bundleDependencies": false,
108 "dependencies": {},
109 "deprecated": false,
110 "description": "Callback wrapping utility",
111 "devDependencies": {
112 "tap": "^2.3.1"
113 },
114 "directories": {
115 "test": "test"
116 },
117 "files": [
118 "wrappy.js"
119 ],
120 "homepage": "https://github.com/npm/wrappy",
121 "license": "ISC",
122 "main": "wrappy.js",
123 "name": "wrappy",
124 "repository": {
125 "type": "git",
126 "url": "git+https://github.com/npm/wrappy.git"
127 },
128 "scripts": {
129 "test": "tap --coverage test/*.js"
130 },
131 "version": "1.0.2"
132 })
133 }
134 },
135 "package-lock.json": JSON.stringify({
136 "requires": true,
137 "lockfileVersion": 1,
138 "dependencies": {
139 "once": {
140 "version": "1.4.0",
141 "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
142 "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
143 "requires": {
144 "wrappy": "1"
145 }
146 },
147 "wrappy": {
148 "version": "1.0.2",
149 "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
150 "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
151 }
152 }
153 }),
154 "package.json": JSON.stringify({
155 "dependencies": {
156 "once": "^1.4.0"
157 }
158 })
159 })
160 return path
161 }