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

@nexeraprotocol/nexera-id-schemas

Package Overview
Dependencies
Maintainers
1
Versions
385
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nexeraprotocol/nexera-id-schemas - npm Package Compare versions

Comparing version 1.0.17 to 1.0.18

2

dist/declarations/src/index.d.ts

@@ -40,2 +40,3 @@ import { z } from "zod";

export declare const ChainIdSchema: z.ZodEffects<z.ZodEnum<[NEXERA_CHAINS.FUJI, NEXERA_CHAINS.MUMBAI]>, NEXERA_CHAINS.MUMBAI | NEXERA_CHAINS.FUJI, unknown>;
export declare const ChainIdNumberSchema: z.ZodEffects<z.ZodEffects<z.ZodEnum<[NEXERA_CHAINS.FUJI, NEXERA_CHAINS.MUMBAI]>, number, NEXERA_CHAINS.MUMBAI | NEXERA_CHAINS.FUJI>, number, unknown>;
export type ChainId = z.infer<typeof ChainIdSchema>;

@@ -46,2 +47,3 @@ export declare const EnvironmentSchema: z.ZodUnion<[z.ZodLiteral<"local">, z.ZodLiteral<"dev">, z.ZodLiteral<"stage">, z.ZodLiteral<"prod">]>;

export declare const ChainIdStringSchema: z.ZodEffects<z.ZodString, NEXERA_CHAINS.MUMBAI | NEXERA_CHAINS.FUJI, string>;
export declare const Address0xSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
export declare const AddressSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;

@@ -48,0 +50,0 @@ export type Address = z.infer<typeof AddressSchema>;

@@ -60,2 +60,7 @@ 'use strict';

}, zod.z["enum"]([NEXERA_CHAINS.FUJI, NEXERA_CHAINS.MUMBAI]).describe("a numeric value that identifies the chain of the address. There are many sites that retrieve information on chainIDs such as <a href='https://chainlist.org/'>https://chainlist.org</a>."));
var ChainIdNumberSchema = zod.z.preprocess(function (val) {
return String(val);
}, zod.z["enum"]([NEXERA_CHAINS.FUJI, NEXERA_CHAINS.MUMBAI]).transform(function (s) {
return Number(s);
}).describe("a numeric value that identifies the chain of the address. There are many sites that retrieve information on chainIDs such as <a href='https://chainlist.org/'>https://chainlist.org</a>."));
var EnvironmentSchema = zod.z.union([zod.z.literal("local"), zod.z.literal("dev"), zod.z.literal("stage"), zod.z.literal("prod")]);

@@ -69,2 +74,7 @@ var isValidAddress = function isValidAddress(address) {

}).describe("a numeric value that identifies the chain of the address. There are many sites that retrieve information on chainIDs such as <a href='https://chainlist.org/'>https://chainlist.org</a>.");
var Address0xSchema = zod.z.string().refine(function (value) {
return isValidAddress(value);
}).transform(function (value) {
return value.toLowerCase();
}).describe("a string value that identifies the address of a specific user; this would normally be tied to an EOA that includes the Smart Wallet.");
var AddressSchema = zod.z.string().refine(function (value) {

@@ -83,3 +93,5 @@ return isValidAddress(value);

exports.Address0xSchema = Address0xSchema;
exports.AddressSchema = AddressSchema;
exports.ChainIdNumberSchema = ChainIdNumberSchema;
exports.ChainIdSchema = ChainIdSchema;

@@ -86,0 +98,0 @@ exports.ChainIdStringSchema = ChainIdStringSchema;

@@ -60,2 +60,7 @@ 'use strict';

}, zod.z["enum"]([NEXERA_CHAINS.FUJI, NEXERA_CHAINS.MUMBAI]).describe("a numeric value that identifies the chain of the address. There are many sites that retrieve information on chainIDs such as <a href='https://chainlist.org/'>https://chainlist.org</a>."));
var ChainIdNumberSchema = zod.z.preprocess(function (val) {
return String(val);
}, zod.z["enum"]([NEXERA_CHAINS.FUJI, NEXERA_CHAINS.MUMBAI]).transform(function (s) {
return Number(s);
}).describe("a numeric value that identifies the chain of the address. There are many sites that retrieve information on chainIDs such as <a href='https://chainlist.org/'>https://chainlist.org</a>."));
var EnvironmentSchema = zod.z.union([zod.z.literal("local"), zod.z.literal("dev"), zod.z.literal("stage"), zod.z.literal("prod")]);

