Comparing version 6.0.0-beta.15 to 6.0.0-beta.16
@@ -228,3 +228,3 @@ /// <reference types="node" /> | ||
}>; | ||
interface EventSubscriber { | ||
export interface EventSubscriber { | ||
/** | ||
@@ -1110,3 +1110,3 @@ * Adds a listener function which will be invoked when the given event type is | ||
} | ||
interface RouterConnectOptions { | ||
export interface RouterConnectOptions { | ||
routingId?: string; | ||
@@ -1266,3 +1266,3 @@ } | ||
} | ||
interface StreamConnectOptions { | ||
export interface StreamConnectOptions { | ||
routingId?: string; | ||
@@ -1269,0 +1269,0 @@ } |
@@ -107,18 +107,18 @@ /// <reference types="node" /> | ||
} | ||
interface AuthError extends Error { | ||
export interface AuthError extends Error { | ||
status: 300 | 400 | 500; | ||
} | ||
interface ProtoError extends Error { | ||
export interface ProtoError extends Error { | ||
code: "ERR_ZMTP_UNSPECIFIED" | "ERR_ZMTP_UNEXPECTED_COMMAND" | "ERR_ZMTP_INVALID_SEQUENCE" | "ERR_ZMTP_KEY_EXCHANGE" | "ERR_ZMTP_MALFORMED_COMMAND_UNSPECIFIED" | "ERR_ZMTP_MALFORMED_COMMAND_MESSAGE" | "ERR_ZMTP_MALFORMED_COMMAND_HELLO" | "ERR_ZMTP_MALFORMED_COMMAND_INITIATE" | "ERR_ZMTP_MALFORMED_COMMAND_ERROR" | "ERR_ZMTP_MALFORMED_COMMAND_READY" | "ERR_ZMTP_MALFORMED_COMMAND_WELCOME" | "ERR_ZMTP_INVALID_METADATA" | "ERR_ZMTP_CRYPTOGRAPHIC" | "ERR_ZMTP_MECHANISM_MISMATCH" | "ERR_ZAP_UNSPECIFIED" | "ERR_ZAP_MALFORMED_REPLY" | "ERR_ZAP_BAD_REQUEST_ID" | "ERR_ZAP_BAD_VERSION" | "ERR_ZAP_INVALID_STATUS_CODE" | "ERR_ZAP_INVALID_METADATA"; | ||
} | ||
interface EventAddress { | ||
export interface EventAddress { | ||
address: string; | ||
} | ||
interface EventInterval { | ||
export interface EventInterval { | ||
interval: number; | ||
} | ||
interface EventError<E = ErrnoError> { | ||
export interface EventError<E = ErrnoError> { | ||
error: E; | ||
} | ||
type EventFor<T extends string, D = {}> = Expand<{ | ||
export type EventFor<T extends string, D = {}> = Expand<{ | ||
type: T; | ||
@@ -530,3 +530,3 @@ } & D>; | ||
type IfEquals<X, Y, A, B = never> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? A : B; | ||
type Expand<T> = T extends infer O ? { | ||
export type Expand<T> = T extends infer O ? { | ||
[K in keyof O]: O[K]; | ||
@@ -533,0 +533,0 @@ } : never; |
@@ -231,3 +231,3 @@ /// <reference types="node" /> | ||
}>; | ||
interface EventSubscriber { | ||
export interface EventSubscriber { | ||
/** | ||
@@ -1113,3 +1113,3 @@ * Adds a listener function which will be invoked when the given event type is | ||
} | ||
interface RouterConnectOptions { | ||
export interface RouterConnectOptions { | ||
routingId?: string; | ||
@@ -1269,3 +1269,3 @@ } | ||
} | ||
interface StreamConnectOptions { | ||
export interface StreamConnectOptions { | ||
routingId?: string; | ||
@@ -1272,0 +1272,0 @@ } |
@@ -107,18 +107,18 @@ /// <reference types="node" /> | ||
} | ||
interface AuthError extends Error { | ||
export interface AuthError extends Error { | ||
status: 300 | 400 | 500; | ||
} | ||
interface ProtoError extends Error { | ||
export interface ProtoError extends Error { | ||
code: "ERR_ZMTP_UNSPECIFIED" | "ERR_ZMTP_UNEXPECTED_COMMAND" | "ERR_ZMTP_INVALID_SEQUENCE" | "ERR_ZMTP_KEY_EXCHANGE" | "ERR_ZMTP_MALFORMED_COMMAND_UNSPECIFIED" | "ERR_ZMTP_MALFORMED_COMMAND_MESSAGE" | "ERR_ZMTP_MALFORMED_COMMAND_HELLO" | "ERR_ZMTP_MALFORMED_COMMAND_INITIATE" | "ERR_ZMTP_MALFORMED_COMMAND_ERROR" | "ERR_ZMTP_MALFORMED_COMMAND_READY" | "ERR_ZMTP_MALFORMED_COMMAND_WELCOME" | "ERR_ZMTP_INVALID_METADATA" | "ERR_ZMTP_CRYPTOGRAPHIC" | "ERR_ZMTP_MECHANISM_MISMATCH" | "ERR_ZAP_UNSPECIFIED" | "ERR_ZAP_MALFORMED_REPLY" | "ERR_ZAP_BAD_REQUEST_ID" | "ERR_ZAP_BAD_VERSION" | "ERR_ZAP_INVALID_STATUS_CODE" | "ERR_ZAP_INVALID_METADATA"; | ||
} | ||
interface EventAddress { | ||
export interface EventAddress { | ||
address: string; | ||
} | ||
interface EventInterval { | ||
export interface EventInterval { | ||
interval: number; | ||
} | ||
interface EventError<E = ErrnoError> { | ||
export interface EventError<E = ErrnoError> { | ||
error: E; | ||
} | ||
type EventFor<T extends string, D = {}> = Expand<{ | ||
export type EventFor<T extends string, D = {}> = Expand<{ | ||
type: T; | ||
@@ -530,3 +530,3 @@ } & D>; | ||
type IfEquals<X, Y, A, B = never> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? A : B; | ||
type Expand<T> = T extends infer O ? { | ||
export type Expand<T> = T extends infer O ? { | ||
[K in keyof O]: O[K]; | ||
@@ -533,0 +533,0 @@ } : never; |
{ | ||
"name": "zeromq", | ||
"version": "6.0.0-beta.15", | ||
"version": "6.0.0-beta.16", | ||
"description": "Next-generation ZeroMQ bindings for Node.js", | ||
@@ -19,11 +19,11 @@ "main": "lib/index.js", | ||
}, | ||
"homepage": "http://zeromq.github.io/zeromq.js/", | ||
"dependencies": { | ||
"@aminya/node-gyp-build": "4.5.0-aminya.4", | ||
"cross-env": "^7.0.3", | ||
"node-addon-api": "^5.0.0", | ||
"shelljs": "^0.8.5", | ||
"shx": "^0.3.4", | ||
"cross-env": "^7.0.3" | ||
"shx": "^0.3.4" | ||
}, | ||
"devDependencies": { | ||
"@gnd/typedoc": "^0.15.0-0", | ||
"@types/chai": "^4.3.4", | ||
@@ -41,5 +41,8 @@ "@types/fs-extra": "^9.0.13", | ||
"downlevel-dts": "^0.11.0", | ||
"electron-mocha": "^11.0.2", | ||
"eslint-config-atomic": "^1.18.1", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"fs-extra": "^10.1.0", | ||
"gh-pages": "^4.0.0", | ||
"minify-all-cli": "^1.0.13", | ||
"mocha": "^10.1.0", | ||
@@ -53,2 +56,3 @@ "node-gyp": "^9.3.0", | ||
"ts-node": "~10.9.1", | ||
"typedoc": "^0.23.21", | ||
"typescript": "~4.9.3", | ||
@@ -97,6 +101,8 @@ "weak-napi": "^2.0.2", | ||
"clean.temp": "shx rm -rf ./tmp && shx mkdir -p ./tmp && shx touch ./tmp/.gitkeep", | ||
"build.library": "tsc -p ./src/tsconfig.json && downlevel-dts ./lib ./lib/ts3.7 --to=3.7", | ||
"build.library.compat": "shx rm -rf ./lib/ts3.7 && downlevel-dts ./lib ./lib/ts3.7 --to=3.7", | ||
"build.library": "tsc -p ./src/tsconfig.json && run-s build.library.compat", | ||
"build.script": "tsc -p ./script/tsconfig.json", | ||
"build.js": "run-p build.script build.library", | ||
"build.doc": "typedoc --out docs --name zeromq.js --excludeProtected --excludePrivate --excludeNotExported --excludeExternals --externalPattern 'src/+(draft|native|compat).ts' --tsconfig tsconfig-build.json --mode file", | ||
"build.doc": "typedoc --options ./typedoc.json && minify-all -s docs-raw -d docs --jsCompressor terser", | ||
"deploy.doc": "run-s build.doc && gh-pages --dist \"./docs\"", | ||
"prebuild": "run-s build.js && node ./script/prebuild.js", | ||
@@ -107,4 +113,6 @@ "build.native": "node-gyp configure --release && node-gyp build --release", | ||
"build.debug": "run-s build.js build.native.debug", | ||
"test": "run-s build && mocha", | ||
"test.skip_gc_tests": "run-s build.debug && cross-env SKIP_GC_TESTS=true mocha", | ||
"test": "run-s build && mocha --exit", | ||
"test.skip_gc_tests": "run-s build.debug && cross-env SKIP_GC_TESTS=true mocha --exit", | ||
"test.electron.main": "run-s build && electron-mocha", | ||
"test.electron.renderer": "run-s build && electron-mocha --renderer", | ||
"lint.clang-format": "clang-format -i -style=file ./src/*.cc ./src/*.h ./src/util/*.h", | ||
@@ -111,0 +119,0 @@ "lint-test.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/", |
@@ -43,3 +43,3 @@ # ZeroMQ.js Next Generation | ||
```sh | ||
npm install zeromq@6.0.0-beta.10 | ||
npm install zeromq@6.0.0-beta.16 | ||
``` | ||
@@ -82,3 +82,3 @@ | ||
```sh | ||
npm install zeromq@6.0.0-beta.10 --build-from-source | ||
npm install zeromq@6.0.0-beta.16 --build-from-source | ||
``` | ||
@@ -90,3 +90,3 @@ | ||
```sh | ||
npm install zeromq@6.0.0-beta.10 --zmq-shared | ||
npm install zeromq@6.0.0-beta.16 --zmq-shared | ||
``` | ||
@@ -97,3 +97,3 @@ | ||
```sh | ||
npm install zeromq@6.0.0-beta.10 --zmq-draft | ||
npm install zeromq@6.0.0-beta.16 --zmq-draft | ||
``` | ||
@@ -100,0 +100,0 @@ |
@@ -307,3 +307,3 @@ import {allowMethods} from "./util" | ||
interface EventSubscriber { | ||
export interface EventSubscriber { | ||
/** | ||
@@ -1378,3 +1378,3 @@ * Adds a listener function which will be invoked when the given event type is | ||
interface RouterConnectOptions { | ||
export interface RouterConnectOptions { | ||
routingId?: string | ||
@@ -1587,3 +1587,3 @@ } | ||
interface StreamConnectOptions { | ||
export interface StreamConnectOptions { | ||
routingId?: string | ||
@@ -1590,0 +1590,0 @@ } |
@@ -120,7 +120,7 @@ /* eslint-disable @typescript-eslint/no-var-requires */ | ||
interface AuthError extends Error { | ||
export interface AuthError extends Error { | ||
status: 300 | 400 | 500 | ||
} | ||
interface ProtoError extends Error { | ||
export interface ProtoError extends Error { | ||
code: | ||
@@ -149,15 +149,15 @@ | "ERR_ZMTP_UNSPECIFIED" | ||
interface EventAddress { | ||
export interface EventAddress { | ||
address: string | ||
} | ||
interface EventInterval { | ||
export interface EventInterval { | ||
interval: number | ||
} | ||
interface EventError<E = ErrnoError> { | ||
export interface EventError<E = ErrnoError> { | ||
error: E | ||
} | ||
type EventFor<T extends string, D = {}> = Expand<{type: T} & D> | ||
export type EventFor<T extends string, D = {}> = Expand<{type: T} & D> | ||
@@ -635,3 +635,3 @@ /** | ||
/* https://stackoverflow.com/questions/57683303 */ | ||
type Expand<T> = T extends infer O ? {[K in keyof O]: O[K]} : never | ||
export type Expand<T> = T extends infer O ? {[K in keyof O]: O[K]} : never | ||
@@ -638,0 +638,0 @@ /** @internal */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
18
8
6192521
30
90
9138