Spaces:
Runtime error
Runtime error
Node App
Browse files- .gitignore +1 -0
- Dockerfile +20 -0
- app.js +14 -0
- package-lock.json +688 -0
- package.json +15 -0
- public/index.html +12 -0
- public/sketch.js +41 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
node_modules/
|
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Node version 20
|
2 |
+
FROM node:20.8.0
|
3 |
+
|
4 |
+
# Set the working directory in the container
|
5 |
+
WORKDIR /usr/src/app
|
6 |
+
|
7 |
+
# Copy package.json and package-lock.json to the working directory
|
8 |
+
COPY package*.json ./
|
9 |
+
|
10 |
+
# Install app dependencies
|
11 |
+
RUN npm install
|
12 |
+
|
13 |
+
# Copy the application code to the working directory
|
14 |
+
COPY . .
|
15 |
+
|
16 |
+
# Expose the port the app runs on
|
17 |
+
EXPOSE 3000
|
18 |
+
|
19 |
+
# Command to run your application
|
20 |
+
CMD ["node", "app.js"]
|
app.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const express = require('express');
|
2 |
+
const app = express();
|
3 |
+
const path = require('path');
|
4 |
+
|
5 |
+
app.use(express.static('public'));
|
6 |
+
|
7 |
+
app.get('/', (req, res) => {
|
8 |
+
res.sendFile(path.join(__dirname, 'public', 'index.html'));
|
9 |
+
});
|
10 |
+
|
11 |
+
const PORT = process.env.PORT || 3000;
|
12 |
+
app.listen(PORT, () => {
|
13 |
+
console.log(`Server is running on port ${PORT}`);
|
14 |
+
});
|
package-lock.json
ADDED
@@ -0,0 +1,688 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "docker-opencv",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"lockfileVersion": 3,
|
5 |
+
"requires": true,
|
6 |
+
"packages": {
|
7 |
+
"": {
|
8 |
+
"name": "docker-opencv",
|
9 |
+
"version": "1.0.0",
|
10 |
+
"license": "MIT",
|
11 |
+
"dependencies": {
|
12 |
+
"express": "^4.18.2",
|
13 |
+
"path": "^0.12.7"
|
14 |
+
}
|
15 |
+
},
|
16 |
+
"node_modules/accepts": {
|
17 |
+
"version": "1.3.8",
|
18 |
+
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
19 |
+
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
|
20 |
+
"dependencies": {
|
21 |
+
"mime-types": "~2.1.34",
|
22 |
+
"negotiator": "0.6.3"
|
23 |
+
},
|
24 |
+
"engines": {
|
25 |
+
"node": ">= 0.6"
|
26 |
+
}
|
27 |
+
},
|
28 |
+
"node_modules/array-flatten": {
|
29 |
+
"version": "1.1.1",
|
30 |
+
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
31 |
+
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
|
32 |
+
},
|
33 |
+
"node_modules/body-parser": {
|
34 |
+
"version": "1.20.1",
|
35 |
+
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz",
|
36 |
+
"integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==",
|
37 |
+
"dependencies": {
|
38 |
+
"bytes": "3.1.2",
|
39 |
+
"content-type": "~1.0.4",
|
40 |
+
"debug": "2.6.9",
|
41 |
+
"depd": "2.0.0",
|
42 |
+
"destroy": "1.2.0",
|
43 |
+
"http-errors": "2.0.0",
|
44 |
+
"iconv-lite": "0.4.24",
|
45 |
+
"on-finished": "2.4.1",
|
46 |
+
"qs": "6.11.0",
|
47 |
+
"raw-body": "2.5.1",
|
48 |
+
"type-is": "~1.6.18",
|
49 |
+
"unpipe": "1.0.0"
|
50 |
+
},
|
51 |
+
"engines": {
|
52 |
+
"node": ">= 0.8",
|
53 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
54 |
+
}
|
55 |
+
},
|
56 |
+
"node_modules/bytes": {
|
57 |
+
"version": "3.1.2",
|
58 |
+
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
59 |
+
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
|
60 |
+
"engines": {
|
61 |
+
"node": ">= 0.8"
|
62 |
+
}
|
63 |
+
},
|
64 |
+
"node_modules/call-bind": {
|
65 |
+
"version": "1.0.5",
|
66 |
+
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz",
|
67 |
+
"integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==",
|
68 |
+
"dependencies": {
|
69 |
+
"function-bind": "^1.1.2",
|
70 |
+
"get-intrinsic": "^1.2.1",
|
71 |
+
"set-function-length": "^1.1.1"
|
72 |
+
},
|
73 |
+
"funding": {
|
74 |
+
"url": "https://github.com/sponsors/ljharb"
|
75 |
+
}
|
76 |
+
},
|
77 |
+
"node_modules/content-disposition": {
|
78 |
+
"version": "0.5.4",
|
79 |
+
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
80 |
+
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
|
81 |
+
"dependencies": {
|
82 |
+
"safe-buffer": "5.2.1"
|
83 |
+
},
|
84 |
+
"engines": {
|
85 |
+
"node": ">= 0.6"
|
86 |
+
}
|
87 |
+
},
|
88 |
+
"node_modules/content-type": {
|
89 |
+
"version": "1.0.5",
|
90 |
+
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
|
91 |
+
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
|
92 |
+
"engines": {
|
93 |
+
"node": ">= 0.6"
|
94 |
+
}
|
95 |
+
},
|
96 |
+
"node_modules/cookie": {
|
97 |
+
"version": "0.5.0",
|
98 |
+
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
|
99 |
+
"integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==",
|
100 |
+
"engines": {
|
101 |
+
"node": ">= 0.6"
|
102 |
+
}
|
103 |
+
},
|
104 |
+
"node_modules/cookie-signature": {
|
105 |
+
"version": "1.0.6",
|
106 |
+
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
107 |
+
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
|
108 |
+
},
|
109 |
+
"node_modules/debug": {
|
110 |
+
"version": "2.6.9",
|
111 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
112 |
+
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
113 |
+
"dependencies": {
|
114 |
+
"ms": "2.0.0"
|
115 |
+
}
|
116 |
+
},
|
117 |
+
"node_modules/define-data-property": {
|
118 |
+
"version": "1.1.1",
|
119 |
+
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz",
|
120 |
+
"integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==",
|
121 |
+
"dependencies": {
|
122 |
+
"get-intrinsic": "^1.2.1",
|
123 |
+
"gopd": "^1.0.1",
|
124 |
+
"has-property-descriptors": "^1.0.0"
|
125 |
+
},
|
126 |
+
"engines": {
|
127 |
+
"node": ">= 0.4"
|
128 |
+
}
|
129 |
+
},
|
130 |
+
"node_modules/depd": {
|
131 |
+
"version": "2.0.0",
|
132 |
+
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
133 |
+
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
|
134 |
+
"engines": {
|
135 |
+
"node": ">= 0.8"
|
136 |
+
}
|
137 |
+
},
|
138 |
+
"node_modules/destroy": {
|
139 |
+
"version": "1.2.0",
|
140 |
+
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
|
141 |
+
"integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
|
142 |
+
"engines": {
|
143 |
+
"node": ">= 0.8",
|
144 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
145 |
+
}
|
146 |
+
},
|
147 |
+
"node_modules/ee-first": {
|
148 |
+
"version": "1.1.1",
|
149 |
+
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
150 |
+
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
|
151 |
+
},
|
152 |
+
"node_modules/encodeurl": {
|
153 |
+
"version": "1.0.2",
|
154 |
+
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
155 |
+
"integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
|
156 |
+
"engines": {
|
157 |
+
"node": ">= 0.8"
|
158 |
+
}
|
159 |
+
},
|
160 |
+
"node_modules/escape-html": {
|
161 |
+
"version": "1.0.3",
|
162 |
+
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
163 |
+
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
|
164 |
+
},
|
165 |
+
"node_modules/etag": {
|
166 |
+
"version": "1.8.1",
|
167 |
+
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
|
168 |
+
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
|
169 |
+
"engines": {
|
170 |
+
"node": ">= 0.6"
|
171 |
+
}
|
172 |
+
},
|
173 |
+
"node_modules/express": {
|
174 |
+
"version": "4.18.2",
|
175 |
+
"resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
|
176 |
+
"integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==",
|
177 |
+
"dependencies": {
|
178 |
+
"accepts": "~1.3.8",
|
179 |
+
"array-flatten": "1.1.1",
|
180 |
+
"body-parser": "1.20.1",
|
181 |
+
"content-disposition": "0.5.4",
|
182 |
+
"content-type": "~1.0.4",
|
183 |
+
"cookie": "0.5.0",
|
184 |
+
"cookie-signature": "1.0.6",
|
185 |
+
"debug": "2.6.9",
|
186 |
+
"depd": "2.0.0",
|
187 |
+
"encodeurl": "~1.0.2",
|
188 |
+
"escape-html": "~1.0.3",
|
189 |
+
"etag": "~1.8.1",
|
190 |
+
"finalhandler": "1.2.0",
|
191 |
+
"fresh": "0.5.2",
|
192 |
+
"http-errors": "2.0.0",
|
193 |
+
"merge-descriptors": "1.0.1",
|
194 |
+
"methods": "~1.1.2",
|
195 |
+
"on-finished": "2.4.1",
|
196 |
+
"parseurl": "~1.3.3",
|
197 |
+
"path-to-regexp": "0.1.7",
|
198 |
+
"proxy-addr": "~2.0.7",
|
199 |
+
"qs": "6.11.0",
|
200 |
+
"range-parser": "~1.2.1",
|
201 |
+
"safe-buffer": "5.2.1",
|
202 |
+
"send": "0.18.0",
|
203 |
+
"serve-static": "1.15.0",
|
204 |
+
"setprototypeof": "1.2.0",
|
205 |
+
"statuses": "2.0.1",
|
206 |
+
"type-is": "~1.6.18",
|
207 |
+
"utils-merge": "1.0.1",
|
208 |
+
"vary": "~1.1.2"
|
209 |
+
},
|
210 |
+
"engines": {
|
211 |
+
"node": ">= 0.10.0"
|
212 |
+
}
|
213 |
+
},
|
214 |
+
"node_modules/finalhandler": {
|
215 |
+
"version": "1.2.0",
|
216 |
+
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",
|
217 |
+
"integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==",
|
218 |
+
"dependencies": {
|
219 |
+
"debug": "2.6.9",
|
220 |
+
"encodeurl": "~1.0.2",
|
221 |
+
"escape-html": "~1.0.3",
|
222 |
+
"on-finished": "2.4.1",
|
223 |
+
"parseurl": "~1.3.3",
|
224 |
+
"statuses": "2.0.1",
|
225 |
+
"unpipe": "~1.0.0"
|
226 |
+
},
|
227 |
+
"engines": {
|
228 |
+
"node": ">= 0.8"
|
229 |
+
}
|
230 |
+
},
|
231 |
+
"node_modules/forwarded": {
|
232 |
+
"version": "0.2.0",
|
233 |
+
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
234 |
+
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
|
235 |
+
"engines": {
|
236 |
+
"node": ">= 0.6"
|
237 |
+
}
|
238 |
+
},
|
239 |
+
"node_modules/fresh": {
|
240 |
+
"version": "0.5.2",
|
241 |
+
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
242 |
+
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
|
243 |
+
"engines": {
|
244 |
+
"node": ">= 0.6"
|
245 |
+
}
|
246 |
+
},
|
247 |
+
"node_modules/function-bind": {
|
248 |
+
"version": "1.1.2",
|
249 |
+
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
250 |
+
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
251 |
+
"funding": {
|
252 |
+
"url": "https://github.com/sponsors/ljharb"
|
253 |
+
}
|
254 |
+
},
|
255 |
+
"node_modules/get-intrinsic": {
|
256 |
+
"version": "1.2.2",
|
257 |
+
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz",
|
258 |
+
"integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==",
|
259 |
+
"dependencies": {
|
260 |
+
"function-bind": "^1.1.2",
|
261 |
+
"has-proto": "^1.0.1",
|
262 |
+
"has-symbols": "^1.0.3",
|
263 |
+
"hasown": "^2.0.0"
|
264 |
+
},
|
265 |
+
"funding": {
|
266 |
+
"url": "https://github.com/sponsors/ljharb"
|
267 |
+
}
|
268 |
+
},
|
269 |
+
"node_modules/gopd": {
|
270 |
+
"version": "1.0.1",
|
271 |
+
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
|
272 |
+
"integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
|
273 |
+
"dependencies": {
|
274 |
+
"get-intrinsic": "^1.1.3"
|
275 |
+
},
|
276 |
+
"funding": {
|
277 |
+
"url": "https://github.com/sponsors/ljharb"
|
278 |
+
}
|
279 |
+
},
|
280 |
+
"node_modules/has-property-descriptors": {
|
281 |
+
"version": "1.0.1",
|
282 |
+
"resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz",
|
283 |
+
"integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==",
|
284 |
+
"dependencies": {
|
285 |
+
"get-intrinsic": "^1.2.2"
|
286 |
+
},
|
287 |
+
"funding": {
|
288 |
+
"url": "https://github.com/sponsors/ljharb"
|
289 |
+
}
|
290 |
+
},
|
291 |
+
"node_modules/has-proto": {
|
292 |
+
"version": "1.0.1",
|
293 |
+
"resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",
|
294 |
+
"integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",
|
295 |
+
"engines": {
|
296 |
+
"node": ">= 0.4"
|
297 |
+
},
|
298 |
+
"funding": {
|
299 |
+
"url": "https://github.com/sponsors/ljharb"
|
300 |
+
}
|
301 |
+
},
|
302 |
+
"node_modules/has-symbols": {
|
303 |
+
"version": "1.0.3",
|
304 |
+
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
|
305 |
+
"integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
|
306 |
+
"engines": {
|
307 |
+
"node": ">= 0.4"
|
308 |
+
},
|
309 |
+
"funding": {
|
310 |
+
"url": "https://github.com/sponsors/ljharb"
|
311 |
+
}
|
312 |
+
},
|
313 |
+
"node_modules/hasown": {
|
314 |
+
"version": "2.0.0",
|
315 |
+
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz",
|
316 |
+
"integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==",
|
317 |
+
"dependencies": {
|
318 |
+
"function-bind": "^1.1.2"
|
319 |
+
},
|
320 |
+
"engines": {
|
321 |
+
"node": ">= 0.4"
|
322 |
+
}
|
323 |
+
},
|
324 |
+
"node_modules/http-errors": {
|
325 |
+
"version": "2.0.0",
|
326 |
+
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
327 |
+
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
|
328 |
+
"dependencies": {
|
329 |
+
"depd": "2.0.0",
|
330 |
+
"inherits": "2.0.4",
|
331 |
+
"setprototypeof": "1.2.0",
|
332 |
+
"statuses": "2.0.1",
|
333 |
+
"toidentifier": "1.0.1"
|
334 |
+
},
|
335 |
+
"engines": {
|
336 |
+
"node": ">= 0.8"
|
337 |
+
}
|
338 |
+
},
|
339 |
+
"node_modules/http-errors/node_modules/inherits": {
|
340 |
+
"version": "2.0.4",
|
341 |
+
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
342 |
+
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
343 |
+
},
|
344 |
+
"node_modules/iconv-lite": {
|
345 |
+
"version": "0.4.24",
|
346 |
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
347 |
+
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
|
348 |
+
"dependencies": {
|
349 |
+
"safer-buffer": ">= 2.1.2 < 3"
|
350 |
+
},
|
351 |
+
"engines": {
|
352 |
+
"node": ">=0.10.0"
|
353 |
+
}
|
354 |
+
},
|
355 |
+
"node_modules/inherits": {
|
356 |
+
"version": "2.0.3",
|
357 |
+
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
|
358 |
+
"integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw=="
|
359 |
+
},
|
360 |
+
"node_modules/ipaddr.js": {
|
361 |
+
"version": "1.9.1",
|
362 |
+
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
363 |
+
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
|
364 |
+
"engines": {
|
365 |
+
"node": ">= 0.10"
|
366 |
+
}
|
367 |
+
},
|
368 |
+
"node_modules/media-typer": {
|
369 |
+
"version": "0.3.0",
|
370 |
+
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
371 |
+
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
|
372 |
+
"engines": {
|
373 |
+
"node": ">= 0.6"
|
374 |
+
}
|
375 |
+
},
|
376 |
+
"node_modules/merge-descriptors": {
|
377 |
+
"version": "1.0.1",
|
378 |
+
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
|
379 |
+
"integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w=="
|
380 |
+
},
|
381 |
+
"node_modules/methods": {
|
382 |
+
"version": "1.1.2",
|
383 |
+
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
384 |
+
"integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
|
385 |
+
"engines": {
|
386 |
+
"node": ">= 0.6"
|
387 |
+
}
|
388 |
+
},
|
389 |
+
"node_modules/mime": {
|
390 |
+
"version": "1.6.0",
|
391 |
+
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
392 |
+
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
|
393 |
+
"bin": {
|
394 |
+
"mime": "cli.js"
|
395 |
+
},
|
396 |
+
"engines": {
|
397 |
+
"node": ">=4"
|
398 |
+
}
|
399 |
+
},
|
400 |
+
"node_modules/mime-db": {
|
401 |
+
"version": "1.52.0",
|
402 |
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
403 |
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
404 |
+
"engines": {
|
405 |
+
"node": ">= 0.6"
|
406 |
+
}
|
407 |
+
},
|
408 |
+
"node_modules/mime-types": {
|
409 |
+
"version": "2.1.35",
|
410 |
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
411 |
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
412 |
+
"dependencies": {
|
413 |
+
"mime-db": "1.52.0"
|
414 |
+
},
|
415 |
+
"engines": {
|
416 |
+
"node": ">= 0.6"
|
417 |
+
}
|
418 |
+
},
|
419 |
+
"node_modules/ms": {
|
420 |
+
"version": "2.0.0",
|
421 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
422 |
+
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
|
423 |
+
},
|
424 |
+
"node_modules/negotiator": {
|
425 |
+
"version": "0.6.3",
|
426 |
+
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
427 |
+
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
|
428 |
+
"engines": {
|
429 |
+
"node": ">= 0.6"
|
430 |
+
}
|
431 |
+
},
|
432 |
+
"node_modules/object-inspect": {
|
433 |
+
"version": "1.13.1",
|
434 |
+
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",
|
435 |
+
"integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==",
|
436 |
+
"funding": {
|
437 |
+
"url": "https://github.com/sponsors/ljharb"
|
438 |
+
}
|
439 |
+
},
|
440 |
+
"node_modules/on-finished": {
|
441 |
+
"version": "2.4.1",
|
442 |
+
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
|
443 |
+
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
|
444 |
+
"dependencies": {
|
445 |
+
"ee-first": "1.1.1"
|
446 |
+
},
|
447 |
+
"engines": {
|
448 |
+
"node": ">= 0.8"
|
449 |
+
}
|
450 |
+
},
|
451 |
+
"node_modules/parseurl": {
|
452 |
+
"version": "1.3.3",
|
453 |
+
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
454 |
+
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
455 |
+
"engines": {
|
456 |
+
"node": ">= 0.8"
|
457 |
+
}
|
458 |
+
},
|
459 |
+
"node_modules/path": {
|
460 |
+
"version": "0.12.7",
|
461 |
+
"resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz",
|
462 |
+
"integrity": "sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q==",
|
463 |
+
"dependencies": {
|
464 |
+
"process": "^0.11.1",
|
465 |
+
"util": "^0.10.3"
|
466 |
+
}
|
467 |
+
},
|
468 |
+
"node_modules/path-to-regexp": {
|
469 |
+
"version": "0.1.7",
|
470 |
+
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
|
471 |
+
"integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="
|
472 |
+
},
|
473 |
+
"node_modules/process": {
|
474 |
+
"version": "0.11.10",
|
475 |
+
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
|
476 |
+
"integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",
|
477 |
+
"engines": {
|
478 |
+
"node": ">= 0.6.0"
|
479 |
+
}
|
480 |
+
},
|
481 |
+
"node_modules/proxy-addr": {
|
482 |
+
"version": "2.0.7",
|
483 |
+
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
484 |
+
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
|
485 |
+
"dependencies": {
|
486 |
+
"forwarded": "0.2.0",
|
487 |
+
"ipaddr.js": "1.9.1"
|
488 |
+
},
|
489 |
+
"engines": {
|
490 |
+
"node": ">= 0.10"
|
491 |
+
}
|
492 |
+
},
|
493 |
+
"node_modules/qs": {
|
494 |
+
"version": "6.11.0",
|
495 |
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
|
496 |
+
"integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
|
497 |
+
"dependencies": {
|
498 |
+
"side-channel": "^1.0.4"
|
499 |
+
},
|
500 |
+
"engines": {
|
501 |
+
"node": ">=0.6"
|
502 |
+
},
|
503 |
+
"funding": {
|
504 |
+
"url": "https://github.com/sponsors/ljharb"
|
505 |
+
}
|
506 |
+
},
|
507 |
+
"node_modules/range-parser": {
|
508 |
+
"version": "1.2.1",
|
509 |
+
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
510 |
+
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
|
511 |
+
"engines": {
|
512 |
+
"node": ">= 0.6"
|
513 |
+
}
|
514 |
+
},
|
515 |
+
"node_modules/raw-body": {
|
516 |
+
"version": "2.5.1",
|
517 |
+
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz",
|
518 |
+
"integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==",
|
519 |
+
"dependencies": {
|
520 |
+
"bytes": "3.1.2",
|
521 |
+
"http-errors": "2.0.0",
|
522 |
+
"iconv-lite": "0.4.24",
|
523 |
+
"unpipe": "1.0.0"
|
524 |
+
},
|
525 |
+
"engines": {
|
526 |
+
"node": ">= 0.8"
|
527 |
+
}
|
528 |
+
},
|
529 |
+
"node_modules/safe-buffer": {
|
530 |
+
"version": "5.2.1",
|
531 |
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
532 |
+
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
533 |
+
"funding": [
|
534 |
+
{
|
535 |
+
"type": "github",
|
536 |
+
"url": "https://github.com/sponsors/feross"
|
537 |
+
},
|
538 |
+
{
|
539 |
+
"type": "patreon",
|
540 |
+
"url": "https://www.patreon.com/feross"
|
541 |
+
},
|
542 |
+
{
|
543 |
+
"type": "consulting",
|
544 |
+
"url": "https://feross.org/support"
|
545 |
+
}
|
546 |
+
]
|
547 |
+
},
|
548 |
+
"node_modules/safer-buffer": {
|
549 |
+
"version": "2.1.2",
|
550 |
+
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
551 |
+
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
552 |
+
},
|
553 |
+
"node_modules/send": {
|
554 |
+
"version": "0.18.0",
|
555 |
+
"resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",
|
556 |
+
"integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==",
|
557 |
+
"dependencies": {
|
558 |
+
"debug": "2.6.9",
|
559 |
+
"depd": "2.0.0",
|
560 |
+
"destroy": "1.2.0",
|
561 |
+
"encodeurl": "~1.0.2",
|
562 |
+
"escape-html": "~1.0.3",
|
563 |
+
"etag": "~1.8.1",
|
564 |
+
"fresh": "0.5.2",
|
565 |
+
"http-errors": "2.0.0",
|
566 |
+
"mime": "1.6.0",
|
567 |
+
"ms": "2.1.3",
|
568 |
+
"on-finished": "2.4.1",
|
569 |
+
"range-parser": "~1.2.1",
|
570 |
+
"statuses": "2.0.1"
|
571 |
+
},
|
572 |
+
"engines": {
|
573 |
+
"node": ">= 0.8.0"
|
574 |
+
}
|
575 |
+
},
|
576 |
+
"node_modules/send/node_modules/ms": {
|
577 |
+
"version": "2.1.3",
|
578 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
579 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
580 |
+
},
|
581 |
+
"node_modules/serve-static": {
|
582 |
+
"version": "1.15.0",
|
583 |
+
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz",
|
584 |
+
"integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==",
|
585 |
+
"dependencies": {
|
586 |
+
"encodeurl": "~1.0.2",
|
587 |
+
"escape-html": "~1.0.3",
|
588 |
+
"parseurl": "~1.3.3",
|
589 |
+
"send": "0.18.0"
|
590 |
+
},
|
591 |
+
"engines": {
|
592 |
+
"node": ">= 0.8.0"
|
593 |
+
}
|
594 |
+
},
|
595 |
+
"node_modules/set-function-length": {
|
596 |
+
"version": "1.1.1",
|
597 |
+
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz",
|
598 |
+
"integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==",
|
599 |
+
"dependencies": {
|
600 |
+
"define-data-property": "^1.1.1",
|
601 |
+
"get-intrinsic": "^1.2.1",
|
602 |
+
"gopd": "^1.0.1",
|
603 |
+
"has-property-descriptors": "^1.0.0"
|
604 |
+
},
|
605 |
+
"engines": {
|
606 |
+
"node": ">= 0.4"
|
607 |
+
}
|
608 |
+
},
|
609 |
+
"node_modules/setprototypeof": {
|
610 |
+
"version": "1.2.0",
|
611 |
+
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
612 |
+
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
|
613 |
+
},
|
614 |
+
"node_modules/side-channel": {
|
615 |
+
"version": "1.0.4",
|
616 |
+
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
|
617 |
+
"integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
|
618 |
+
"dependencies": {
|
619 |
+
"call-bind": "^1.0.0",
|
620 |
+
"get-intrinsic": "^1.0.2",
|
621 |
+
"object-inspect": "^1.9.0"
|
622 |
+
},
|
623 |
+
"funding": {
|
624 |
+
"url": "https://github.com/sponsors/ljharb"
|
625 |
+
}
|
626 |
+
},
|
627 |
+
"node_modules/statuses": {
|
628 |
+
"version": "2.0.1",
|
629 |
+
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
630 |
+
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
|
631 |
+
"engines": {
|
632 |
+
"node": ">= 0.8"
|
633 |
+
}
|
634 |
+
},
|
635 |
+
"node_modules/toidentifier": {
|
636 |
+
"version": "1.0.1",
|
637 |
+
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
638 |
+
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
639 |
+
"engines": {
|
640 |
+
"node": ">=0.6"
|
641 |
+
}
|
642 |
+
},
|
643 |
+
"node_modules/type-is": {
|
644 |
+
"version": "1.6.18",
|
645 |
+
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
646 |
+
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
|
647 |
+
"dependencies": {
|
648 |
+
"media-typer": "0.3.0",
|
649 |
+
"mime-types": "~2.1.24"
|
650 |
+
},
|
651 |
+
"engines": {
|
652 |
+
"node": ">= 0.6"
|
653 |
+
}
|
654 |
+
},
|
655 |
+
"node_modules/unpipe": {
|
656 |
+
"version": "1.0.0",
|
657 |
+
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
658 |
+
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
|
659 |
+
"engines": {
|
660 |
+
"node": ">= 0.8"
|
661 |
+
}
|
662 |
+
},
|
663 |
+
"node_modules/util": {
|
664 |
+
"version": "0.10.4",
|
665 |
+
"resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz",
|
666 |
+
"integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==",
|
667 |
+
"dependencies": {
|
668 |
+
"inherits": "2.0.3"
|
669 |
+
}
|
670 |
+
},
|
671 |
+
"node_modules/utils-merge": {
|
672 |
+
"version": "1.0.1",
|
673 |
+
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
674 |
+
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
|
675 |
+
"engines": {
|
676 |
+
"node": ">= 0.4.0"
|
677 |
+
}
|
678 |
+
},
|
679 |
+
"node_modules/vary": {
|
680 |
+
"version": "1.1.2",
|
681 |
+
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
682 |
+
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
|
683 |
+
"engines": {
|
684 |
+
"node": ">= 0.8"
|
685 |
+
}
|
686 |
+
}
|
687 |
+
}
|
688 |
+
}
|
package.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "docker-opencv",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"description": "--- title: Docker Opencv emoji: 🦀 colorFrom: purple colorTo: purple sdk: docker pinned: false license: mit ---",
|
5 |
+
"main": "app.js",
|
6 |
+
"scripts": {
|
7 |
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8 |
+
},
|
9 |
+
"author": "",
|
10 |
+
"license": "MIT",
|
11 |
+
"dependencies": {
|
12 |
+
"express": "^4.18.2",
|
13 |
+
"path": "^0.12.7"
|
14 |
+
}
|
15 |
+
}
|
public/index.html
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<html>
|
2 |
+
<head>
|
3 |
+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js"></script>
|
4 |
+
|
5 |
+
</head>
|
6 |
+
<body>
|
7 |
+
<main>
|
8 |
+
<h1>Hola</h1>
|
9 |
+
<script src="sketch.js"></script>
|
10 |
+
</main>
|
11 |
+
</body>
|
12 |
+
</html>
|
public/sketch.js
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
let video;
|
3 |
+
|
4 |
+
|
5 |
+
function setup() {
|
6 |
+
createCanvas(400, 300);
|
7 |
+
|
8 |
+
video = createCapture(VIDEO);
|
9 |
+
video.hide();
|
10 |
+
video.loop();
|
11 |
+
}
|
12 |
+
|
13 |
+
function draw() {
|
14 |
+
background(0);
|
15 |
+
|
16 |
+
let stepSize = floor(map(mouseX, 0, width, 4, 40));
|
17 |
+
|
18 |
+
video.loadPixels();
|
19 |
+
for (let x = 0; x < video.width; x += stepSize) {
|
20 |
+
for (let y = 0; y < video.height; y += stepSize) {
|
21 |
+
let i = (y * video.width + x) * 4;
|
22 |
+
|
23 |
+
let r = video.pixels[i];
|
24 |
+
let g = video.pixels[i+1];
|
25 |
+
let b = video.pixels[i+2];
|
26 |
+
let a = video.pixels[i+3];
|
27 |
+
|
28 |
+
let luma = 0.299 * r + 0.587 * g + 0.114 * b;
|
29 |
+
|
30 |
+
let diameter = map(luma, 0, 255, 0, stepSize);
|
31 |
+
fill(255);
|
32 |
+
noStroke();
|
33 |
+
ellipse(
|
34 |
+
map(x, 0, video.width, 0, width),
|
35 |
+
map(y, 0, video.height, 0, height),
|
36 |
+
diameter,
|
37 |
+
diameter
|
38 |
+
);
|
39 |
+
}
|
40 |
+
}
|
41 |
+
}
|