yaml-loader
Advanced tools
Comparing version 0.8.0 to 0.8.1
13
index.js
@@ -8,6 +8,10 @@ const { getOptions } = require('loader-utils') | ||
module.exports = function yamlLoader(src) { | ||
const { asJSON, asStream, namespace, ...options } = Object.assign( | ||
const { asJSON, asStream, ...options } = Object.assign( | ||
{ prettyErrors: true }, | ||
getOptions(this) | ||
this.getOptions?.() ?? getOptions(this) | ||
) | ||
const namespace = | ||
(this.resourceQuery && | ||
new URLSearchParams(this.resourceQuery).get('namespace')) || | ||
options.namespace | ||
@@ -31,3 +35,6 @@ // keep track of repeated object references | ||
const jsOpt = Object.assign({}, options, { onAnchor: addRef }) | ||
const jsOpt = Object.assign({}, options, { | ||
namespace: undefined, | ||
onAnchor: addRef | ||
}) | ||
if (asJSON) { | ||
@@ -34,0 +41,0 @@ jsOpt.json = true |
{ | ||
"name": "yaml-loader", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"license": "MIT", | ||
@@ -44,7 +44,10 @@ "description": "YAML loader for Webpack", | ||
"jest": "^28.0.0", | ||
"prettier": "^2.1.1" | ||
"memfs": "^3.4.13", | ||
"prettier": "^2.1.1", | ||
"unionfs": "^4.4.0", | ||
"webpack": "^5.75.0" | ||
}, | ||
"engines": { | ||
"node": ">= 12.13" | ||
"node": ">= 14" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6588
68
5