@nicheprotocol/darwin-sdk
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -11,3 +11,5 @@ "use strict"; | ||
pub = publicKey; | ||
secret = privateKey; | ||
if (privateKey) { | ||
secret = privateKey; | ||
} | ||
}; | ||
@@ -14,0 +16,0 @@ exports.init = init; |
@@ -13,3 +13,3 @@ "use strict"; | ||
const key = (0, secret_1.get)(); | ||
if (!key?.secretKey) { | ||
if (!(key === null || key === void 0 ? void 0 : key.secretKey)) { | ||
throw new Error(`Darwin not initialized with private key. Invoke init() first.`); | ||
@@ -27,3 +27,3 @@ } | ||
const key = (0, secret_1.get)(); | ||
if (!key?.publicKey) { | ||
if (!(key === null || key === void 0 ? void 0 : key.publicKey)) { | ||
throw new Error(`Darwin not initialized with public key. Invoke init() first.`); | ||
@@ -30,0 +30,0 @@ } |
{ | ||
"name": "@nicheprotocol/darwin-sdk", | ||
"version": "0.0.2", | ||
"main": "dist/index.js", | ||
"types": "dist/types.d.ts", | ||
"version": "0.0.3", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"license": "MIT", | ||
@@ -7,0 +7,0 @@ "scripts": { |
@@ -10,3 +10,5 @@ let pub = ''; | ||
pub = publicKey; | ||
secret = privateKey; | ||
if (privateKey) { | ||
secret = privateKey; | ||
} | ||
}; | ||
@@ -13,0 +15,0 @@ |
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"target": "ES2022", | ||
"target": "es6", | ||
"lib": ["ESNext", "DOM", "ES6", "ES7"], | ||
"declaration": true, | ||
"outDir": "./dist" | ||
"outDir": "./dist", | ||
"strict": true, | ||
"esModuleInterop": true, | ||
}, | ||
@@ -8,0 +11,0 @@ "include": [ |
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
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
118196
308