@trinsic/okapi
Advanced tools
Comparing version 1.4.1 to 1.6.0-rc1
@@ -1,56 +0,30 @@ | ||
import * as proto from "@trinsic/okapi-proto"; | ||
export * from "@trinsic/okapi-proto"; | ||
import * as proto from "./proto"; | ||
export * from "./proto"; | ||
export declare class DIDKey { | ||
static generate( | ||
request: proto.GenerateKeyRequest | ||
): Promise<proto.GenerateKeyResponse>; | ||
static resolve(request: proto.ResolveRequest): Promise<proto.ResolveResponse>; | ||
static generate(request: proto.GenerateKeyRequest): Promise<proto.GenerateKeyResponse>; | ||
static resolve(request: proto.ResolveRequest): Promise<proto.ResolveResponse>; | ||
} | ||
export declare class DIDComm { | ||
static pack(request: proto.PackRequest): Promise<proto.PackResponse>; | ||
static unpack(request: proto.UnpackRequest): Promise<proto.UnpackResponse>; | ||
static sign(request: proto.SignRequest): Promise<proto.SignResponse>; | ||
static verify(request: proto.VerifyRequest): Promise<proto.VerifyResponse>; | ||
static pack(request: proto.PackRequest): Promise<proto.PackResponse>; | ||
static unpack(request: proto.UnpackRequest): Promise<proto.UnpackResponse>; | ||
static sign(request: proto.SignRequest): Promise<proto.SignResponse>; | ||
static verify(request: proto.VerifyRequest): Promise<proto.VerifyResponse>; | ||
} | ||
export declare class LdProofs { | ||
static generate( | ||
request: proto.CreateProofRequest | ||
): Promise<proto.CreateProofResponse>; | ||
static convert( | ||
request: proto.VerifyProofRequest | ||
): Promise<proto.VerifyProofResponse>; | ||
static generate(request: proto.CreateProofRequest): Promise<proto.CreateProofResponse>; | ||
static convert(request: proto.VerifyProofRequest): Promise<proto.VerifyProofResponse>; | ||
} | ||
export declare class Oberon { | ||
static createKey( | ||
request: proto.CreateOberonKeyRequest | ||
): Promise<proto.CreateOberonKeyResponse>; | ||
static createToken( | ||
request: proto.CreateOberonTokenRequest | ||
): Promise<proto.CreateOberonTokenResponse>; | ||
static createProof( | ||
request: proto.CreateOberonProofRequest | ||
): Promise<proto.CreateOberonProofResponse>; | ||
static verifyProof( | ||
request: proto.VerifyOberonProofRequest | ||
): Promise<proto.VerifyOberonProofResponse>; | ||
static blindToken( | ||
request: proto.BlindOberonTokenRequest | ||
): Promise<proto.BlindOberonTokenResponse>; | ||
static unblindToken( | ||
request: proto.UnBlindOberonTokenRequest | ||
): Promise<proto.UnBlindOberonTokenResponse>; | ||
static createKey(request: proto.CreateOberonKeyRequest): Promise<proto.CreateOberonKeyResponse>; | ||
static createToken(request: proto.CreateOberonTokenRequest): Promise<proto.CreateOberonTokenResponse>; | ||
static createProof(request: proto.CreateOberonProofRequest): Promise<proto.CreateOberonProofResponse>; | ||
static verifyProof(request: proto.VerifyOberonProofRequest): Promise<proto.VerifyOberonProofResponse>; | ||
static blindToken(request: proto.BlindOberonTokenRequest): Promise<proto.BlindOberonTokenResponse>; | ||
static unblindToken(request: proto.UnBlindOberonTokenRequest): Promise<proto.UnBlindOberonTokenResponse>; | ||
} | ||
export declare class Hashing { | ||
static blake3Hash( | ||
request: proto.Blake3HashRequest | ||
): Promise<proto.Blake3HashResponse>; | ||
static blake3KeyedHash( | ||
request: proto.Blake3KeyedHashRequest | ||
): Promise<proto.Blake3KeyedHashResponse>; | ||
static blake3DeriveKey( | ||
request: proto.Blake3DeriveKeyRequest | ||
): Promise<proto.Blake3DeriveKeyResponse>; | ||
static sha256Hash( | ||
request: proto.SHA256HashRequest | ||
): Promise<proto.SHA256HashResponse>; | ||
static blake3Hash(request: proto.Blake3HashRequest): Promise<proto.Blake3HashResponse>; | ||
static blake3KeyedHash(request: proto.Blake3KeyedHashRequest): Promise<proto.Blake3KeyedHashResponse>; | ||
static blake3DeriveKey(request: proto.Blake3DeriveKeyRequest): Promise<proto.Blake3DeriveKeyResponse>; | ||
static sha256Hash(request: proto.SHA256HashRequest): Promise<proto.SHA256HashResponse>; | ||
} |
387
lib/index.js
@@ -1,98 +0,307 @@ | ||
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Hashing = exports.Oberon = exports.LdProofs = exports.DIDComm = exports.DIDKey = void 0; | ||
const native = __importStar(require("@trinsic/okapi-node")); | ||
const proto = __importStar(require("@trinsic/okapi-proto")); | ||
__exportStar(require("@trinsic/okapi-proto"), exports); | ||
class DIDKey { | ||
static generate(request) { | ||
return Promise.resolve(proto.GenerateKeyResponse.deserializeBinary(native.didkey_generate(request.serializeBinary()))); | ||
} | ||
static resolve(request) { | ||
return Promise.resolve(proto.ResolveResponse.deserializeBinary(native.didkey_resolve(request.serializeBinary()))); | ||
} | ||
import * as proto from "./proto"; | ||
export * from "./proto"; | ||
// Type information for exported functions | ||
// import * as native from "./native_node/okapi_wasm" | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
var native; | ||
var initialized = false; | ||
function initialize() { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (!!initialized) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, import("./native_node/okapi_wasm")]; | ||
case 1: | ||
// Using the package.json "browser" tag, we can override this to use the `native_web` version. | ||
native = _a.sent(); | ||
initialized = true; | ||
_a.label = 2; | ||
case 2: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
} | ||
exports.DIDKey = DIDKey; | ||
class DIDComm { | ||
static pack(request) { | ||
return Promise.resolve(proto.PackResponse.deserializeBinary(native.didcomm_pack(request.serializeBinary()))); | ||
var DIDKey = /** @class */ (function () { | ||
function DIDKey() { | ||
} | ||
static unpack(request) { | ||
return Promise.resolve(proto.UnpackResponse.deserializeBinary(native.didcomm_unpack(request.serializeBinary()))); | ||
DIDKey.generate = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.GenerateKeyResponse.decode(native.didkey_generate(proto.GenerateKeyRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
DIDKey.resolve = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.ResolveResponse.decode(native.didkey_resolve(proto.ResolveRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return DIDKey; | ||
}()); | ||
export { DIDKey }; | ||
var DIDComm = /** @class */ (function () { | ||
function DIDComm() { | ||
} | ||
static sign(request) { | ||
return Promise.resolve(proto.SignResponse.deserializeBinary(native.didcomm_sign(request.serializeBinary()))); | ||
DIDComm.pack = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.PackResponse.decode(native.didcomm_pack(proto.PackRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
DIDComm.unpack = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.UnpackResponse.decode(native.didcomm_unpack(proto.UnpackRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
DIDComm.sign = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.SignResponse.decode(native.didcomm_sign(proto.SignRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
DIDComm.verify = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.VerifyResponse.decode(native.didcomm_verify(proto.VerifyRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return DIDComm; | ||
}()); | ||
export { DIDComm }; | ||
var LdProofs = /** @class */ (function () { | ||
function LdProofs() { | ||
} | ||
static verify(request) { | ||
return Promise.resolve(proto.VerifyResponse.deserializeBinary(native.didcomm_verify(request.serializeBinary()))); | ||
LdProofs.generate = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.CreateProofResponse.decode(native.ldproofs_create_proof(proto.CreateProofRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
LdProofs.convert = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.VerifyProofResponse.decode(native.ldproofs_verify_proof(proto.VerifyProofRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return LdProofs; | ||
}()); | ||
export { LdProofs }; | ||
var Oberon = /** @class */ (function () { | ||
function Oberon() { | ||
} | ||
} | ||
exports.DIDComm = DIDComm; | ||
class LdProofs { | ||
static generate(request) { | ||
return Promise.resolve(proto.CreateProofResponse.deserializeBinary(native.ldproofs_create_proof(request.serializeBinary()))); | ||
Oberon.createKey = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.CreateOberonKeyResponse.decode(native.oberon_create_key(proto.CreateOberonKeyRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Oberon.createToken = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.CreateOberonTokenResponse.decode(native.oberon_create_token(proto.CreateOberonTokenRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Oberon.createProof = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.CreateOberonProofResponse.decode(native.oberon_create_proof(proto.CreateOberonProofRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Oberon.verifyProof = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.VerifyOberonProofResponse.decode(native.oberon_verify_proof(proto.VerifyOberonProofRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Oberon.blindToken = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.BlindOberonTokenResponse.decode(native.oberon_blind_token(proto.BlindOberonTokenRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Oberon.unblindToken = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.UnBlindOberonTokenResponse.decode(native.oberon_unblind_token(proto.UnBlindOberonTokenRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return Oberon; | ||
}()); | ||
export { Oberon }; | ||
var Hashing = /** @class */ (function () { | ||
function Hashing() { | ||
} | ||
static convert(request) { | ||
return Promise.resolve(proto.VerifyProofResponse.deserializeBinary(native.ldproofs_verify_proof(request.serializeBinary()))); | ||
} | ||
} | ||
exports.LdProofs = LdProofs; | ||
class Oberon { | ||
static createKey(request) { | ||
return Promise.resolve(proto.CreateOberonKeyResponse.deserializeBinary(native.oberon_create_key(request.serializeBinary()))); | ||
} | ||
static createToken(request) { | ||
return Promise.resolve(proto.CreateOberonTokenResponse.deserializeBinary(native.oberon_create_token(request.serializeBinary()))); | ||
} | ||
static createProof(request) { | ||
return Promise.resolve(proto.CreateOberonProofResponse.deserializeBinary(native.oberon_create_proof(request.serializeBinary()))); | ||
} | ||
static verifyProof(request) { | ||
return Promise.resolve(proto.VerifyOberonProofResponse.deserializeBinary(native.oberon_verify_proof(request.serializeBinary()))); | ||
} | ||
static blindToken(request) { | ||
return Promise.resolve(proto.BlindOberonTokenResponse.deserializeBinary(native.oberon_blind_token(request.serializeBinary()))); | ||
} | ||
static unblindToken(request) { | ||
return Promise.resolve(proto.UnBlindOberonTokenResponse.deserializeBinary(native.oberon_unblind_token(request.serializeBinary()))); | ||
} | ||
} | ||
exports.Oberon = Oberon; | ||
class Hashing { | ||
static blake3Hash(request) { | ||
return Promise.resolve(proto.Blake3HashResponse.deserializeBinary(native.blake3_hash(request.serializeBinary()))); | ||
} | ||
static blake3KeyedHash(request) { | ||
return Promise.resolve(proto.Blake3KeyedHashResponse.deserializeBinary(native.blake3_keyed_hash(request.serializeBinary()))); | ||
} | ||
static blake3DeriveKey(request) { | ||
return Promise.resolve(proto.Blake3DeriveKeyResponse.deserializeBinary(native.blake3_derive_key(request.serializeBinary()))); | ||
} | ||
static sha256Hash(request) { | ||
return Promise.resolve(proto.SHA256HashResponse.deserializeBinary(native.sha256_hash(request.serializeBinary()))); | ||
} | ||
} | ||
exports.Hashing = Hashing; | ||
Hashing.blake3Hash = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.Blake3HashResponse.decode(native.blake3_hash(proto.Blake3HashRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Hashing.blake3KeyedHash = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.Blake3KeyedHashResponse.decode(native.blake3_keyed_hash(proto.Blake3KeyedHashRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Hashing.blake3DeriveKey = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.Blake3DeriveKeyResponse.decode(native.blake3_derive_key(proto.Blake3DeriveKeyRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Hashing.sha256Hash = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.SHA256HashResponse.decode(native.sha256_hash(proto.SHA256HashRequest.encode(request).finish()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return Hashing; | ||
}()); | ||
export { Hashing }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@trinsic/okapi", | ||
"version": "1.4.1", | ||
"description": "", | ||
"version": "1.6.0-rc1", | ||
"description": "Okapi native binaries wrapper for node and web.", | ||
"browser": { | ||
"./lib/native_node/okapi_wasm.js": "./lib/native_browser/okapi_wasm.js", | ||
"./lib/native_node/okapi_wasm_bg.wasm": false | ||
}, | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"browser": { | ||
"./lib/index.js": "./lib/index.web.js" | ||
}, | ||
"files": [ | ||
@@ -14,23 +15,66 @@ "lib/*" | ||
"scripts": { | ||
"build": "npm run build:node && npm run build:browser", | ||
"build:node": "npx tsc -p tsconfig.node.json", | ||
"build:browser": "npx tsc -p tsconfig.browser.json", | ||
"test": "ava --verbose" | ||
"build": "npm run build:proto && npm run build:wasm && npm run build:node && npm run build:browser", | ||
"build:proto": "pwsh ./Generate-Proto.ps1", | ||
"build:node": "npx tsc -p tsconfig.node.json && copyfiles -u 1 src/native_node/* ./lib", | ||
"build:browser": "npx tsc -p tsconfig.browser.json && copyfiles -u 1 src/native_browser/* ./lib", | ||
"build:wasm": "npm run build:wasm:node && npm run build:wasm:browser", | ||
"build:wasm:node": "npx wasm-pack build --target nodejs --out-dir packages/okapi/src/native_node && npm run build:clean", | ||
"build:wasm:browser": "npx wasm-pack build --target bundler --out-dir packages/okapi/src/native_browser && npm run build:clean", | ||
"build:clean": "rimraf ./src/native_*/package.json ./src/native_*/README.md ./src/native_*/.gitignore ./src/native_*/LICENSE", | ||
"clean:all": "rimraf ./src/native_*", | ||
"test:node": "ts-node --project tsconfig.node.json ./node_modules/jasmine/bin/jasmine --config=./spec/support/jasmine.json", | ||
"test:browser": "karma start", | ||
"rename:node": "npx change-package-name @trinsic/okapi-node", | ||
"rename:browser": "npx change-package-name @trinsic/okapi-web" | ||
}, | ||
"author": "Tomislav Markovski", | ||
"author": "Trinsic", | ||
"contributors": [ | ||
{ | ||
"name": "Michael Black", | ||
"email": "michaelblack117@gmail.com" | ||
}, | ||
{ | ||
"name": "Tomislav Markovski", | ||
"email": "tmarkovski@gmail.com" | ||
}, | ||
{ | ||
"name": "Scott Phillips", | ||
"email": "polygonguru@gmail.com" | ||
} | ||
], | ||
"license": "ISC", | ||
"dependencies": { | ||
"@trinsic/okapi-node": "^1.4.1", | ||
"@trinsic/okapi-proto": "^1.4.1", | ||
"@trinsic/okapi-web": "^1.4.1", | ||
"google-protobuf": "^3.14.0-rc.3" | ||
"google-protobuf": "^3.20.1", | ||
"long": "^5.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/google-protobuf": "^3.7.4", | ||
"@types/node": "^14.14.7", | ||
"ava": "^3.15.0", | ||
"copyfiles": "^2.4.0", | ||
"@types/google-protobuf": "^3.15.6", | ||
"@types/jasmine": "^4.0.3", | ||
"@types/karma": "^6.3.3", | ||
"@types/karma-webpack": "^2.0.11", | ||
"@types/node": "^17.0.31", | ||
"change-package-name": "^1.0.5", | ||
"chromedriver": "^101.0.0", | ||
"copyfiles": "^2.4.1", | ||
"esm": "^3.2.25", | ||
"expect": "^28.1.0", | ||
"http-serve": "^1.0.1", | ||
"typescript": "^4.0.5" | ||
"jasmine": "^4.1.0", | ||
"jasmine-core": "^4.1.0", | ||
"jasmine-spec-reporter": "^7.0.0", | ||
"karma": "^6.3.19", | ||
"karma-chrome-launcher": "^3.1.1", | ||
"karma-jasmine": "^5.0.0", | ||
"karma-jasmine-html-reporter": "^1.7.0", | ||
"karma-sourcemap-loader": "^0.3.8", | ||
"karma-typescript": "^5.5.3", | ||
"karma-webpack": "^5.0.0", | ||
"recursive-copy-cli": "^1.0.20", | ||
"ts-loader": "^9.3.0", | ||
"ts-node": "^10.7.0", | ||
"ts-proto": "^1.112.0", | ||
"typescript": "^4.6.4", | ||
"wasm-pack": "^0.10.2", | ||
"webpack": "^5.72.0", | ||
"webpack-cli": "^4.9.2" | ||
}, | ||
@@ -41,9 +85,3 @@ "repository": { | ||
"directory": "wasm/packages/okapi" | ||
}, | ||
"ava": { | ||
"require": [ | ||
"esm" | ||
] | ||
}, | ||
"gitHead": "92adda0274f8ea0d3a4437f484921a8a75455c95" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
4629791
2
41
0
5676
1
4
29
2
2
3
+ Addedlong@^5.2.0
- Removed@trinsic/okapi-node@^1.4.1
- Removed@trinsic/okapi-proto@^1.4.1
- Removed@trinsic/okapi-web@^1.4.1
- Removed@protobufjs/aspromise@1.1.2(transitive)
- Removed@protobufjs/base64@1.1.2(transitive)
- Removed@protobufjs/codegen@2.0.4(transitive)
- Removed@protobufjs/eventemitter@1.1.0(transitive)
- Removed@protobufjs/fetch@1.1.0(transitive)
- Removed@protobufjs/float@1.0.2(transitive)
- Removed@protobufjs/inquire@1.1.0(transitive)
- Removed@protobufjs/path@1.1.2(transitive)
- Removed@protobufjs/pool@1.1.0(transitive)
- Removed@protobufjs/utf8@1.1.0(transitive)
- Removed@trinsic/okapi-node@1.6.2(transitive)
- Removed@trinsic/okapi-proto@1.4.1(transitive)
- Removed@types/node@22.12.0(transitive)
- Removedprotobufjs@7.4.0(transitive)
- Removedundici-types@6.20.0(transitive)
Updatedgoogle-protobuf@^3.20.1