@workos-inc/node 7.37.0 → 7.37.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,12 +10,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Actions = void 0;
13
- const crypto_1 = require("../common/crypto");
13
+ const SignatureProvider_1 = require("../common/crypto/SignatureProvider");
14
14
  const unreachable_1 = require("../common/utils/unreachable");
15
15
  const action_serializer_1 = require("./serializers/action.serializer");
16
16
  class Actions {
17
17
  constructor(cryptoProvider) {
18
- this.signatureProvider = new crypto_1.SignatureProvider(cryptoProvider);
18
+ this.signatureProvider = new SignatureProvider_1.SignatureProvider(cryptoProvider);
19
19
  }
20
20
  get computeSignature() {
21
21
  return this.signatureProvider.computeSignature.bind(this.signatureProvider);
@@ -17,7 +17,7 @@ const workos_1 = require("../workos");
17
17
  const authentication_action_context_json_1 = __importDefault(require("./fixtures/authentication-action-context.json"));
18
18
  const user_registration_action_context_json_1 = __importDefault(require("./fixtures/user-registration-action-context.json"));
19
19
  const workos = new workos_1.WorkOS('sk_test_Sz3IQjepeSWaI4cMS4ms4sMuU');
20
- const crypto_2 = require("../common/crypto");
20
+ const NodeCryptoProvider_1 = require("../common/crypto/NodeCryptoProvider");
21
21
  describe('Actions', () => {
22
22
  let secret;
23
23
  beforeEach(() => {
@@ -36,7 +36,7 @@ describe('Actions', () => {
36
36
  describe('signResponse', () => {
37
37
  describe('type: authentication', () => {
38
38
  it('returns a signed response', () => __awaiter(void 0, void 0, void 0, function* () {
39
- const nodeCryptoProvider = new crypto_2.NodeCryptoProvider();
39
+ const nodeCryptoProvider = new NodeCryptoProvider_1.NodeCryptoProvider();
40
40
  const response = yield workos.actions.signResponse({
41
41
  type: 'authentication',
42
42
  verdict: 'Allow',
@@ -51,7 +51,7 @@ describe('Actions', () => {
51
51
  });
52
52
  describe('type: user_registration', () => {
53
53
  it('returns a signed response', () => __awaiter(void 0, void 0, void 0, function* () {
54
- const nodeCryptoProvider = new crypto_2.NodeCryptoProvider();
54
+ const nodeCryptoProvider = new NodeCryptoProvider_1.NodeCryptoProvider();
55
55
  const response = yield workos.actions.signResponse({
56
56
  type: 'user_registration',
57
57
  verdict: 'Deny',
package/lib/workos.js CHANGED
@@ -29,7 +29,7 @@ const subtle_crypto_provider_1 = require("./common/crypto/subtle-crypto-provider
29
29
  const fetch_client_1 = require("./common/net/fetch-client");
30
30
  const widgets_1 = require("./widgets/widgets");
31
31
  const actions_1 = require("./actions/actions");
32
- const VERSION = '7.37.0';
32
+ const VERSION = '7.37.1';
33
33
  const DEFAULT_HOSTNAME = 'api.workos.com';
34
34
  const HEADER_AUTHORIZATION = 'Authorization';
35
35
  const HEADER_IDEMPOTENCY_KEY = 'Idempotency-Key';
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "7.37.0",
2
+ "version": "7.37.1",
3
3
  "name": "@workos-inc/node",
4
4
  "author": "WorkOS",
5
5
  "description": "A Node wrapper for the WorkOS API",
@@ -1,4 +0,0 @@
1
- export * from './NodeCryptoProvider';
2
- export * from './SubtleCryptoProvider';
3
- export * from './CryptoProvider';
4
- export * from './SignatureProvider';
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./NodeCryptoProvider"), exports);
18
- __exportStar(require("./SubtleCryptoProvider"), exports);
19
- __exportStar(require("./CryptoProvider"), exports);
20
- __exportStar(require("./SignatureProvider"), exports);