@xyo-network/shared
Advanced tools
Comparing version 2.111.3 to 3.0.0
@@ -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 }; |
@@ -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" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
27033
18
272
1