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

@nicheprotocol/darwin-sdk

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nicheprotocol/darwin-sdk - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

dist/secret.js

@@ -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": [

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