yaml-boost
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -44,3 +44,6 @@ import fs from 'fs'; | ||
} else { | ||
loaded = (await import(match[2])).default; | ||
loaded = await import(match[2]); | ||
if ('default' in loaded) { | ||
loaded = loaded.default; | ||
} | ||
} | ||
@@ -47,0 +50,0 @@ const target = match[3] ? get(loaded, match[3]) : loaded; |
{ | ||
"name": "yaml-boost", | ||
"type": "module", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "Yaml Parser with additional functionality.", | ||
@@ -11,5 +11,5 @@ "main": "lib/index.js", | ||
"build-clean": "yarn run clean && yarn run build", | ||
"test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"", | ||
"test-simple": "c8 mocha --import=./test/reg.js \"./test/**/*.spec.js\"", | ||
"test": "yarn run clean && yarn run gardener && yarn run test-simple", | ||
"semantic-release": "yarn run build-clean && npx semantic-release", | ||
"semantic-release": "yarn run build-clean && yarn exec semantic-release", | ||
"gardener": "node gardener.js", | ||
@@ -35,16 +35,16 @@ "docker": "docker run --net host -u`id -u`:`id -g` -v $(pwd):/user/project -v ~/.aws:/user/.aws -v ~/.npmrc:/user/.npmrc -w /user/project -it --entrypoint /bin/bash", | ||
"devDependencies": { | ||
"@babel/core": "7.22.9", | ||
"@babel/eslint-parser": "7.22.9", | ||
"@babel/register": "7.22.5", | ||
"@blackflux/eslint-plugin-rules": "3.0.1", | ||
"@blackflux/robo-config-plugin": "9.1.10", | ||
"c8": "8.0.1", | ||
"chai": "4.3.7", | ||
"eslint": "8.46.0", | ||
"@babel/core": "7.26.7", | ||
"@babel/eslint-parser": "7.26.5", | ||
"@babel/register": "7.25.9", | ||
"@blackflux/eslint-plugin-rules": "4.0.0", | ||
"@blackflux/robo-config-plugin": "10.0.0", | ||
"c8": "10.1.3", | ||
"chai": "5.1.2", | ||
"eslint": "9.19.0", | ||
"eslint-config-airbnb-base": "15.0.0", | ||
"eslint-plugin-import": "2.28.0", | ||
"eslint-plugin-json": "3.1.0", | ||
"eslint-plugin-markdown": "3.0.1", | ||
"eslint-plugin-mocha": "10.1.0", | ||
"js-gardener": "5.0.2", | ||
"eslint-plugin-import": "2.31.0", | ||
"eslint-plugin-json": "4.0.1", | ||
"eslint-plugin-markdown": "5.1.0", | ||
"eslint-plugin-mocha": "10.5.0", | ||
"js-gardener": "6.0.2", | ||
"smart-fs": "4.0.1" | ||
@@ -67,3 +67,3 @@ }, | ||
"engines": { | ||
"node": ">= 16" | ||
"node": ">= 20" | ||
}, | ||
@@ -70,0 +70,0 @@ "files": [ |
@@ -57,3 +57,3 @@ # Yaml-Boost | ||
```yaml | ||
``` | ||
${file(./path/to/file.yml), key1=value1&key2=value2} | ||
@@ -66,3 +66,3 @@ ``` | ||
```yaml | ||
``` | ||
${require(PACKAGE):path.to.key.in.module} | ||
@@ -75,3 +75,3 @@ ``` | ||
```yaml | ||
``` | ||
${file(./path/to/file.js)} | ||
@@ -90,3 +90,3 @@ ``` | ||
```yaml | ||
``` | ||
${fileFn(./path/to/file.js)} | ||
@@ -105,3 +105,3 @@ ``` | ||
```yaml | ||
``` | ||
${file(^/subfolder/of/current/file.yml)} | ||
@@ -117,3 +117,3 @@ ``` | ||
```yaml | ||
``` | ||
data: | ||
@@ -130,3 +130,3 @@ - list entry one | ||
```yaml | ||
``` | ||
data: | ||
@@ -133,0 +133,0 @@ - list entry one |
10306
73