Skip to content

Commit b73ea50

Browse files
authored
[security] upgrade parcel-bundle to parcel 2 (#6234)
SECURITY * upgrade parcel-bundle to parcel 2 * fix tfjs-vis tests
1 parent 00d949a commit b73ea50

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+13958
-43830
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ wasm-dist/
6767

6868
# User-specific .bazelrc
6969
.bazelrc.user
70+
**/.parcel-cache

link-package/yarn.lock

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@tensorflow/tfjs-backend-webgl@file:../dist/bin/tfjs-backend-webgl/tfjs-backend-webgl_pkg":
1313
version "0.0.0"
1414
dependencies:
15-
"@tensorflow/tfjs-backend-cpu" "link:../../.cache/yarn/v6/[email protected]7561c250-a987-4093-a1fc-a0cbaa5c8e2e-1634333904046/node_modules/@tensorflow/link-package/node_modules/@tensorflow/tfjs-backend-cpu"
15+
"@tensorflow/tfjs-backend-cpu" "link:../../../.cache/yarn/v6/[email protected]10003ece-7ef2-4086-b2e3-b4d246691b03-1647374227759/node_modules/@tensorflow/link-package/node_modules/@tensorflow/tfjs-backend-cpu"
1616
"@types/offscreencanvas" "~2019.3.0"
1717
"@types/seedrandom" "2.4.27"
1818
"@types/webgl-ext" "0.0.30"
@@ -26,6 +26,12 @@
2626
version "0.0.0"
2727
uid ""
2828

29+
"@tensorflow/tfjs-data@file:../dist/bin/tfjs-data/tfjs-data_pkg":
30+
version "0.0.0"
31+
dependencies:
32+
"@types/node-fetch" "^2.1.2"
33+
node-fetch "~2.6.1"
34+
2935
"@tensorflow/tfjs-layers@file:../dist/bin/tfjs-layers/tfjs-layers_pkg":
3036
version "0.0.0"
3137

@@ -38,6 +44,19 @@
3844
resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.1.tgz#459c65fa1867dafe6a8f322c4c51695663cc55e9"
3945
integrity sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==
4046

47+
"@types/node-fetch@^2.1.2":
48+
version "2.6.1"
49+
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.6.1.tgz#8f127c50481db65886800ef496f20bbf15518975"
50+
integrity sha512-oMqjURCaxoSIsHSr1E47QHzbmzNR5rK8McHuNb11BOM9cHcIK3Avy0s/b2JlXHoQGTYS3NsvWzV1M0iK7l0wbA==
51+
dependencies:
52+
"@types/node" "*"
53+
form-data "^3.0.0"
54+
55+
"@types/node@*":
56+
version "17.0.21"
57+
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.21.tgz#864b987c0c68d07b4345845c3e63b75edd143644"
58+
integrity sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==
59+
4160
"@types/offscreencanvas@~2019.3.0":
4261
version "2019.3.0"
4362
resolved "https://registry.yarnpkg.com/@types/offscreencanvas/-/offscreencanvas-2019.3.0.tgz#3336428ec7e9180cf4566dfea5da04eb586a6553"
@@ -58,6 +77,11 @@
5877
resolved "https://registry.yarnpkg.com/@types/webgl2/-/webgl2-0.0.6.tgz#1ea2db791362bd8521548d664dbd3c5311cdf4b6"
5978
integrity sha512-50GQhDVTq/herLMiqSQkdtRu+d5q/cWHn4VvKJtrj4DJAjo1MNkWYa2MA41BaBO1q1HgsUjuQvEOk0QHvlnAaQ==
6079

80+
asynckit@^0.4.0:
81+
version "0.4.0"
82+
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
83+
integrity sha1-x57Zf380y48robyXkLzDZkdLS3k=
84+
6185
balanced-match@^1.0.0:
6286
version "1.0.2"
6387
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
@@ -71,11 +95,32 @@ brace-expansion@^1.1.7:
7195
balanced-match "^1.0.0"
7296
concat-map "0.0.1"
7397

98+
combined-stream@^1.0.8:
99+
version "1.0.8"
100+
resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f"
101+
integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
102+
dependencies:
103+
delayed-stream "~1.0.0"
104+
74105
75106
version "0.0.1"
76107
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
77108
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
78109

110+
delayed-stream@~1.0.0:
111+
version "1.0.0"
112+
resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
113+
integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk=
114+
115+
form-data@^3.0.0:
116+
version "3.0.1"
117+
resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f"
118+
integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==
119+
dependencies:
120+
asynckit "^0.4.0"
121+
combined-stream "^1.0.8"
122+
mime-types "^2.1.12"
123+
79124
fs.realpath@^1.0.0:
80125
version "1.0.0"
81126
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
@@ -111,6 +156,18 @@ [email protected]:
111156
resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28"
112157
integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==
113158

159+
160+
version "1.52.0"
161+
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70"
162+
integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==
163+
164+
mime-types@^2.1.12:
165+
version "2.1.35"
166+
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a"
167+
integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==
168+
dependencies:
169+
mime-db "1.52.0"
170+
114171
minimatch@^3.0.4:
115172
version "3.0.4"
116173
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"

tfjs-automl/demo/img_classification/.babelrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

tfjs-automl/demo/img_classification/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
</head>
88
<body>
99
<img id="daisy" crossorigin="anonymous" src="https://storage.googleapis.com/tfjs-testing/tfjs-automl/img_classification/daisy.jpg">
10-
<script src="index.js"></script>
10+
<script type="module" src="index.js"></script>
1111
</body>
1212
</html>

tfjs-automl/demo/img_classification/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"description": "Image classification demo using the AutoML NPM library",
66
"main": "index.js",
7+
"browserslist": "> 0.25%, not dead",
78
"scripts": {
89
"watch": "cross-env NODE_ENV=development parcel index.html --no-hmr --open ",
910
"build": "cross-env NODE_ENV=production parcel build index.html --public-url ./"
@@ -15,14 +16,14 @@
1516
"babel-preset-env": "~1.6.1",
1617
"clang-format": "~1.2.2",
1718
"cross-env": "^5.2.0",
18-
"parcel-bundler": "~1.10.3",
19+
"parcel": "~2.3.2",
1920
"yalc": "~1.0.0-pre.27"
2021
},
2122
"dependencies": {
22-
"@tensorflow/tfjs-converter": "^3.0.0-rc.1",
23-
"@tensorflow/tfjs-core": "^3.0.0-rc.1",
23+
"@tensorflow/tfjs-automl": "file:../../dist",
2424
"@tensorflow/tfjs-backend-webgl": "^3.0.0-rc.1",
25-
"@tensorflow/tfjs-automl": "file:../../dist"
25+
"@tensorflow/tfjs-converter": "^3.0.0-rc.1",
26+
"@tensorflow/tfjs-core": "^3.0.0-rc.1"
2627
},
2728
"license": "Apache-2.0"
2829
}

0 commit comments

Comments
 (0)