Huge News!Announcing our $40M Series B led by Abstract Ventures.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 0.1.9 to 0.1.10

11

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

@@ -476,4 +476,4 @@ 'use strict';

var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(event) {
var _this$callbacks7, _this$callbacks8, _this$callbacks9, _this$callbacks10;
var kycData, dataOnInit, signedMessage, _frames, _kycData$data, txHash, _frames2;
var _this$callbacks7, _this$callbacks8, _this$callbacks10;
var kycData, dataOnInit, signedMessage, _frames, _this$callbacks9, txHash, _frames2;
return _regeneratorRuntime().wrap(function _callee$(_context) {

@@ -544,5 +544,6 @@ while (1) switch (_context.prev = _context.next) {

// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
!_this.identifier || _this.identifier === (kycData === null || kycData === void 0 ? void 0 : kycData.identifier)) && (_this$callbacks9 = _this.callbacks) !== null && _this$callbacks9 !== void 0 && _this$callbacks9.offChainShareCompletionCallback) {
_this.callbacks.offChainShareCompletionCallback( // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
kycData === null || kycData === void 0 ? void 0 : (_kycData$data = kycData.data) === null || _kycData$data === void 0 ? void 0 : _kycData$data.isValid);
!_this.identifier || _this.identifier === (kycData === null || kycData === void 0 ? void 0 : kycData.identifier))) {
if ((_this$callbacks9 = _this.callbacks) !== null && _this$callbacks9 !== void 0 && _this$callbacks9.offChainShareCompletionCallback) {
_this.callbacks.offChainShareCompletionCallback();
}
_this._closeFlow();

@@ -549,0 +550,0 @@ }

@@ -476,4 +476,4 @@ 'use strict';

var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(event) {
var _this$callbacks7, _this$callbacks8, _this$callbacks9, _this$callbacks10;
var kycData, dataOnInit, signedMessage, _frames, _kycData$data, txHash, _frames2;
var _this$callbacks7, _this$callbacks8, _this$callbacks10;
var kycData, dataOnInit, signedMessage, _frames, _this$callbacks9, txHash, _frames2;
return _regeneratorRuntime().wrap(function _callee$(_context) {

@@ -544,5 +544,6 @@ while (1) switch (_context.prev = _context.next) {

// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
!_this.identifier || _this.identifier === (kycData === null || kycData === void 0 ? void 0 : kycData.identifier)) && (_this$callbacks9 = _this.callbacks) !== null && _this$callbacks9 !== void 0 && _this$callbacks9.offChainShareCompletionCallback) {
_this.callbacks.offChainShareCompletionCallback( // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
kycData === null || kycData === void 0 ? void 0 : (_kycData$data = kycData.data) === null || _kycData$data === void 0 ? void 0 : _kycData$data.isValid);
!_this.identifier || _this.identifier === (kycData === null || kycData === void 0 ? void 0 : kycData.identifier))) {
if ((_this$callbacks9 = _this.callbacks) !== null && _this$callbacks9 !== void 0 && _this$callbacks9.offChainShareCompletionCallback) {
_this.callbacks.offChainShareCompletionCallback();
}
_this._closeFlow();

@@ -549,0 +550,0 @@ }

@@ -472,4 +472,4 @@ import { z } from 'zod';

var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(event) {
var _this$callbacks7, _this$callbacks8, _this$callbacks9, _this$callbacks10;
var kycData, dataOnInit, signedMessage, _frames, _kycData$data, txHash, _frames2;
var _this$callbacks7, _this$callbacks8, _this$callbacks10;
var kycData, dataOnInit, signedMessage, _frames, _this$callbacks9, txHash, _frames2;
return _regeneratorRuntime().wrap(function _callee$(_context) {

@@ -540,5 +540,6 @@ while (1) switch (_context.prev = _context.next) {

// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
!_this.identifier || _this.identifier === (kycData === null || kycData === void 0 ? void 0 : kycData.identifier)) && (_this$callbacks9 = _this.callbacks) !== null && _this$callbacks9 !== void 0 && _this$callbacks9.offChainShareCompletionCallback) {
_this.callbacks.offChainShareCompletionCallback( // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
kycData === null || kycData === void 0 ? void 0 : (_kycData$data = kycData.data) === null || _kycData$data === void 0 ? void 0 : _kycData$data.isValid);
!_this.identifier || _this.identifier === (kycData === null || kycData === void 0 ? void 0 : kycData.identifier))) {
if ((_this$callbacks9 = _this.callbacks) !== null && _this$callbacks9 !== void 0 && _this$callbacks9.offChainShareCompletionCallback) {
_this.callbacks.offChainShareCompletionCallback();
}
_this._closeFlow();

@@ -545,0 +546,0 @@ }

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

onZkCallback: (zkCallBack: (data: ethers.PopulatedTransaction) => Promise<string>) => void;
onOffChainShareCompletition: (offChainShareCompletionCallback: (isValid: boolean) => void) => void;
onOffChainShareCompletition: (offChainShareCompletionCallback: () => void) => void;
onKycCompletion: (kycCompletionCallback: (idScanVerifiableCredential: any, id3VerifiableCredential: any) => void) => void;

@@ -31,0 +31,0 @@ onCloseScreen: (onCloseScreenCallback: () => Promise<string>) => void;

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

onCloseScreenCallback?: () => Promise<string>;
offChainShareCompletionCallback?: (isValid: boolean) => void;
offChainShareCompletionCallback?: () => void;
kycCompletionCallback?: (idScanVerifiableCredential: any, id3VerifiableCredential: any) => void;

@@ -12,0 +12,0 @@ };

@@ -26,4 +26,4 @@ import { type ethers } from "ethers";

onKycCompletion: (kycCompletionCallback: (idScanVerifiableCredential: any, id3VerifiableCredential: any) => void) => void;
onOffChainShareCompletition: (offChainShareCompletionCallback: (isValid: boolean) => void) => void;
onOffChainShareCompletition: (offChainShareCompletionCallback: () => void) => void;
onCloseScreen: (onCloseScreenCallback: () => Promise<string>) => void;
}
{
"name": "@nexeraid/kyc-sdk",
"version": "0.1.9",
"version": "0.1.10",
"description": "Nexera ID KYC Verification SDK",

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

"prepare:release": "sed -i '18d' package.json",
"prepare:release:mac": "sed -i '' '18d' package.json"
"prepare:release:mac": "sed -i '' '18d' package.json",
"publish:public": "pnpm run prepare:release && publish --access=public --no-git-checks --registry https://registry.npmjs.org/",
"publish:public:mac": "pnpm run prepare:release:mac && publish --access=public --no-git-checks --registry https://registry.npmjs.org/"
},

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

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

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

"prepare:release": "sed -i '18d' package.json",
"prepare:release:mac": "sed -i '' '18d' package.json"
"prepare:release:mac": "sed -i '' '18d' package.json",
"publish:public": "pnpm run prepare:release && publish --access=public --no-git-checks --registry https://registry.npmjs.org/",
"publish:public:mac": "pnpm run prepare:release:mac && publish --access=public --no-git-checks --registry https://registry.npmjs.org/"
}
}

