@launchtray/hatch-user-management-client
Advanced tools
Comparing version 0.20.0 to 0.21.0-alpha.0
{ | ||
"files": { | ||
"libraries/hatch-user-management-client/.rush/temp/shrinkwrap-deps.json": "65fbe8f331981d78d3516cc52e4d9b396398de43", | ||
"libraries/hatch-user-management-client/.rush/temp/shrinkwrap-deps.json": "57a38b3e5a17caa781aaad425a230d443da92966", | ||
"libraries/hatch-user-management-client/.eslintrc.js": "36ebe08a077e2e7c3dc25cab3d1e4cb1319e6956", | ||
"libraries/hatch-user-management-client/CHANGELOG.json": "c016a0c5c8af101716791a97f86572ab45c18556", | ||
"libraries/hatch-user-management-client/CHANGELOG.md": "76d025006151e1ff32ae958dc299810229245a4b", | ||
"libraries/hatch-user-management-client/package.json": "b0ad4ec5612e79dac684e0a308b5e145bf7f7aeb", | ||
"libraries/hatch-user-management-client/package.json": "93e3c176e70de34fa0ff9b61f60408f6a43a5db5", | ||
"libraries/hatch-user-management-client/src/RemoteUserManager.ts": "4b46abeddc0da335b7581dcda12fe7415e14896f", | ||
"libraries/hatch-user-management-client/src/UserAttributes.ts": "8245bde103ee55c9a1a4a0efc8ecd2896f7cd256", | ||
"libraries/hatch-user-management-client/src/UserManagementClient.ts": "dec5029eda93b62bf295c0c18a008d65feccb4e8", | ||
"libraries/hatch-user-management-client/src/UserManagementClientSdk.ts": "88c5d8a7d8cc67f4924d04230e83adc5580ec25e", | ||
"libraries/hatch-user-management-client/src/UserManagementClientSdk.ts": "2c4daf87636a1e0f794c7d0debf9cd6b480019de", | ||
"libraries/hatch-user-management-client/src/UserManagementError.ts": "7767446feb0fbeb42b8499518eb46c6c20aa3315", | ||
@@ -13,0 +13,0 @@ "libraries/hatch-user-management-client/src/UserManager.ts": "716f70fef63abd8c10ea524a0cba7431edef19ad", |
@@ -62,3 +62,3 @@ { | ||
"@jridgewell/trace-mapping@0.3.14": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==", | ||
"@launchtray/tsyringe-async@4.3.2": "sha512-Y0bEZASPSFsUBWzFjO31gRQjD/shgJX54WM/swjIiY27N1vGOFp7/7+r+kAK7nbk4u1YAAzUpbf2FQZjFgsw4A==", | ||
"@launchtray/tsyringe-async@4.3.3": "sha512-Q9VHyb3hEnl9GUtoKENE2DeINwHChgWzwcWS9UMTqYVObVKBk8avm5VFfvC4o1t09PBbc58BL+YLFcm+4islhw==", | ||
"@nodelib/fs.scandir@2.1.5": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", | ||
@@ -81,2 +81,3 @@ "@nodelib/fs.stat@2.0.5": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", | ||
"@types/node@16.11.47": "sha512-fpP+jk2zJ4VW66+wAMFoBJlx1bxmBKx4DUFf68UHgdGCOuyUTDlLWqsaNPJh7xhNDykyJ9eIzAygilP/4WoN8g==", | ||
"@types/node@18.11.7": "sha512-LhFTglglr63mNXUSRYD8A+ZAIu5sFqNJ4Y2fPuY7UlrySJH87rRRlhtVmMHplmfk5WkoJGmDjE9oiTfyX94CpQ==", | ||
"@types/prettier@2.6.4": "sha512-fOwvpvQYStpb/zHMx0Cauwywu9yLDmzWiiQBC7gJyq5tYLUXFZvDG7VK1B7WBxxjBJNKFOZ0zLoOQn8vmATbhw==", | ||
@@ -83,0 +84,0 @@ "@types/stack-utils@2.0.1": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", |
@@ -23,9 +23,5 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UserManagementClientSdk = void 0; | ||
const hatch_util_1 = require("@launchtray/hatch-util"); | ||
const cross_fetch_1 = __importDefault(require("cross-fetch")); | ||
const UserManagementClient_1 = require("./UserManagementClient"); | ||
@@ -45,3 +41,3 @@ const UserManagementError_1 = require("./UserManagementError"); | ||
}; | ||
const response = yield (0, cross_fetch_1.default)(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.AUTHENTICATE, { | ||
const response = yield fetch(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.AUTHENTICATE, { | ||
method: 'POST', | ||
@@ -67,3 +63,3 @@ headers: this.buildHeaders(options === null || options === void 0 ? void 0 : options.tenantId), | ||
}; | ||
const response = yield (0, cross_fetch_1.default)(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.START_USER_REGISTRATION, { | ||
const response = yield fetch(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.START_USER_REGISTRATION, { | ||
method: 'POST', | ||
@@ -87,3 +83,3 @@ headers: this.buildHeaders(options === null || options === void 0 ? void 0 : options.tenantId), | ||
}; | ||
const response = yield (0, cross_fetch_1.default)(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.RESEND_USER_REGISTRATION, { | ||
const response = yield fetch(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.RESEND_USER_REGISTRATION, { | ||
method: 'POST', | ||
@@ -108,3 +104,3 @@ headers: this.buildHeaders(options === null || options === void 0 ? void 0 : options.tenantId), | ||
}; | ||
const response = yield (0, cross_fetch_1.default)(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.CONFIRM_USER_REGISTRATION, { | ||
const response = yield fetch(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.CONFIRM_USER_REGISTRATION, { | ||
method: 'POST', | ||
@@ -128,3 +124,3 @@ headers: this.buildHeaders(options === null || options === void 0 ? void 0 : options.tenantId), | ||
}; | ||
const response = yield (0, cross_fetch_1.default)(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.START_PASSWORD_RESET, { | ||
const response = yield fetch(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.START_PASSWORD_RESET, { | ||
method: 'POST', | ||
@@ -150,3 +146,3 @@ headers: this.buildHeaders(options === null || options === void 0 ? void 0 : options.tenantId), | ||
}; | ||
const response = yield (0, cross_fetch_1.default)(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.CONFIRM_PASSWORD_RESET, { | ||
const response = yield fetch(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.CONFIRM_PASSWORD_RESET, { | ||
method: 'POST', | ||
@@ -170,3 +166,3 @@ headers: this.buildHeaders(options === null || options === void 0 ? void 0 : options.tenantId), | ||
}; | ||
const response = yield (0, cross_fetch_1.default)(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.REFRESH_AUTHENTICATION, { | ||
const response = yield fetch(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.REFRESH_AUTHENTICATION, { | ||
method: 'POST', | ||
@@ -190,3 +186,3 @@ headers: this.buildHeaders(options === null || options === void 0 ? void 0 : options.tenantId, accessToken), | ||
}; | ||
const response = yield (0, cross_fetch_1.default)(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.SIGN_OUT_USER, { | ||
const response = yield fetch(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.SIGN_OUT_USER, { | ||
method: 'POST', | ||
@@ -208,3 +204,3 @@ headers: this.buildHeaders(options === null || options === void 0 ? void 0 : options.tenantId, accessToken), | ||
const params = `?userId=${encodeURIComponent(userId)}`; | ||
const response = yield (0, cross_fetch_1.default)(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.GET_USER_ATTRIBUTES + params, { | ||
const response = yield fetch(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.GET_USER_ATTRIBUTES + params, { | ||
method: 'GET', | ||
@@ -228,3 +224,3 @@ headers: this.buildHeaders(options === null || options === void 0 ? void 0 : options.tenantId, accessToken), | ||
}; | ||
const response = yield (0, cross_fetch_1.default)(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.SET_USER_ATTRIBUTES, { | ||
const response = yield fetch(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.SET_USER_ATTRIBUTES, { | ||
method: 'POST', | ||
@@ -245,3 +241,3 @@ headers: this.buildHeaders(options === null || options === void 0 ? void 0 : options.tenantId, accessToken), | ||
this.logger.debug('Requesting to get user info...'); | ||
const response = yield (0, cross_fetch_1.default)(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.GET_USER_INFO, { | ||
const response = yield fetch(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.GET_USER_INFO, { | ||
method: 'GET', | ||
@@ -262,3 +258,3 @@ headers: this.buildHeaders(options === null || options === void 0 ? void 0 : options.tenantId, accessToken), | ||
const params = `?username=${encodeURIComponent(username)}`; | ||
const response = yield (0, cross_fetch_1.default)(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.GET_USER_ID + params, { | ||
const response = yield fetch(this.userManagementBaseAPIURL + UserManagementClient_1.UserManagementEndpoints.GET_USER_ID + params, { | ||
method: 'GET', | ||
@@ -265,0 +261,0 @@ headers: this.buildHeaders(options === null || options === void 0 ? void 0 : options.tenantId, accessToken), |
{ | ||
"name": "@launchtray/hatch-user-management-client", | ||
"version": "0.20.0", | ||
"version": "0.21.0-alpha.0", | ||
"main": "./dist/index.js", | ||
@@ -10,14 +10,11 @@ "typings": "./dist/index.d.ts", | ||
}, | ||
"dependencies": { | ||
"cross-fetch": "^3.0.4" | ||
}, | ||
"peerDependencies": { | ||
"@launchtray/hatch-util": "0.20.0", | ||
"@launchtray/tsyringe-async": "4.3.2" | ||
"@launchtray/hatch-util": "0.21.0-alpha.0", | ||
"@launchtray/tsyringe-async": "4.3.3" | ||
}, | ||
"devDependencies": { | ||
"@launchtray/hatch-eslint-config": "0.20.0", | ||
"@launchtray/hatch-util": "0.20.0", | ||
"@launchtray/tsyringe-async": "4.3.2", | ||
"@types/node": "^16", | ||
"@launchtray/hatch-eslint-config": "0.21.0-alpha.0", | ||
"@launchtray/hatch-util": "0.21.0-alpha.0", | ||
"@launchtray/tsyringe-async": "4.3.3", | ||
"@types/node": "^18", | ||
"@typescript-eslint/eslint-plugin": "^5", | ||
@@ -35,4 +32,5 @@ "@typescript-eslint/parser": "^5", | ||
"lint:fix": "eslint --max-warnings=0 --fix .", | ||
"build": "rimraf dist && tsc" | ||
"build": "rimraf dist && tsc", | ||
"build:watch": "tsc" | ||
} | ||
} |
import {inject, injectable, Logger} from '@launchtray/hatch-util'; | ||
import fetch from 'cross-fetch'; | ||
import { | ||
@@ -4,0 +3,0 @@ TENANT_ID_HEADER, |
Sorry, the diff of this file is not supported yet
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
Network access
Supply chain riskThis module accesses the network.
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
146144
2
39
1974
12
+ Added@launchtray/hatch-util@0.21.0-alpha.0(transitive)
+ Added@launchtray/tsyringe-async@4.3.3(transitive)
- Removedcross-fetch@^3.0.4
- Removed@launchtray/hatch-util@0.20.0(transitive)
- Removed@launchtray/tsyringe-async@4.3.2(transitive)
- Removedcross-fetch@3.1.8(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedtr46@0.0.3(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)