@tesouro/embedded-components-widget-token 0.9.56 → 0.9.59

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/dist/index.js CHANGED
@@ -1,2 +1 @@
1
- import { DEFAULT_EXPIRATION_IN_SECONDS as e, configureCreateWidgetToken as t, createWidgetToken as n } from "./index2.js";
2
- export { e as DEFAULT_EXPIRATION_IN_SECONDS, t as configureCreateWidgetToken, n as createWidgetToken };
1
+ export { DEFAULT_EXPIRATION_IN_SECONDS, configureCreateWidgetToken, createWidgetToken } from "./index2.js";
package/dist/index2.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import e from "crypto";
2
2
  import { EncryptJWT as t } from "jose";
3
- //#region src/lib/createWidgetToken.ts
3
+ // src/lib/createWidgetToken.ts
4
4
  var n = 480;
5
5
  async function r({ clientId: n, clientSecret: r, widgetSecret: i, userId: a, userEmail: o, organizationReference: s, expirationInSeconds: c = 480 }) {
6
6
  if (!i || !n || !r) throw Error("Missing required parameters for widget token generation: clientId, clientSecret, and widgetSecret are required");
@@ -50,5 +50,4 @@ function i({ clientId: e, clientSecret: t, widgetSecret: n, organizationReferenc
50
50
  expirationInSeconds: l
51
51
  });
52
52
  }
53
- //#endregion
54
53
  export { n as DEFAULT_EXPIRATION_IN_SECONDS, i as configureCreateWidgetToken, r as createWidgetToken };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-widget-token",
3
- "version": "0.9.56",
3
+ "version": "0.9.59",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "repository": {