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

js-yaml-import

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-yaml-import - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

dist/js-yaml-import.cjs.js

@@ -38,6 +38,8 @@ 'use strict';

read(fileName) {
var _json$AtImport;
const json = yaml__default['default'].load(fs__default['default'].readFileSync(fileName, 'utf8'));
const paths = this.searchPaths.filter(fs__default['default'].existsSync);
if (json && json[AtImport] && json[AtImport].length) {
if ((_json$AtImport = json[AtImport]) !== null && _json$AtImport !== void 0 && _json$AtImport.length) {
let result = {};

@@ -59,3 +61,3 @@

if (json && json[AtImport]) {
if (json[AtImport]) {
delete json[AtImport];

@@ -62,0 +64,0 @@ }

@@ -18,6 +18,8 @@ import _merge from "lodash/merge";

read(fileName) {
var _json$AtImport;
const json = yaml.load(fs.readFileSync(fileName, 'utf8'));
const paths = this.searchPaths.filter(fs.existsSync);
if (json && json[AtImport] && json[AtImport].length) {
if ((_json$AtImport = json[AtImport]) !== null && _json$AtImport !== void 0 && _json$AtImport.length) {
let result = {};

@@ -39,3 +41,3 @@

if (json && json[AtImport]) {
if (json[AtImport]) {
delete json[AtImport];

@@ -42,0 +44,0 @@ }

{
"name": "js-yaml-import",
"version": "1.0.0",
"version": "1.0.1",
"description": "Allows import files in YAML.",

@@ -38,5 +38,7 @@ "main": "dist/js-yaml-import.cjs.js",

"@rollup/plugin-node-resolve": "^10.0.0",
"babel-jest": "^26.6.3",
"babel-plugin-lodash": "^3.3.4",
"jest": "^26.6.3",
"rollup": "^2.33.3"
}
}
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