@workos-inc/node 7.27.4 → 7.27.5

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.
package/lib/index.d.ts CHANGED
@@ -24,5 +24,7 @@ declare class WorkOSNode extends WorkOS {
24
24
  createWebhookClient(): Webhooks;
25
25
  /** @override */
26
26
  createIronSessionProvider(): IronSessionProvider;
27
+ /** @override */
28
+ emitWarning(warning: string): void;
27
29
  }
28
30
  export { WorkOSNode as WorkOS };
package/lib/index.js CHANGED
@@ -64,5 +64,9 @@ class WorkOSNode extends workos_1.WorkOS {
64
64
  createIronSessionProvider() {
65
65
  return new web_iron_session_provider_1.WebIronSessionProvider();
66
66
  }
67
+ /** @override */
68
+ emitWarning(warning) {
69
+ return process.emitWarning(warning, 'WorkOS');
70
+ }
67
71
  }
68
72
  exports.WorkOS = WorkOSNode;
package/lib/workos.js CHANGED
@@ -27,7 +27,7 @@ const bad_request_exception_1 = require("./common/exceptions/bad-request.excepti
27
27
  const http_client_1 = require("./common/net/http-client");
28
28
  const subtle_crypto_provider_1 = require("./common/crypto/subtle-crypto-provider");
29
29
  const fetch_client_1 = require("./common/net/fetch-client");
30
- const VERSION = '7.27.4';
30
+ const VERSION = '7.27.5';
31
31
  const DEFAULT_HOSTNAME = 'api.workos.com';
32
32
  const HEADER_AUTHORIZATION = 'Authorization';
33
33
  const HEADER_IDEMPOTENCY_KEY = 'Idempotency-Key';
@@ -170,7 +170,8 @@ class WorkOS {
170
170
  });
171
171
  }
172
172
  emitWarning(warning) {
173
- return process.emitWarning(warning, 'WorkOS');
173
+ // tslint:disable-next-line:no-console
174
+ console.warn(`WorkOS: ${warning}`);
174
175
  }
175
176
  handleHttpError({ path, error }) {
176
177
  var _a;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "7.27.4",
2
+ "version": "7.27.5",
3
3
  "name": "@workos-inc/node",
4
4
  "author": "WorkOS",
5
5
  "description": "A Node wrapper for the WorkOS API",