js-yaml-import
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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" | ||
} | ||
} |
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
5585
92
9