@parcel/utils 2.4.1 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1638 -1636
- package/lib/index.js.map +1 -1
- package/package.json +7 -8
- package/src/schema.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/utils",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,16 +33,15 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@parcel/codeframe": "2.
|
|
37
|
-
"@parcel/diagnostic": "2.
|
|
38
|
-
"@parcel/hash": "2.
|
|
39
|
-
"@parcel/logger": "2.
|
|
40
|
-
"@parcel/markdown-ansi": "2.
|
|
36
|
+
"@parcel/codeframe": "2.5.0",
|
|
37
|
+
"@parcel/diagnostic": "2.5.0",
|
|
38
|
+
"@parcel/hash": "2.5.0",
|
|
39
|
+
"@parcel/logger": "2.5.0",
|
|
40
|
+
"@parcel/markdown-ansi": "2.5.0",
|
|
41
41
|
"@parcel/source-map": "^2.0.0",
|
|
42
42
|
"chalk": "^4.1.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@babel/plugin-transform-flow-strip-types": "^7.2.0",
|
|
46
45
|
"@iarna/toml": "^2.2.0",
|
|
47
46
|
"ansi-html-community": "0.0.8",
|
|
48
47
|
"clone": "^2.1.1",
|
|
@@ -64,5 +63,5 @@
|
|
|
64
63
|
"./src/http-server.js": false,
|
|
65
64
|
"./src/openInBrowser.js": false
|
|
66
65
|
},
|
|
67
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "5cfb846d742eb86b1232e531be6e0e513551d838"
|
|
68
67
|
}
|
package/src/schema.js
CHANGED
|
@@ -4,7 +4,7 @@ import ThrowableDiagnostic, {
|
|
|
4
4
|
escapeMarkdown,
|
|
5
5
|
encodeJSONKeyComponent,
|
|
6
6
|
} from '@parcel/diagnostic';
|
|
7
|
-
import type {Mapping} from 'json-
|
|
7
|
+
import type {Mapping} from '@mischnic/json-sourcemap';
|
|
8
8
|
import nullthrows from 'nullthrows';
|
|
9
9
|
// flowlint-next-line untyped-import:off
|
|
10
10
|
import levenshtein from 'fastest-levenshtein';
|
|
@@ -406,7 +406,7 @@ validateSchema.diagnostic = function (
|
|
|
406
406
|
!data
|
|
407
407
|
) {
|
|
408
408
|
throw new Error(
|
|
409
|
-
'At least one of data.source and data.
|
|
409
|
+
'At least one of data.source and data.data must be defined!',
|
|
410
410
|
);
|
|
411
411
|
}
|
|
412
412
|
let object = data.map
|