rajt 0.0.41 → 0.0.42

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rajt",
3
3
  "description": "A serverless bundler layer, fully typed for AWS Lambda (Node.js and LLRT) and Cloudflare Workers.",
4
- "version": "0.0.41",
4
+ "version": "0.0.42",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "exports": {
package/src/auth/token.ts CHANGED
@@ -41,10 +41,11 @@ export class Token {
41
41
  }
42
42
 
43
43
  static parse(token: string) {
44
- const host = this.host(Envir.get('FLOW_SERVER'))
44
+ const host = this.host()
45
+ const serveHost = Envir.get('FLOW_SERVER', host) as string
45
46
 
46
47
  return Factory.parse(token)
47
- .issuedBy(host)
48
+ .issuedBy(serveHost)
48
49
  .permittedFor(host)
49
50
  .withClaim('u', this.userAgent())
50
51
  .withClaim('i', this.ip())