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

@usecapsule/user-management-client

Package Overview
Dependencies
Maintainers
13
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usecapsule/user-management-client - npm Package Compare versions

Comparing version 0.17.0 to 0.18.0

54

dist/client.js

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

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -46,22 +47,27 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
import axios from 'axios';
export var USER_NOT_VERIFIED = 'user must verify biometrics';
export var USER_NOT_AUTHENTICATED_ERROR = 'user must be authenticated';
export var USER_NOT_MATCHING_ERROR = 'route param userId must match session userId';
export var PublicKeyStatus;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.KeyType = exports.EncryptorType = exports.Chain = exports.SignatureScheme = exports.PublicKeyType = exports.PublicKeyStatus = exports.USER_NOT_MATCHING_ERROR = exports.USER_NOT_AUTHENTICATED_ERROR = exports.USER_NOT_VERIFIED = void 0;
var axios_1 = __importDefault(require("axios"));
exports.USER_NOT_VERIFIED = 'user must verify biometrics';
exports.USER_NOT_AUTHENTICATED_ERROR = 'user must be authenticated';
exports.USER_NOT_MATCHING_ERROR = 'route param userId must match session userId';
var PublicKeyStatus;
(function (PublicKeyStatus) {
PublicKeyStatus["PENDING"] = "PENDING";
PublicKeyStatus["COMPLETE"] = "COMPLETE";
})(PublicKeyStatus || (PublicKeyStatus = {}));
export var PublicKeyType;
})(PublicKeyStatus = exports.PublicKeyStatus || (exports.PublicKeyStatus = {}));
var PublicKeyType;
(function (PublicKeyType) {
PublicKeyType["MOBILE"] = "MOBILE";
PublicKeyType["WEB"] = "WEB";
})(PublicKeyType || (PublicKeyType = {}));
export var SignatureScheme;
})(PublicKeyType = exports.PublicKeyType || (exports.PublicKeyType = {}));
var SignatureScheme;
(function (SignatureScheme) {
SignatureScheme["DKLS"] = "DKLS";
SignatureScheme["CGGMP"] = "CGGMP";
})(SignatureScheme || (SignatureScheme = {}));
export var Chain;
})(SignatureScheme = exports.SignatureScheme || (exports.SignatureScheme = {}));
var Chain;
(function (Chain) {

@@ -71,4 +77,4 @@ Chain["ETH"] = "ETH";

Chain["MATIC"] = "MATIC";
})(Chain || (Chain = {}));
export var EncryptorType;
})(Chain = exports.Chain || (exports.Chain = {}));
var EncryptorType;
(function (EncryptorType) {

@@ -78,4 +84,4 @@ EncryptorType["USER"] = "USER";

EncryptorType["BIOMETRICS"] = "BIOMETRICS";
})(EncryptorType || (EncryptorType = {}));
export var KeyType = {
})(EncryptorType = exports.EncryptorType || (exports.EncryptorType = {}));
exports.KeyType = {
USER: 'USER',

@@ -393,5 +399,5 @@ RECOVERY: 'RECOVERY',

if (retrieveSessionCookie) {
var defaultTransformRequest = Array.isArray(axios.defaults.transformRequest) ?
axios.defaults.transformRequest :
[axios.defaults.transformRequest];
var defaultTransformRequest = Array.isArray(axios_1.default.defaults.transformRequest) ?
axios_1.default.defaults.transformRequest :
[axios_1.default.defaults.transformRequest];
axiosConfig.transformRequest = __spreadArray([

@@ -411,5 +417,5 @@ function (data, headers) {

if (persistSessionCookie) {
var defaultTransformResponse = Array.isArray(axios.defaults.transformResponse) ?
axios.defaults.transformResponse :
[axios.defaults.transformResponse];
var defaultTransformResponse = Array.isArray(axios_1.default.defaults.transformResponse) ?
axios_1.default.defaults.transformResponse :
[axios_1.default.defaults.transformResponse];
axiosConfig.transformResponse = __spreadArray(__spreadArray([], defaultTransformResponse, true), [

@@ -424,5 +430,5 @@ function (data, headers) {

}
this.baseRequest = axios.create(axiosConfig);
this.baseRequest = axios_1.default.create(axiosConfig);
if (opts === null || opts === void 0 ? void 0 : opts.useFetchAdapter) {
axios.defaults.adapter = function (config) {
axios_1.default.defaults.adapter = function (config) {
return fetch(config.baseURL + config.url.substring(1), {

@@ -807,3 +813,3 @@ method: config.method,

}());
export default Client;
exports.default = Client;
// GET /users/:userId/wallets/:walletId/send (NOTE: endpoint not found in server)

@@ -810,0 +816,0 @@ // NOT USED IN DEMO

{
"name": "@usecapsule/user-management-client",
"version": "0.17.0",
"version": "0.18.0",
"main": "dist/client.js",

@@ -5,0 +5,0 @@ "types": "dist/client.d.ts",

@@ -18,3 +18,3 @@ {

"noFallthroughCasesInSwitch": true,
"module": "esnext",
"module": "CommonJS",
"moduleResolution": "node",

@@ -21,0 +21,0 @@ "resolveJsonModule": true,

Sorry, the diff of this file is not supported yet

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