@eik/node-client 1.1.28 → 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 CHANGED
@@ -1,3 +1,36 @@
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
+
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)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Add CommonJS support ([b634537](https://github.com/eik-lib/node-client/commit/b6345378236d1bf60dc1ff6ceee1a285ca335e7f))
14
+ * Do not use getters and setters on public data object ([0505dcb](https://github.com/eik-lib/node-client/commit/0505dcb25b2563b826d5806fc30a7d148c111c00))
15
+ * Make default value of integrity to be undefined ([a679f73](https://github.com/eik-lib/node-client/commit/a679f733351413e5e59cbd0f71c86fef8a08042c))
16
+
17
+
18
+ ### chore
19
+
20
+ * Rename module to @eik/node-client ([f3d8c73](https://github.com/eik-lib/node-client/commit/f3d8c7325b90b345a79df731544f53ebb11c81bf))
21
+
22
+
23
+ ### Features
24
+
25
+ * Make .file() return an object ([f53f15d](https://github.com/eik-lib/node-client/commit/f53f15dae288fda4b4527a3b4c69bab2e56f5169))
26
+ * Rework module to suite current functionality of Eik ([559294c](https://github.com/eik-lib/node-client/commit/559294cc8d1bd793873ba02000da6376312e0160))
27
+
28
+
29
+ ### BREAKING CHANGES
30
+
31
+ * Rename module to @eik/node-client
32
+ * API is reworked to suite the current functionality of Eik
33
+
1
34
  ## [1.1.28](https://github.com/eik-lib/node-client/compare/v1.1.27...v1.1.28) (2022-08-08)
2
35
 
3
36
 
package/README.md CHANGED
@@ -102,7 +102,7 @@ Set the module in development mode or not.
102
102
 
103
103
  Whether import maps defined in the config should be loaded from the Eik server or not. The import maps is loaded by calling the `.load()` method and loaded the maps can be retrieved with the `.maps()` method. The import maps will be cached in the module.
104
104
 
105
- ## API
105
+ ### options
106
106
 
107
107
  This module has the following API
108
108
 
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 common.helpers.getDefaults(this.#path);
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": "1.1.28",
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": "3.0.1",
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 helpers.getDefaults(this.#path);
58
+ this.#config = await loader.getDefaults(this.#path);
59
59
  if (this.#loadMaps) {
60
60
  this.#maps = await fetchImportMaps(this.#config.map);
61
61
  }