@eik/node-client 2.0.0-next.1 → 2.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.cjs +6 -2
- package/package.json +2 -2
- package/src/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [2.0.0-next.2](https://github.com/eik-lib/node-client/compare/v2.0.0-next.1...v2.0.0-next.2) (2022-08-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Use the new @eik/common-config-loader module ([#104](https://github.com/eik-lib/node-client/issues/104)) ([5de927c](https://github.com/eik-lib/node-client/commit/5de927ca74c461be8d6bbd0048a2afc6812cb085))
|
|
7
|
+
|
|
1
8
|
# [2.0.0-next.1](https://github.com/eik-lib/node-client/compare/v1.1.28...v2.0.0-next.1) (2022-08-08)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var common = require('@eik/common');
|
|
4
3
|
var undici = require('undici');
|
|
5
4
|
var path = require('path');
|
|
5
|
+
var loader = require('@eik/common-config-loader');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var loader__default = /*#__PURE__*/_interopDefaultLegacy(loader);
|
|
6
10
|
|
|
7
11
|
class Asset {
|
|
8
12
|
constructor({
|
|
@@ -65,7 +69,7 @@ class NodeClient {
|
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
async load() {
|
|
68
|
-
this.#config = await
|
|
72
|
+
this.#config = await loader__default["default"].getDefaults(this.#path);
|
|
69
73
|
if (this.#loadMaps) {
|
|
70
74
|
this.#maps = await fetchImportMaps(this.#config.map);
|
|
71
75
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eik/node-client",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.2",
|
|
4
4
|
"description": "A node.js client for interacting with a Eik server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/eik-lib/node-client#readme",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@eik/common": "
|
|
40
|
+
"@eik/common-config-loader": "4.0.0-next.8",
|
|
41
41
|
"abslog": "2.4.0",
|
|
42
42
|
"undici": "5.8.1"
|
|
43
43
|
},
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { helpers } from '@eik/common';
|
|
2
1
|
import { request } from 'undici';
|
|
3
2
|
import { join } from 'path';
|
|
3
|
+
import loader from '@eik/common-config-loader';
|
|
4
4
|
import Asset from './asset.js';
|
|
5
5
|
|
|
6
6
|
const trimSlash = (value = '') => {
|
|
@@ -55,7 +55,7 @@ export default class NodeClient {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
async load() {
|
|
58
|
-
this.#config = await
|
|
58
|
+
this.#config = await loader.getDefaults(this.#path);
|
|
59
59
|
if (this.#loadMaps) {
|
|
60
60
|
this.#maps = await fetchImportMaps(this.#config.map);
|
|
61
61
|
}
|