@lwrjs/auth-middleware 0.13.0-alpha.9 → 0.13.0

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.
@@ -27,7 +27,6 @@ __export(exports, {
27
27
  platformWebServerAuthMiddleware: () => platformWebServerAuthMiddleware,
28
28
  stateMap: () => stateMap
29
29
  });
30
- var import_core = __toModule(require("@lwrjs/core"));
31
30
  var import_diagnostics = __toModule(require("@lwrjs/diagnostics"));
32
31
  var import_utils = __toModule(require("./utils.cjs"));
33
32
  var stateMap = new Map();
@@ -1,5 +1,5 @@
1
1
  import type { PlatformWebServerOptions, LoginState } from './types.js';
2
- import { LwrApp } from '@lwrjs/core';
2
+ import type { LwrApp } from '@lwrjs/core';
3
3
  export declare const stateMap: Map<string, LoginState>;
4
4
  /**
5
5
  * Web Server OAuth middleware: https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_web_server_flow.htm&type=5
@@ -1,6 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
- // @ts-ignore - LwrApp as a type is not working correctly
3
- import '@lwrjs/core';
4
1
  import { logger } from '@lwrjs/diagnostics';
5
2
  import { COOKIE_NAME, DEFAULT_LOGIN_SERVER, LOGIN_ENDPOINT, MESSAGE_PREFIX, PROXY_ENDPOINT, REDIRECT_ENDPOINT, REVOKE_ENDPOINT, buildProxyRequest, buildRedirectUrl, generateStateString, sanitizeAppPath, getOauthInfoFromCookie, getPlatformWebServerEnvVars, } from './utils.js';
6
3
  export const stateMap = new Map();
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.13.0-alpha.9",
7
+ "version": "0.13.0",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -29,16 +29,19 @@
29
29
  "build/**/*.cjs",
30
30
  "build/**/*.d.ts"
31
31
  ],
32
+ "scripts": {
33
+ "build": "tsc -b"
34
+ },
32
35
  "dependencies": {
33
- "@lwrjs/core": "0.13.0-alpha.9",
34
- "@lwrjs/diagnostics": "0.13.0-alpha.9"
36
+ "@lwrjs/core": "0.13.0",
37
+ "@lwrjs/diagnostics": "0.13.0"
35
38
  },
36
39
  "devDependencies": {
37
- "@lwrjs/server": "0.13.0-alpha.9",
38
- "@lwrjs/types": "0.13.0-alpha.9"
40
+ "@lwrjs/server": "0.13.0",
41
+ "@lwrjs/types": "0.13.0"
39
42
  },
40
43
  "engines": {
41
44
  "node": ">=18.0.0"
42
45
  },
43
- "gitHead": "a2a9e1dbf39a7b04c7a43433e004895b6f4c51a3"
46
+ "gitHead": "21dc6b8ffd2e633f36b46daf9e1563992c5143b9"
44
47
  }