Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shinkai_protocol/shinkai-typescript-lib

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shinkai_protocol/shinkai-typescript-lib - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0-development.26

12

dist/schemas/shinkai_name.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc