@jini-ai/platform 0.7.0 → 0.7.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.7.1
2
+
3
+ ### Patch Changes
4
+
5
+ - Updated dependencies [873f10c]
6
+ - @jini-ai/core@0.7.1
7
+
1
8
  ## 0.7.0
2
9
 
3
10
  ### Minor Changes
@@ -121,7 +121,8 @@ export function createValidatingLookup(lookupImpl = dnsLookupCb) {
121
121
  return cb(err);
122
122
  const list = Array.isArray(address) ? address : [{ address, family }];
123
123
  for (const entry of list) {
124
- const addr = typeof entry === 'string' ? entry : entry.address;
124
+ // A malformed entry (null/undefined/non-object) is refused like any non-public one, never thrown on.
125
+ const addr = typeof entry === 'string' ? entry : (entry?.address ?? '');
125
126
  if (isPrivateAddress({ address: addr })) {
126
127
  return cb(new AssetCacheError(400, 'host resolves to a private address'));
127
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jini-ai/platform",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Generic OS/platform primitives: process exec and lifecycle, filesystem containment, HTTP readiness polling, toolchain discovery, blob storage, AWS signing, and an SSRF-safe asset cache.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -219,7 +219,7 @@
219
219
  "!dist/**/*.map"
220
220
  ],
221
221
  "dependencies": {
222
- "@jini-ai/core": "^0.7.0",
222
+ "@jini-ai/core": "^0.7.1",
223
223
  "undici": "^7.25.0"
224
224
  },
225
225
  "publishConfig": {