@3id/common
Advanced tools
Comparing version 0.3.0 to 0.4.0-alpha.0
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -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" | ||
} |
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
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
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
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2
1
0
Yes
8218
12
153
1
+ Addederrors-utils@0.2.1(transitive)
+ Addeduint8arrays@3.1.1(transitive)
- Removederrors-utils@0.1.0(transitive)
- Removeduint8arrays@2.1.10(transitive)
Updatederrors-utils@^0.2.0
Updateduint8arrays@^3.0.0