@pluv/platform-node 0.25.4 → 0.26.0

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/platform-node@0.25.4 build /home/runner/work/pluv/pluv/packages/platform-node
2
+ > @pluv/platform-node@0.26.0 build /home/runner/work/pluv/pluv/packages/platform-node
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,11 +8,11 @@
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
- ESM dist/index.mjs 8.07 KB
12
- ESM ⚡️ Build success in 73ms
13
- CJS dist/index.js 9.84 KB
14
- CJS ⚡️ Build success in 75ms
11
+ ESM dist/index.mjs 7.40 KB
12
+ ESM ⚡️ Build success in 74ms
13
+ CJS dist/index.js 9.27 KB
14
+ CJS ⚡️ Build success in 74ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4243ms
16
+ DTS ⚡️ Build success in 4378ms
17
17
  DTS dist/index.d.mts 3.60 KB
18
18
  DTS dist/index.d.ts 3.60 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pluv/platform-node
2
2
 
3
+ ## 0.26.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 2a6e078: Updated `@pluv/platform-cloudflare` and `@pluv/platform-node` so that exact properties are used in its initialization.
8
+ - @pluv/io@0.26.0
9
+ - @pluv/types@0.26.0
10
+
3
11
  ## 0.25.4
4
12
 
5
13
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3,22 +3,8 @@ var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7
6
  var __getProtoOf = Object.getPrototypeOf;
8
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
- var __spreadValues = (a, b) => {
12
- for (var prop in b || (b = {}))
13
- if (__hasOwnProp.call(b, prop))
14
- __defNormalProp(a, prop, b[prop]);
15
- if (__getOwnPropSymbols)
16
- for (var prop of __getOwnPropSymbols(b)) {
17
- if (__propIsEnum.call(b, prop))
18
- __defNormalProp(a, prop, b[prop]);
19
- }
20
- return a;
21
- };
22
8
  var __export = (target, all) => {
23
9
  for (var name in all)
24
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -270,11 +256,12 @@ var NodePlatform = class _NodePlatform extends import_io2.AbstractPlatform {
270
256
  return [];
271
257
  }
272
258
  initialize(config) {
273
- return new _NodePlatform(__spreadValues({
259
+ return new _NodePlatform({
260
+ context: config.context,
274
261
  mode: this._registrationMode,
275
262
  persistence: this.persistence,
276
263
  pubSub: this.pubSub
277
- }, config))._initialize();
264
+ })._initialize();
278
265
  }
279
266
  parseData(data) {
280
267
  if (typeof data === "string") return JSON.parse(data);
package/dist/index.mjs CHANGED
@@ -1,19 +1,3 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
1
  var __async = (__this, __arguments, generator) => {
18
2
  return new Promise((resolve, reject) => {
19
3
  var fulfilled = (value) => {
@@ -236,11 +220,12 @@ var NodePlatform = class _NodePlatform extends AbstractPlatform {
236
220
  return [];
237
221
  }
238
222
  initialize(config) {
239
- return new _NodePlatform(__spreadValues({
223
+ return new _NodePlatform({
224
+ context: config.context,
240
225
  mode: this._registrationMode,
241
226
  persistence: this.persistence,
242
227
  pubSub: this.pubSub
243
- }, config))._initialize();
228
+ })._initialize();
244
229
  }
245
230
  parseData(data) {
246
231
  if (typeof data === "string") return JSON.parse(data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/platform-node",
3
- "version": "0.25.4",
3
+ "version": "0.26.0",
4
4
  "description": "@pluv/io adapter for node.js",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -20,16 +20,16 @@
20
20
  "@types/node": "^22.5.0",
21
21
  "@types/ws": "^8.5.12",
22
22
  "path-to-regexp": "^7.1.0",
23
- "@pluv/io": "^0.25.4",
24
- "@pluv/types": "^0.25.4"
23
+ "@pluv/io": "^0.26.0",
24
+ "@pluv/types": "^0.26.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "eslint": "^8.57.0",
28
28
  "tsup": "^8.2.4",
29
29
  "typescript": "^5.5.4",
30
30
  "ws": "^8.18.0",
31
- "@pluv/tsconfig": "^0.25.4",
32
- "eslint-config-pluv": "^0.25.4"
31
+ "@pluv/tsconfig": "^0.26.0",
32
+ "eslint-config-pluv": "^0.26.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "ws": "^8.0.0"
@@ -56,10 +56,10 @@ export class NodePlatform extends AbstractPlatform<NodeWebSocket> {
56
56
 
57
57
  public initialize(config: AbstractPlatformConfig<{}, {}>): this {
58
58
  return new NodePlatform({
59
+ context: config.context,
59
60
  mode: this._registrationMode,
60
61
  persistence: this.persistence,
61
62
  pubSub: this.pubSub,
62
- ...config,
63
63
  } as NodePlatformConfig)._initialize() as this;
64
64
  }
65
65