New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nexeraid/kyc-sdk

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nexeraid/kyc-sdk - npm Package Compare versions

Comparing version

to
0.1.6

21

client/dist/nexeraid-kyc-sdk-client.cjs.dev.js

@@ -432,5 +432,2 @@ 'use strict';

}
if (options.askForProofOfResidence) {
_this.askForProofOfResidence = options.askForProofOfResidence;
}
if (options.identityProviders) {

@@ -442,5 +439,2 @@ _this.identityProviders = options.identityProviders;

}
if (options.provider) {
_this.provider = options.provider;
}
if (!_this.alreadyInit) {

@@ -481,3 +475,3 @@ _this._initEvents();

var _this$callbacks6, _this$callbacks7, _this$callbacks8;
var kycData, _this$provider, dataOnInit, signedMessage, _frames, txHash, _frames2;
var kycData, dataOnInit, signedMessage, _frames, txHash, _frames2;
return _regeneratorRuntime().wrap(function _callee$(_context) {

@@ -500,10 +494,4 @@ while (1) switch (_context.prev = _context.next) {

dataOnInit = {
askForProofOfResidence: _this.askForProofOfResidence,
initOnFlow: _this.initOnFlow,
identityProviders: _this.identityProviders,
provider: {
name: _this.provider.name,
legalName: _this.provider.legalName,
website: (_this$provider = _this.provider) === null || _this$provider === void 0 ? void 0 : _this$provider.website
}
identityProviders: _this.identityProviders
}; // eslint-disable-next-line @typescript-eslint/ban-ts-comment

@@ -639,9 +627,4 @@ // @ts-ignore

this.isOpen = false;
this.askForProofOfResidence = false;
this.initOnFlow = "KYC";
this.identityProviders = ["GBG"];
this.provider = {
name: "",
legalName: ""
};
this.styles = ".kyc-sdk-loader-modal{position:fixed;left:0;top:0;width:100%;height:100%;z-index:9999}.kyc-sdk-loader-embed{position:relative;left:0;top:0;width:100%;height:100%;z-index:9999}";

@@ -648,0 +631,0 @@ });

@@ -432,5 +432,2 @@ 'use strict';

}
if (options.askForProofOfResidence) {
_this.askForProofOfResidence = options.askForProofOfResidence;
}
if (options.identityProviders) {

@@ -442,5 +439,2 @@ _this.identityProviders = options.identityProviders;

}
if (options.provider) {
_this.provider = options.provider;
}
if (!_this.alreadyInit) {

@@ -481,3 +475,3 @@ _this._initEvents();

var _this$callbacks6, _this$callbacks7, _this$callbacks8;
var kycData, _this$provider, dataOnInit, signedMessage, _frames, txHash, _frames2;
var kycData, dataOnInit, signedMessage, _frames, txHash, _frames2;
return _regeneratorRuntime().wrap(function _callee$(_context) {

@@ -500,10 +494,4 @@ while (1) switch (_context.prev = _context.next) {

dataOnInit = {
askForProofOfResidence: _this.askForProofOfResidence,
initOnFlow: _this.initOnFlow,
identityProviders: _this.identityProviders,
provider: {
name: _this.provider.name,
legalName: _this.provider.legalName,
website: (_this$provider = _this.provider) === null || _this$provider === void 0 ? void 0 : _this$provider.website
}
identityProviders: _this.identityProviders
}; // eslint-disable-next-line @typescript-eslint/ban-ts-comment

@@ -639,9 +627,4 @@ // @ts-ignore

this.isOpen = false;
this.askForProofOfResidence = false;
this.initOnFlow = "KYC";
this.identityProviders = ["GBG"];
this.provider = {
name: "",
legalName: ""
};
this.styles = ".kyc-sdk-loader-modal{position:fixed;left:0;top:0;width:100%;height:100%;z-index:9999}.kyc-sdk-loader-embed{position:relative;left:0;top:0;width:100%;height:100%;z-index:9999}";

@@ -648,0 +631,0 @@ });

@@ -428,5 +428,2 @@ import { z } from 'zod';

}
if (options.askForProofOfResidence) {
_this.askForProofOfResidence = options.askForProofOfResidence;
}
if (options.identityProviders) {

@@ -438,5 +435,2 @@ _this.identityProviders = options.identityProviders;

}
if (options.provider) {
_this.provider = options.provider;
}
if (!_this.alreadyInit) {

@@ -477,3 +471,3 @@ _this._initEvents();

var _this$callbacks6, _this$callbacks7, _this$callbacks8;
var kycData, _this$provider, dataOnInit, signedMessage, _frames, txHash, _frames2;
var kycData, dataOnInit, signedMessage, _frames, txHash, _frames2;
return _regeneratorRuntime().wrap(function _callee$(_context) {

@@ -496,10 +490,4 @@ while (1) switch (_context.prev = _context.next) {

dataOnInit = {
askForProofOfResidence: _this.askForProofOfResidence,
initOnFlow: _this.initOnFlow,
identityProviders: _this.identityProviders,
provider: {
name: _this.provider.name,
legalName: _this.provider.legalName,
website: (_this$provider = _this.provider) === null || _this$provider === void 0 ? void 0 : _this$provider.website
}
identityProviders: _this.identityProviders
}; // eslint-disable-next-line @typescript-eslint/ban-ts-comment

@@ -635,9 +623,4 @@ // @ts-ignore

this.isOpen = false;
this.askForProofOfResidence = false;
this.initOnFlow = "KYC";
this.identityProviders = ["GBG"];
this.provider = {
name: "",
legalName: ""
};
this.styles = ".kyc-sdk-loader-modal{position:fixed;left:0;top:0;width:100%;height:100%;z-index:9999}.kyc-sdk-loader-embed{position:relative;left:0;top:0;width:100%;height:100%;z-index:9999}";

@@ -644,0 +627,0 @@ });

@@ -7,5 +7,3 @@ import { type ethers } from "ethers";

private baseURL;
private askForProofOfResidence?;
private initOnFlow?;
private provider;
private auth?;

@@ -12,0 +10,0 @@ private callbacks?;

@@ -9,7 +9,2 @@ import { type ethers } from "ethers";

};
export type Provider = {
name: string;
legalName: string;
website?: string;
};
export type KYCSDKInitOptions = {

@@ -19,9 +14,3 @@ auth: Auth;

initOnFlow?: AvailableFlows;
provider: Provider;
identityProviders?: AvailableIdentityProviders[];
dataShareConfig?: {
endpoint: string;
name: string;
description: string;
};
};

@@ -32,3 +21,2 @@ export type DataAvailableOnInit = {

identityProviders?: AvailableIdentityProviders[];
provider: Provider;
};

@@ -35,0 +23,0 @@ export interface IKycClient {

7

dist/package.json
{
"name": "@nexeraid/kyc-sdk",
"version": "0.1.5",
"version": "0.1.6",
"description": "Nexera ID KYC Verification SDK",

@@ -18,3 +18,2 @@ "main": "dist/nexeraprotocol-kyc-sdk.cjs.js",

"scripts": {
"postinstall": "if [ \"$BUILDING_IN_DOCKER\" != \"true\" ]; then preconstruct dev; fi",
"build": "preconstruct build && npm run copy-package-json-to-dist",

@@ -25,3 +24,5 @@ "copy-package-json-to-dist": "copyfiles package.json dist/",

"lint:fix": "pnpm lint --fix",
"type-check": "tsc --noEmit"
"type-check": "tsc --noEmit",
"prepare:release": "sed -i '18d' package.json",
"prepare:release:mac": "sed -i '' '18d' package.json"
},

@@ -28,0 +29,0 @@ "keywords": [],

{
"name": "@nexeraid/kyc-sdk",
"version": "0.1.5",
"version": "0.1.6",
"description": "Nexera ID KYC Verification SDK",

@@ -25,4 +25,2 @@ "main": "dist/nexeraprotocol-kyc-sdk.cjs.js",

"scripts": {
"postinstall": "if [ \"$BUILDING_IN_DOCKER\" != \"true\" ]; then preconstruct dev; fi",
"build": "preconstruct build && npm run copy-package-json-to-dist",
"copy-package-json-to-dist": "copyfiles package.json dist/",

@@ -32,4 +30,6 @@ "prettier": "prettier './src' --write",

"lint:fix": "pnpm lint --fix",
"type-check": "tsc --noEmit"
"type-check": "tsc --noEmit",
"prepare:release": "sed -i '18d' package.json",
"prepare:release:mac": "sed -i '' '18d' package.json"
}
}

@@ -106,19 +106,21 @@ # NexeraID KYC SDK

},
askForProofOfResidence: true,
initOnFlow: "MANAGEMENT", // flows available: "KYC" | "MANAGEMENT"
provider: {
name: "Provider Name",
legalName: "Provider Legal Name",
},
dataShareConfig: {
description:
"You are about to share your data with this provider, do you agree?",
endpoint: "https://provider.com/applicants/kyc",
name: "Provider Name",
},
})
```
```javascript
// In addition to the KYC request, the sdk also provides a management of your kyc. It can be initialized as follows
KYC_CLIENT.init({
auth: {
accessToken,
signingMessage,
signature,
},
initOnFlow: "MANAGEMENT", // flows available: "KYC" | "MANAGEMENT"
})
```
### Keep Updated
For the latest changes, see the [CHANGELOG](./CHANGELOG.md).