@oracle/oraclejet-jest-preset 12.0.0 → 12.1.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/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// expects that the content will come as text. NodeJS's behavior is to parse JSON
|
|
3
3
|
// files and return the object from the module, causing double-parsing when passed
|
|
4
4
|
// to JSON.parse().
|
|
5
|
-
// This loader escapes the double-quotes so that
|
|
6
|
-
// as a single string key.
|
|
5
|
+
// This loader escapes the double-quotes and removes newlines so that JSON.parse()
|
|
6
|
+
// treats it as an object with a single string key.
|
|
7
7
|
module.exports = {
|
|
8
|
-
process: content => `"` + content.replace(/"/g, `\\"`).replace(
|
|
8
|
+
process: content => `"` + content.replace(/"/g, `\\"`).replace(/[\r\n]/g, '') + `"`
|
|
9
9
|
}
|