@@ -69,2 +74,7 @@ var isValidAddress = function isValidAddress(address) {

}).describe("a numeric value that identifies the chain of the address. There are many sites that retrieve information on chainIDs such as <a href='https://chainlist.org/'>https://chainlist.org</a>.");
var Address0xSchema = zod.z.string().refine(function (value) {
return isValidAddress(value);
}).transform(function (value) {
return value.toLowerCase();
}).describe("a string value that identifies the address of a specific user; this would normally be tied to an EOA that includes the Smart Wallet.");
var AddressSchema = zod.z.string().refine(function (value) {

@@ -83,3 +93,5 @@ return isValidAddress(value);

exports.Address0xSchema = Address0xSchema;
exports.AddressSchema = AddressSchema;
exports.ChainIdNumberSchema = ChainIdNumberSchema;
exports.ChainIdSchema = ChainIdSchema;

@@ -86,0 +98,0 @@ exports.ChainIdStringSchema = ChainIdStringSchema;

@@ -56,2 +56,7 @@ import { z } from 'zod';

}, z["enum"]([NEXERA_CHAINS.FUJI, NEXERA_CHAINS.MUMBAI]).describe("a numeric value that identifies the chain of the address. There are many sites that retrieve information on chainIDs such as <a href='https://chainlist.org/'>https://chainlist.org</a>."));
var ChainIdNumberSchema = z.preprocess(function (val) {
return String(val);
}, z["enum"]([NEXERA_CHAINS.FUJI, NEXERA_CHAINS.MUMBAI]).transform(function (s) {
return Number(s);
}).describe("a numeric value that identifies the chain of the address. There are many sites that retrieve information on chainIDs such as <a href='https://chainlist.org/'>https://chainlist.org</a>."));
var EnvironmentSchema = z.union([z.literal("local"), z.literal("dev"), z.literal("stage"), z.literal("prod")]);

@@ -65,2 +70,7 @@ var isValidAddress = function isValidAddress(address) {

}).describe("a numeric value that identifies the chain of the address. There are many sites that retrieve information on chainIDs such as <a href='https://chainlist.org/'>https://chainlist.org</a>.");
var Address0xSchema = z.string().refine(function (value) {
return isValidAddress(value);
}).transform(function (value) {
return value.toLowerCase();
}).describe("a string value that identifies the address of a specific user; this would normally be tied to an EOA that includes the Smart Wallet.");
var AddressSchema = z.string().refine(function (value) {

@@ -79,2 +89,2 @@ return isValidAddress(value);

export { AddressSchema, ChainIdSchema, ChainIdStringSchema, EnvironmentSchema, MNftIdSchema, NEXERA_CHAINS, NEXERA_CHAIN_NAMES, NEXERA_CHAIN_RELAYERS, NEXERA_CHAIN_VALUES, NEXERA_RELAYERS, Subgraphs, WagmiAddressSchema, isValidAddress };
export { Address0xSchema, AddressSchema, ChainIdNumberSchema, ChainIdSchema, ChainIdStringSchema, EnvironmentSchema, MNftIdSchema, NEXERA_CHAINS, NEXERA_CHAIN_NAMES, NEXERA_CHAIN_RELAYERS, NEXERA_CHAIN_VALUES, NEXERA_RELAYERS, Subgraphs, WagmiAddressSchema, isValidAddress };

2

dist/package.json
{
"name": "@nexeraprotocol/nexera-id-schemas",
"version": "1.0.17",
"version": "1.0.18",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/nexeraprotocol-nexera-id-schemas.cjs.js",

{
"name": "@nexeraprotocol/nexera-id-schemas",
"version": "1.0.17",
"version": "1.0.18",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/nexeraprotocol-nexera-id-schemas.cjs.js",

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