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

@xyo-network/shared

Package Overview
Dependencies
Maintainers
5
Versions
856
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/shared - npm Package Compare versions

Comparing version 2.111.3 to 3.0.0

xy.config.ts

45

dist/neutral/index.d.ts

@@ -1,5 +0,40 @@

export * from './dump.ts';
export * from './IdLogger.ts';
export * from './is-ip/index.ts';
export * from './Job/index.ts';
//# sourceMappingURL=index.d.ts.map
import { Logger } from '@xylabs/logger';
declare const dump: (object: unknown) => string;
declare class IdLogger implements Logger {
private _id?;
private _logger;
constructor(logger: Logger, id?: () => string);
set id(id: string);
debug(message?: unknown): void;
error(message?: unknown): void;
info(message?: unknown): void;
log(message?: unknown): void;
warn(message?: unknown): void;
private generate;
}
declare function isIP(value: string): boolean;
declare function isIPv6(value: string): boolean;
declare function isIPv4(value: string): boolean;
declare function ipVersion(value: string): 6 | 4 | undefined;
type Task = () => Promise<void>;
type VoidFunction = (...anyArguments: unknown[]) => void;
interface Job {
name: string;
onComplete?: VoidFunction;
onFail?: VoidFunction;
onStart?: VoidFunction;
onSuccess?: VoidFunction;
schedule: string;
task: Task;
}
interface JobProvider {
get jobs(): Job[];
}
export { IdLogger, type Job, type JobProvider, type VoidFunction, dump, ipVersion, isIP, isIPv4, isIPv6 };

33

package.json

@@ -17,4 +17,4 @@ {

"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.15.14",
"@xylabs/tsconfig": "^3.15.14",
"@xylabs/ts-scripts-yarn3": "next",
"@xylabs/tsconfig": "next",
"typescript": "^5.5.4"

@@ -24,28 +24,9 @@ },

".": {
"browser": {
"require": {
"types": "./dist/browser/index.d.cts",
"default": "./dist/browser/index.cjs"
},
"import": {
"types": "./dist/browser/index.d.mts",
"default": "./dist/browser/index.mjs"
}
},
"node": {
"require": {
"types": "./dist/node/index.d.cts",
"default": "./dist/node/index.cjs"
},
"import": {
"types": "./dist/node/index.d.mts",
"default": "./dist/node/index.mjs"
}
}
"types": "./dist/neutral/index.d.ts",
"default": "./dist/neutral/index.mjs"
},
"./package.json": "./package.json"
},
"main": "dist/node/index.cjs",
"module": "dist/node/index.mjs",
"types": "dist/node/index.d.mts",
"module": "dist/neutral/index.mjs",
"types": "dist/neutral/index.d.ts",
"homepage": "https://xyo.network",

@@ -61,4 +42,4 @@ "license": "LGPL-3.0-only",

"sideEffects": false,
"version": "2.111.3",
"version": "3.0.0",
"type": "module"
}
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