@deepseek-ai/dsh-typert-loader 0.1.6-alpha.2 → 0.1.7-alpha.1

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -0
  2. package/package.json +9 -9
package/lib/index.js CHANGED
@@ -207,6 +207,7 @@ function requireStrictCodec(pkgName, value, subject) {
207
207
  const codec = requireObject(pkgName, value, subject);
208
208
  if (codec.mode !== "strict") throw new Error(`typert-loader: ${pkgName} ${subject} must use a strict codec`);
209
209
  requireString(pkgName, codec, "typeSymbol", subject);
210
+ for (const method of ["decode", "encode"]) if (codec[method] !== void 0 && typeof codec[method] !== "function") throw new Error(`typert-loader: ${pkgName} ${subject} ${method} must be a function`);
210
211
  if (typeof codec.create !== "function") throw new Error(`typert-loader: ${pkgName} ${subject} has no create() factory`);
211
212
  }
212
213
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-typert-loader",
3
3
  "description": "Loader integration for generated Typert package contributions",
4
- "version": "0.1.6-alpha.2",
4
+ "version": "0.1.7-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,18 +27,18 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
- "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
31
- "@deepseek-ai/dsh-typert-registry": "^0.1.6-alpha.2",
32
- "@deepseek-ai/cordis": "^4.0.2"
30
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.4",
31
+ "@deepseek-ai/dsh-typert-registry": "^0.1.7-alpha.1",
32
+ "@deepseek-ai/cordis": "^4.0.3"
33
33
  },
34
34
  "dependencies": {
35
- "@deepseek-ai/schemastery": "^3.18.2"
35
+ "@deepseek-ai/schemastery": "^3.18.3"
36
36
  },
37
37
  "devDependencies": {
38
38
  "zod": "^4.4.3",
39
- "@deepseek-ai/dsh-app-boot": "^0.1.6-alpha.2",
40
- "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
41
- "@deepseek-ai/dsh-typert-registry": "^0.1.6-alpha.2",
42
- "@deepseek-ai/cordis": "^4.0.2"
39
+ "@deepseek-ai/dsh-app-boot": "^0.1.7-alpha.1",
40
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.4",
41
+ "@deepseek-ai/cordis": "^4.0.3",
42
+ "@deepseek-ai/dsh-typert-registry": "^0.1.7-alpha.1"
43
43
  }
44
44
  }