@@ -36,3 +36,3 @@ # NexeraID KYC SDK

* Handle data from webhook
* At the defined wehbook endpoint, each time an user shares data with you, data with format
* At the defined webhook endpoint, each time an user shares data with you, data with format
* {

@@ -60,3 +60,3 @@ * address: '0x0000000000000000000000000000000000000000',

/*
* Validation result structure could vary accoding the required rules defined, but it will
* Validation result structure could vary according the required rules defined, but it will
* have the necessary flags that determine whether or not the user meets the requirements.

@@ -71,3 +71,3 @@ */

// identifier is optional, but if used, it will be considered for dom element id. Id will be conformed as "kyc-btn-myIdentifier"
const KYC_CLIENT = new KycClient({ idenfifier: "myIdentifier"})
const KYC_CLIENT = new KycClient({ identifier: "myIdentifier"})

@@ -82,2 +82,11 @@ // configure kyc flow callbacks

// optional onOffChainShareCompletition callback
KYC_CLIENT.onOffChainShareCompletition((isValid: boolean) => {
//with this param, you can check if the kyc shared data is valid for the defined rules
if (isValid)
console.log(`Success Off chain data sharing`)
else
console.error(`Off chain share data was invalid`)
})
// optional onZkCallback (mandatory if zk flow will be used)

@@ -90,3 +99,3 @@ KYC_CLIENT.onZkCallback(async (data) => {

// build signing message, needed to safetly store kyc in user's browser
// build signing message, needed to safety store kyc in user's browser
const signingMessage = KycClient.buildSignatureMessage(address)

@@ -93,0 +102,0 @@ const signature = await signMessageAsync({ message: signingMessage })

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