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

@3id/common

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@3id/common - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0-alpha.0

dist/errors.js

0

dist/errors.d.ts

@@ -0,0 +0,0 @@ /// <reference types="node" />

8

dist/index.d.ts

@@ -1,4 +0,4 @@

export { ThreeIDError, assert } from './errors';
export * from './types';
export * from './utils';
export * from './network';
export { ThreeIDError, assert } from './errors.js';
export * from './types.js';
export * from './utils.js';
export * from './network.js';

@@ -1,8 +0,4 @@

'use strict'
if (process.env.NODE_ENV === 'production') {
module.exports = require('./common.cjs.production.min.js')
} else {
module.exports = require('./common.cjs.development.js')
}
export { ThreeIDError, assert } from './errors.js';
export * from './types.js';
export * from './utils.js';
export * from './network.js';

@@ -1,2 +0,2 @@

import { Network } from './types';
import { Network } from './types.js';
export declare const VALID_NETWORKS: string[];

@@ -7,12 +7,15 @@ export declare const DEV_API_URL = "https://ceramic-private-dev.3boxlabs.com";

export declare const LOCAL_API_URL = "http://localhost:7007";
export declare const BASE_IFRAME_DEV_URL = "https://app-dev.3idconnect.org";
export declare const BASE_IFRAME_CLAY_URL = "https://app-clay.3idconnect.org";
export declare const BASE_IFRAME_MAIN_URL = "https://app.3idconnect.org";
export declare const BASE_IFRAME_LOCAL_URL = "http://localhost:30001";
export declare const DEFAULT_IFRAME_MANAGE_PATH = "/management/index.html";
export declare const BASE_IFRAME_DEV_URL: string;
export declare const BASE_IFRAME_CLAY_URL: string;
export declare const BASE_IFRAME_MAIN_URL: string;
export declare const BASE_IFRAME_LOCAL_URL: string;
export declare const DEFAULT_IFRAME_MANAGE_PATH = "/management.html";
export declare const DEFAULT_IFRAME_PATH = "/index.html";
export declare const CERAMIC_NETWORK_API: Record<Network, string>;
export declare const CERAMIC_NETWORK_IFRAME: Record<Network, string>;
export declare const iframeManageUrl: (base: string) => string;
export declare const iframeUrl: (base: string) => string;
export declare const iframeByNetwork: (network: Network) => string;
export declare const apiByNetwork: (network: Network) => string;
export declare const isValidNetwork: (network: string) => boolean;
export declare const DIDRPCNameSpace = "3id-connect-did-provider";

@@ -0,0 +0,0 @@ /// <reference types="node" />

export declare function fromHex(hex: string): Uint8Array;
export declare function toHex(bytes: Uint8Array): string;
{
"name": "@3id/common",
"version": "0.3.0",
"author": "Ceramic Studio",
"version": "0.4.0-alpha.0",
"author": "3Box Labs",
"license": "(Apache-2.0 OR MIT)",
"homepage": "https://github.com/ceramicstudio/3id-connect#readme",
"homepage": "https://github.com/ceramicstudio/js-3id#readme",
"keywords": [

@@ -16,9 +16,7 @@ "3id",

},
"type": "module",
"main": "dist/index.js",
"module": "dist/common.esm.js",
"typings": "dist/index.d.ts",
"types": "dist/index.d.ts",
"exports": {
"require": "./dist/index.js",
"import": "./dist/common.esm.js",
"default": "./dist/common.esm.js"
".": "./dist/index.js"
},

@@ -29,24 +27,39 @@ "files": [

"engines": {
"node": ">=12"
"node": ">=16"
},
"sideEffects": false,
"scripts": {
"start": "tsdx watch",
"build": "tsdx build --tsconfig tsconfig.build.json",
"test": "tsdx test",
"lint": "tsdx lint src test --fix",
"prepublish": "npm run build",
"build:clean": "del dist",
"build:js": "swc src -d ./dist --config-file ../../.swcrc",
"build:types": "tsc --emitDeclarationOnly --skipLibCheck",
"build": "yarn build:clean && yarn build:types && yarn build:js",
"lint": "eslint src --fix",
"prepare": "yarn build",
"prepublishOnly": "package-check"
},
"dependencies": {
"errors-utils": "^0.1.0",
"uint8arrays": "^2.1.5"
"errors-utils": "^0.2.0",
"uint8arrays": "^3.0.0"
},
"devDependencies": {
"did-jwt": "^5.0.1",
"rpc-utils": "^0.4.0",
"tslib": "^2.1.0"
"did-jwt": "^5.12.4",
"rpc-utils": "^0.6.1"
},
"publishConfig": {
"access": "public"
}
"jest": {
"extensionsToTreatAsEsm": [
".ts"
],
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"transform": {
"^.+\\.(t|j)s$": [
"@swc/jest",
{
"root": "../.."
}
]
}
},
"gitHead": "4ae29bcddf78fdeac51d50d378bc105171a81522"
}
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