@shinkai_protocol/shinkai-typescript-lib
Advanced tools
Comparing version 0.6.0 to 0.7.0-development.26
@@ -48,8 +48,8 @@ "use strict"; | ||
} | ||
const nodeRegex = /^@@[a-zA-Z0-9_\.]+(\.shinkai|\.sepolia-shinkai)$/; | ||
const nodeRegex = /^@@[a-zA-Z0-9_\.]+(\.shinkai|\.sepolia-shinkai|\.arb-sep-shinkai)$/; | ||
if (!nodeRegex.test(parts[0])) { | ||
if (process.env.NODE_ENV !== "test") { | ||
console.error(`Node part of the name should start with '@@' and end with '.shinkai' or '.sepolia-shinkai': ${rawName}`); | ||
console.error(`Node part of the name should start with '@@' and end with '.shinkai' or '.sepolia-shinkai' or '.arb-sep-shinkai': ${rawName}`); | ||
} | ||
throw new Error("Node part of the name should start with '@@' and end with '.shinkai' or '.sepolia-shinkai'."); | ||
throw new Error("Node part of the name should start with '@@' and end with '.shinkai' or '.sepolia-shinkai' or '.arb-sep-shinkai'."); | ||
} | ||
@@ -84,3 +84,3 @@ const partRegex = /^[a-zA-Z0-9_]*$/; | ||
index !== 2 && | ||
(!partRegex.test(part) || part.includes(".shinkai") || part.includes(".sepolia-shinkai"))) { | ||
(!partRegex.test(part) || part.includes(".shinkai") || part.includes(".sepolia-shinkai") || part.includes(".arb-sep-shinkai"))) { | ||
if (process.env.NODE_ENV !== "test") { | ||
@@ -183,3 +183,3 @@ console.error(`Name parts should be alphanumeric or underscore and not contain '.shinkai': ${rawName}`); | ||
// A node name is valid if it starts with '@@', ends with '.shinkai', and doesn't contain '/' | ||
return (name.startsWith("@@") && (name.endsWith(".shinkai") || name.endsWith(".sepolia-shinkai")) && !name.includes("/")); | ||
return (name.startsWith("@@") && (name.endsWith(".shinkai") || name.endsWith(".sepolia-shinkai") || name.endsWith(".arb-sep-shinkai")) && !name.includes("/")); | ||
} | ||
@@ -235,3 +235,3 @@ contains(other) { | ||
} | ||
if (!nodeName.endsWith(".shinkai") && !nodeName.endsWith(".sepolia-shinkai")) { | ||
if (!nodeName.endsWith(".shinkai") && !nodeName.endsWith(".sepolia-shinkai") && !nodeName.endsWith(".arb-sep-shinkai")) { | ||
nodeName = nodeName + ".shinkai"; | ||
@@ -238,0 +238,0 @@ } |
{ | ||
"name": "@shinkai_protocol/shinkai-typescript-lib", | ||
"version": "0.6.0", | ||
"version": "0.7.0-development.26", | ||
"description": "Typescript library to build and handle Shinkai Messages", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121953