Skip to content

Commit

Permalink
chore(deps): replace json-parse-better-errors to `json-parse-even-b…
Browse files Browse the repository at this point in the history
…etter-errors`
  • Loading branch information
Semigradsky committed Apr 16, 2022
1 parent a72548f commit 50068a1
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 23 deletions.
2 changes: 1 addition & 1 deletion lib/Compiler.js
Expand Up @@ -5,7 +5,7 @@

"use strict";

const parseJson = require("json-parse-better-errors");
const parseJson = require("json-parse-even-better-errors");
const asyncLib = require("neo-async");
const {
SyncHook,
Expand Down
2 changes: 1 addition & 1 deletion lib/DllReferencePlugin.js
Expand Up @@ -5,7 +5,7 @@

"use strict";

const parseJson = require("json-parse-better-errors");
const parseJson = require("json-parse-even-better-errors");
const DelegatedModuleFactoryPlugin = require("./DelegatedModuleFactoryPlugin");
const ExternalModuleFactoryPlugin = require("./ExternalModuleFactoryPlugin");
const WebpackError = require("./WebpackError");
Expand Down
2 changes: 1 addition & 1 deletion lib/NormalModule.js
Expand Up @@ -5,7 +5,7 @@

"use strict";

const parseJson = require("json-parse-better-errors");
const parseJson = require("json-parse-even-better-errors");
const { getContext, runLoaders } = require("loader-runner");
const querystring = require("querystring");
const { HookMap, SyncHook, AsyncSeriesBailHook } = require("tapable");
Expand Down
2 changes: 1 addition & 1 deletion lib/json/JsonParser.js
Expand Up @@ -5,7 +5,7 @@

"use strict";

const parseJson = require("json-parse-better-errors");
const parseJson = require("json-parse-even-better-errors");
const Parser = require("../Parser");
const JsonExportsDependency = require("../dependencies/JsonExportsDependency");
const JsonData = require("./JsonData");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -20,7 +20,7 @@
"events": "^3.2.0",
"glob-to-regexp": "^0.4.1",
"graceful-fs": "^4.2.9",
"json-parse-better-errors": "^1.0.2",
"json-parse-even-better-errors": "^2.3.1",
"loader-runner": "^4.2.0",
"mime-types": "^2.1.27",
"neo-async": "^2.6.2",
Expand Down
34 changes: 17 additions & 17 deletions test/__snapshots__/StatsTestCases.basictest.js.snap
Expand Up @@ -151,7 +151,7 @@ data:text/plain;base64,szsaAAdsadasdfaf.. 72.2 bytes {main} [depth 1] [built] [c
webpack/runtime/make namespace object 274 bytes {main} [code generated]
[no exports]
[used exports unknown]
1970-04-20 12:42:42: webpack x.x.x compiled successfully in X ms (64df70d049be415e3e5e)"
`;

Expand Down Expand Up @@ -506,7 +506,7 @@ Entrypoint parent 84 bytes = parent.js
assets by status 84 bytes [cached] 1 asset
Entrypoint child = child.js
./child.js 1 bytes [built] [code generated]
Child TestApplyEntryOptionPlugin compiled successfully
WARNING in configuration
Expand Down Expand Up @@ -1009,7 +1009,7 @@ exports[`StatsTestCases should print correct stats for dll-reference-plugin-issu
./entry.js 29 bytes [built] [code generated]
ERROR in Dll manifest ./blank-manifest.json
Unexpected end of JSON input while parsing near ''
Unexpected end of JSON input while parsing empty string
webpack x.x.x compiled with 1 error in X ms"
`;
Expand Down Expand Up @@ -1843,15 +1843,15 @@ exports[`StatsTestCases should print correct stats for performance-different-mod
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
Assets:
warning.pro-web.js (294 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (294 KiB)
warning.pro-web.js
WARNING in webpack performance recommendations:
WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
Expand All @@ -1862,15 +1862,15 @@ asset warning.pro-webworker.js 294 KiB [emitted] [big] (name: main)
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
Assets:
warning.pro-webworker.js (294 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (294 KiB)
warning.pro-webworker.js
WARNING in webpack performance recommendations:
WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
Expand All @@ -1897,15 +1897,15 @@ asset warning.pro-node-with-hints-set.js 294 KiB [emitted] [big] (name: main)
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
Assets:
warning.pro-node-with-hints-set.js (294 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (294 KiB)
warning.pro-node-with-hints-set.js
WARNING in webpack performance recommendations:
WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
Expand Down Expand Up @@ -1946,7 +1946,7 @@ cacheable modules 293 KiB
<CLR=31,BOLD>ERROR</CLR> in <CLR=BOLD>asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
Assets:
main.js (303 KiB)</CLR>
<CLR=31,BOLD>ERROR</CLR> in <CLR=BOLD>entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Expand All @@ -1972,7 +1972,7 @@ Entrypoint <CLR=BOLD>sec</CLR> 1.53 KiB = <CLR=32,BOLD>sec.js</CLR>
<CLR=33,BOLD>WARNING</CLR> in <CLR=BOLD>asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
Assets:
main.js (294 KiB)</CLR>
<CLR=33,BOLD>WARNING</CLR> in <CLR=BOLD>entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Expand All @@ -1981,7 +1981,7 @@ Entrypoints:
main.js
</CLR>
<CLR=33,BOLD>WARNING</CLR> in <CLR=BOLD>webpack performance recommendations:
<CLR=33,BOLD>WARNING</CLR> in <CLR=BOLD>webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/</CLR>
Expand Down Expand Up @@ -2016,7 +2016,7 @@ Entrypoint <CLR=BOLD>sec</CLR> <CLR=33,BOLD>[big]</CLR> 294 KiB = <CLR=32,BOLD>s
<CLR=31,BOLD>ERROR</CLR> in <CLR=BOLD>asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
Assets:
main.js (294 KiB)
sec.js (294 KiB)</CLR>
Expand All @@ -2028,7 +2028,7 @@ Entrypoints:
sec.js
</CLR>
<CLR=31,BOLD>ERROR</CLR> in <CLR=BOLD>webpack performance recommendations:
<CLR=31,BOLD>ERROR</CLR> in <CLR=BOLD>webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/</CLR>
Expand Down Expand Up @@ -2313,7 +2313,7 @@ cacheable modules 293 KiB
<CLR=33,BOLD>WARNING</CLR> in <CLR=BOLD>asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
Assets:
main.js (303 KiB)</CLR>
<CLR=33,BOLD>WARNING</CLR> in <CLR=BOLD>entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Expand Down Expand Up @@ -2341,7 +2341,7 @@ cacheable modules 293 KiB
<CLR=33,BOLD>WARNING</CLR> in <CLR=BOLD>asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
Assets:
main.js (303 KiB)</CLR>
<CLR=33,BOLD>WARNING</CLR> in <CLR=BOLD>entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Expand Down Expand Up @@ -2458,7 +2458,7 @@ chunk {996} (runtime: main) 996.js 22 bytes <{179}> [rendered]
amd require ./b [10] ./index.js 2:0-16
X ms [10] ->
X ms (resolving: X ms, restoring: X ms, integration: X ms, building: X ms, storing: X ms)
LOG from LogTestPlugin
<-> Group
Expand Down
7 changes: 6 additions & 1 deletion yarn.lock
Expand Up @@ -3934,11 +3934,16 @@ json-loader@^0.5.7:
resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.7.tgz#dca14a70235ff82f0ac9a3abeb60d337a365185d"
integrity sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==

json-parse-better-errors@^1.0.1, json-parse-better-errors@^1.0.2:
json-parse-better-errors@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"
integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==

json-parse-even-better-errors@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d"
integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==

json-schema-ref-parser@^9.0.1:
version "9.0.6"
resolved "https://registry.yarnpkg.com/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz#fc89a5e6b853f2abe8c0af30d3874196526adb60"
Expand Down

0 comments on commit 50068a1

Please sign in to comment.