Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yaml-loader

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yaml-loader - npm Package Compare versions

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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc