@atproto/oauth-provider 0.2.5 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +21 -0
- package/dist/account/account-store.js +3 -3
- package/dist/account/account-store.js.map +1 -1
- package/dist/assets/app/bundle-manifest.json +2 -2
- package/dist/assets/app/main.js +3 -3
- package/dist/assets/app/main.js.map +1 -1
- package/dist/assets/asset.d.ts +0 -1
- package/dist/assets/asset.d.ts.map +1 -1
- package/dist/assets/assets-middleware.js +2 -3
- package/dist/assets/assets-middleware.js.map +1 -1
- package/dist/assets/index.js +2 -2
- package/dist/assets/index.js.map +1 -1
- package/dist/client/client-auth.js +2 -3
- package/dist/client/client-auth.js.map +1 -1
- package/dist/client/client-manager.d.ts +1 -1
- package/dist/client/client-manager.d.ts.map +1 -1
- package/dist/client/client-manager.js +3 -4
- package/dist/client/client-manager.js.map +1 -1
- package/dist/client/client-store.js +3 -4
- package/dist/client/client-store.js.map +1 -1
- package/dist/client/client-utils.d.ts +0 -1
- package/dist/client/client-utils.d.ts.map +1 -1
- package/dist/client/client-utils.js +2 -3
- package/dist/client/client-utils.js.map +1 -1
- package/dist/device/device-details.d.ts +0 -1
- package/dist/device/device-details.d.ts.map +1 -1
- package/dist/device/device-details.js +3 -3
- package/dist/device/device-details.js.map +1 -1
- package/dist/device/device-id.d.ts.map +1 -1
- package/dist/device/device-manager.d.ts +1 -2
- package/dist/device/device-manager.d.ts.map +1 -1
- package/dist/device/device-store.js +2 -3
- package/dist/device/device-store.js.map +1 -1
- package/dist/device/session-id.d.ts.map +1 -1
- package/dist/dpop/dpop-manager.d.ts +0 -1
- package/dist/dpop/dpop-manager.d.ts.map +1 -1
- package/dist/lib/html/build-document.d.ts +0 -1
- package/dist/lib/html/build-document.d.ts.map +1 -1
- package/dist/lib/html/escapers.js +4 -5
- package/dist/lib/html/escapers.js.map +1 -1
- package/dist/lib/html/util.js +2 -3
- package/dist/lib/html/util.js.map +1 -1
- package/dist/lib/http/accept.d.ts +1 -1
- package/dist/lib/http/accept.d.ts.map +1 -1
- package/dist/lib/http/accept.js +2 -2
- package/dist/lib/http/accept.js.map +1 -1
- package/dist/lib/http/context.js +1 -2
- package/dist/lib/http/context.js.map +1 -1
- package/dist/lib/http/method.d.ts +0 -1
- package/dist/lib/http/method.d.ts.map +1 -1
- package/dist/lib/http/method.js +1 -2
- package/dist/lib/http/method.js.map +1 -1
- package/dist/lib/http/middleware.d.ts +0 -1
- package/dist/lib/http/middleware.d.ts.map +1 -1
- package/dist/lib/http/middleware.js +5 -6
- package/dist/lib/http/middleware.js.map +1 -1
- package/dist/lib/http/parser.d.ts +2 -5
- package/dist/lib/http/parser.d.ts.map +1 -1
- package/dist/lib/http/parser.js +2 -2
- package/dist/lib/http/parser.js.map +1 -1
- package/dist/lib/http/path.js +1 -2
- package/dist/lib/http/path.js.map +1 -1
- package/dist/lib/http/request.d.ts +0 -1
- package/dist/lib/http/request.d.ts.map +1 -1
- package/dist/lib/http/request.js +9 -10
- package/dist/lib/http/request.js.map +1 -1
- package/dist/lib/http/response.d.ts +9 -8
- package/dist/lib/http/response.d.ts.map +1 -1
- package/dist/lib/http/response.js +24 -66
- package/dist/lib/http/response.js.map +1 -1
- package/dist/lib/http/route.d.ts +0 -1
- package/dist/lib/http/route.d.ts.map +1 -1
- package/dist/lib/http/route.js +1 -2
- package/dist/lib/http/route.js.map +1 -1
- package/dist/lib/http/router.d.ts +2 -4
- package/dist/lib/http/router.d.ts.map +1 -1
- package/dist/lib/http/stream.d.ts +2 -7
- package/dist/lib/http/stream.d.ts.map +1 -1
- package/dist/lib/http/stream.js +5 -5
- package/dist/lib/http/stream.js.map +1 -1
- package/dist/lib/http/types.d.ts +0 -1
- package/dist/lib/http/types.d.ts.map +1 -1
- package/dist/lib/http/url.d.ts +0 -1
- package/dist/lib/http/url.d.ts.map +1 -1
- package/dist/lib/http/url.js +1 -2
- package/dist/lib/http/url.js.map +1 -1
- package/dist/lib/redis.d.ts.map +1 -1
- package/dist/lib/redis.js +7 -6
- package/dist/lib/redis.js.map +1 -1
- package/dist/lib/util/cast.js +1 -2
- package/dist/lib/util/cast.js.map +1 -1
- package/dist/lib/util/crypto.js +2 -2
- package/dist/lib/util/crypto.js.map +1 -1
- package/dist/lib/util/date.js +2 -3
- package/dist/lib/util/date.js.map +1 -1
- package/dist/lib/util/hostname.d.ts +0 -1
- package/dist/lib/util/hostname.d.ts.map +1 -1
- package/dist/lib/util/hostname.js +4 -5
- package/dist/lib/util/hostname.js.map +1 -1
- package/dist/lib/util/redirect-uri.js +1 -2
- package/dist/lib/util/redirect-uri.js.map +1 -1
- package/dist/lib/util/time.js +1 -2
- package/dist/lib/util/time.js.map +1 -1
- package/dist/lib/util/well-known.d.ts +0 -1
- package/dist/lib/util/well-known.d.ts.map +1 -1
- package/dist/lib/util/well-known.js +1 -2
- package/dist/lib/util/well-known.js.map +1 -1
- package/dist/metadata/build-metadata.d.ts.map +1 -1
- package/dist/metadata/build-metadata.js +4 -4
- package/dist/metadata/build-metadata.js.map +1 -1
- package/dist/oauth-provider.d.ts +1 -2
- package/dist/oauth-provider.d.ts.map +1 -1
- package/dist/oauth-provider.js +19 -9
- package/dist/oauth-provider.js.map +1 -1
- package/dist/oauth-verifier.d.ts +1 -2
- package/dist/oauth-verifier.d.ts.map +1 -1
- package/dist/output/build-authorize-data.js +1 -2
- package/dist/output/build-authorize-data.js.map +1 -1
- package/dist/output/build-error-payload.js +2 -3
- package/dist/output/build-error-payload.js.map +1 -1
- package/dist/output/customization.d.ts +1 -1
- package/dist/output/customization.d.ts.map +1 -1
- package/dist/output/customization.js +3 -4
- package/dist/output/customization.js.map +1 -1
- package/dist/output/output-manager.d.ts +0 -1
- package/dist/output/output-manager.d.ts.map +1 -1
- package/dist/output/send-authorize-redirect.d.ts +0 -1
- package/dist/output/send-authorize-redirect.d.ts.map +1 -1
- package/dist/output/send-authorize-redirect.js +1 -2
- package/dist/output/send-authorize-redirect.js.map +1 -1
- package/dist/output/send-web-page.d.ts +3 -4
- package/dist/output/send-web-page.d.ts.map +1 -1
- package/dist/output/send-web-page.js +4 -5
- package/dist/output/send-web-page.js.map +1 -1
- package/dist/replay/replay-store-redis.d.ts +1 -1
- package/dist/replay/replay-store-redis.d.ts.map +1 -1
- package/dist/replay/replay-store.js +3 -4
- package/dist/replay/replay-store.js.map +1 -1
- package/dist/request/code.d.ts +1 -1
- package/dist/request/code.d.ts.map +1 -1
- package/dist/request/request-data.d.ts.map +1 -1
- package/dist/request/request-id.d.ts.map +1 -1
- package/dist/request/request-manager.d.ts.map +1 -1
- package/dist/request/request-manager.js +2 -1
- package/dist/request/request-manager.js.map +1 -1
- package/dist/request/request-store-redis.d.ts +1 -1
- package/dist/request/request-store-redis.d.ts.map +1 -1
- package/dist/request/request-store-redis.js.map +1 -1
- package/dist/request/request-store.js +2 -3
- package/dist/request/request-store.js.map +1 -1
- package/dist/request/request-uri.js +3 -3
- package/dist/request/request-uri.js.map +1 -1
- package/dist/signer/signed-token-payload.d.ts +90 -90
- package/dist/signer/signed-token-payload.d.ts.map +1 -1
- package/dist/signer/signer.d.ts +6 -6
- package/dist/signer/signer.d.ts.map +1 -1
- package/dist/token/refresh-token.d.ts +1 -1
- package/dist/token/refresh-token.d.ts.map +1 -1
- package/dist/token/token-claims.d.ts +90 -90
- package/dist/token/token-claims.d.ts.map +1 -1
- package/dist/token/token-id.d.ts +1 -1
- package/dist/token/token-id.d.ts.map +1 -1
- package/dist/token/token-store.js +2 -3
- package/dist/token/token-store.js.map +1 -1
- package/dist/token/verify-token-claims.js +1 -2
- package/dist/token/verify-token-claims.js.map +1 -1
- package/package.json +3 -7
- package/src/assets/assets-middleware.ts +1 -1
- package/src/client/client-manager.ts +3 -3
- package/src/lib/http/accept.ts +1 -0
- package/src/lib/http/middleware.ts +1 -1
- package/src/lib/http/response.ts +37 -78
- package/src/lib/http/stream.ts +4 -2
- package/src/lib/redis.ts +5 -3
- package/src/metadata/build-metadata.ts +6 -3
- package/src/oauth-provider.ts +19 -11
- package/src/oauth-verifier.ts +1 -1
- package/src/output/send-web-page.ts +5 -3
- package/src/replay/replay-store-redis.ts +1 -1
- package/src/request/request-manager.ts +4 -1
- package/src/request/request-store-redis.ts +2 -1
- package/tsconfig.backend.tsbuildinfo +1 -0
- package/tsconfig.frontend.tsbuildinfo +1 -0
- package/tsconfig.tools.tsbuildinfo +1 -0
package/dist/assets/asset.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../src/assets/asset.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../src/assets/asset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,MAAM,KAAK,GAAG;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,QAAQ,CAAA;CAC7B,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.authorizeAssetsMiddleware =
|
3
|
+
exports.authorizeAssetsMiddleware = authorizeAssetsMiddleware;
|
4
4
|
const index_js_1 = require("../lib/http/index.js");
|
5
5
|
const index_js_2 = require("./index.js");
|
6
6
|
function authorizeAssetsMiddleware() {
|
@@ -32,8 +32,7 @@ function authorizeAssetsMiddleware() {
|
|
32
32
|
if (query === asset.sha256) {
|
33
33
|
res.setHeader('Cache-Control', 'public, max-age=31536000, immutable');
|
34
34
|
}
|
35
|
-
|
35
|
+
(0, index_js_1.writeStream)(res, asset.createStream(), { contentType: asset.type });
|
36
36
|
};
|
37
37
|
}
|
38
|
-
exports.authorizeAssetsMiddleware = authorizeAssetsMiddleware;
|
39
38
|
//# sourceMappingURL=assets-middleware.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"assets-middleware.js","sourceRoot":"","sources":["../../src/assets/assets-middleware.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"assets-middleware.js","sourceRoot":"","sources":["../../src/assets/assets-middleware.ts"],"names":[],"mappings":";;AASA,8DAoCC;AA7CD,mDAK6B;AAE7B,yCAAwD;AAExD,SAAgB,yBAAyB;IACvC,OAAO,KAAK,UAAU,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI;QACnD,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM;YAAE,OAAO,IAAI,EAAE,CAAA;QAChE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,4BAAiB,CAAC;YAAE,OAAO,IAAI,EAAE,CAAA;QAE1D,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAG7C,CAAA;QACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,4BAAiB,CAAC,MAAM,CAAC,CAAA;QACzD,IAAI,CAAC,QAAQ;YAAE,OAAO,IAAI,EAAE,CAAA;QAE5B,MAAM,KAAK,GAAG,MAAM,IAAA,mBAAQ,EAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAA;QACxD,IAAI,CAAC,KAAK;YAAE,OAAO,IAAI,EAAE,CAAA;QAEzB,IAAI,CAAC;YACH,oEAAoE;YACpE,uCAAuC;YACvC,IAAA,4BAAiB,EAAC,GAAG,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAA;YAClD,IAAA,4BAAiB,EAAC,GAAG,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAA;QACxD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,IAAI,CAAC,GAAG,CAAC,CAAA;QAClB,CAAC;QAED,IAAI,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;YAClD,OAAO,KAAK,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAA;QACtC,CAAC;QAED,GAAG,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;QAEnC,IAAI,KAAK,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;YAC3B,GAAG,CAAC,SAAS,CAAC,eAAe,EAAE,qCAAqC,CAAC,CAAA;QACvE,CAAC;QAED,IAAA,sBAAW,EAAC,GAAG,EAAE,KAAK,CAAC,YAAY,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAA;IACrE,CAAC,CAAA;AACH,CAAC"}
|
package/dist/assets/index.js
CHANGED
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.
|
6
|
+
exports.ASSETS_URL_PREFIX = void 0;
|
7
|
+
exports.getAsset = getAsset;
|
7
8
|
// If this library is used as a regular dependency (e.g. from node_modules), the
|
8
9
|
// assets will simply be referenced from the node_modules directory. However, if
|
9
10
|
// this library is bundled (e.g. via rollup), the assets need to be copied to
|
@@ -54,7 +55,6 @@ async function getAsset(inputFilename) {
|
|
54
55
|
(0, node_fs_1.createReadStream)((0, node_path_1.join)(__dirname, './app', filename)),
|
55
56
|
};
|
56
57
|
}
|
57
|
-
exports.getAsset = getAsset;
|
58
58
|
class AssetNotFoundError extends Error {
|
59
59
|
code = 'ENOENT';
|
60
60
|
statusCode = 404;
|
package/dist/assets/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/assets/index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AAE,QAAQ,CAAC;QAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,YAAY,EAAE,IAAI;YAChB,CAAC,CAAC,GAAG,EAAE,CAAC,sBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;YAClD,CAAC,CAAC,GAAG,EAAE;YACH,eAAe;YACf,kEAAkE;YAClE,eAAe;YACf,IAAA,0BAAgB,EAAC,IAAA,gBAAI,EAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;KAC3D,CAAA;AACH,CAAC;AAED,MAAM,kBAAmB,SAAQ,KAAK;IACpB,IAAI,GAAG,QAAQ,CAAA;IACf,UAAU,GAAG,GAAG,CAAA;IAChC,YAAY,QAAgB;QAC1B,KAAK,CAAC,oBAAoB,QAAQ,EAAE,CAAC,CAAA;IACvC,CAAC;CACF"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.compareClientAuth = compareClientAuth;
|
4
|
+
exports.authJwkThumbprint = authJwkThumbprint;
|
4
5
|
const oauth_types_1 = require("@atproto/oauth-types");
|
5
6
|
const jose_1 = require("jose");
|
6
7
|
const invalid_client_error_js_1 = require("../errors/invalid-client-error.js");
|
@@ -19,7 +20,6 @@ function compareClientAuth(a, b) {
|
|
19
20
|
// Fool-proof
|
20
21
|
throw new TypeError('Invalid ClientAuth method');
|
21
22
|
}
|
22
|
-
exports.compareClientAuth = compareClientAuth;
|
23
23
|
async function authJwkThumbprint(key) {
|
24
24
|
try {
|
25
25
|
return await (0, jose_1.calculateJwkThumbprint)(await (0, jose_1.exportJWK)(key), 'sha512');
|
@@ -31,5 +31,4 @@ async function authJwkThumbprint(key) {
|
|
31
31
|
throw new invalid_client_error_js_1.InvalidClientError(message, err);
|
32
32
|
}
|
33
33
|
}
|
34
|
-
exports.authJwkThumbprint = authJwkThumbprint;
|
35
34
|
//# sourceMappingURL=client-auth.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client-auth.js","sourceRoot":"","sources":["../../src/client/client-auth.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"client-auth.js","sourceRoot":"","sources":["../../src/client/client-auth.ts"],"names":[],"mappings":";;AAgBA,8CAeC;AAED,8CAYC;AA7CD,sDAAuE;AACvE,+BAAyE;AAEzE,+EAAsE;AAEtE,MAAM,EAAE,SAAS,EAAE,GAAG,aAAM,CAAA;AAW5B,SAAgB,iBAAiB,CAAC,CAAa,EAAE,CAAa;IAC5D,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;QACxB,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;YAAE,OAAO,KAAK,CAAA;QAEvC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,IAAI,CAAC,CAAC,MAAM,KAAK,8CAAgC,EAAE,CAAC;QAClD,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;YAAE,OAAO,KAAK,CAAA;QAEvC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,aAAa;IACb,MAAM,IAAI,SAAS,CAAC,2BAA2B,CAAC,CAAA;AAClD,CAAC;AAEM,KAAK,UAAU,iBAAiB,CACrC,GAAyB;IAEzB,IAAI,CAAC;QACH,OAAO,MAAM,IAAA,6BAAsB,EAAC,MAAM,IAAA,gBAAS,EAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAA;IACrE,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,OAAO,GACX,GAAG,YAAY,SAAS;YACtB,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,kCAAkC,CAAA;QACxC,MAAM,IAAI,4CAAkB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;IAC5C,CAAC;AACH,CAAC"}
|
@@ -16,7 +16,7 @@ export declare class ClientManager {
|
|
16
16
|
protected readonly loopbackMetadata: LoopbackMetadataGetter | null;
|
17
17
|
protected readonly jwks: CachedGetter<string, Jwks>;
|
18
18
|
protected readonly metadataGetter: CachedGetter<string, OAuthClientMetadata>;
|
19
|
-
constructor(serverMetadata: OAuthAuthorizationServerMetadata, keyset: Keyset, hooks: OAuthHooks, store: ClientStore | null, loopbackMetadata: LoopbackMetadataGetter | null, safeFetch: Fetch, clientJwksCache: SimpleStore<string, Jwks>, clientMetadataCache: SimpleStore<string, OAuthClientMetadata>);
|
19
|
+
constructor(serverMetadata: OAuthAuthorizationServerMetadata, keyset: Keyset, hooks: OAuthHooks, store: ClientStore | null, loopbackMetadata: (LoopbackMetadataGetter | null) | undefined, safeFetch: Fetch, clientJwksCache: SimpleStore<string, Jwks>, clientMetadataCache: SimpleStore<string, OAuthClientMetadata>);
|
20
20
|
/**
|
21
21
|
*
|
22
22
|
* @see {@link https://openid.net/specs/openid-connect-registration-1_0.html#rfc.section.2 OIDC Client Registration}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client-manager.d.ts","sourceRoot":"","sources":["../../src/client/client-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EAMN,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,YAAY,EAEZ,WAAW,EACZ,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,IAAI,EAAc,MAAM,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EAIL,gCAAgC,EAChC,yBAAyB,EACzB,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EAEzB,MAAM,sBAAsB,CAAA;AAW7B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAA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3C,QAAQ,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;cAYf,uBAAuB,CACrC,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,mBAAmB,CAAC;IAS/B;;;;;OAKG;IACH,SAAS,CAAC,sBAAsB,CAC9B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,mBAAmB,GAC5B,mBAAmB;IAwbtB,8BAA8B,CAC5B,QAAQ,EAAE,qBAAqB,EAC/B,QAAQ,EAAE,mBAAmB,GAC5B,mBAAmB;IAuCtB,kCAAkC,CAChC,QAAQ,EAAE,yBAAyB,EACnC,QAAQ,EAAE,mBAAmB,GAC5B,mBAAmB;CAwGvB"}
|
@@ -547,11 +547,10 @@ function isPrivateUseUriScheme(uri) {
|
|
547
547
|
return uri.protocol.includes('.');
|
548
548
|
}
|
549
549
|
function buildJsonGetRequest(uri, options) {
|
550
|
-
const headers = new Headers([['accept', 'application/json']]);
|
551
|
-
if (options?.noCache)
|
552
|
-
headers.set('cache-control', 'no-cache');
|
553
550
|
return new Request(uri, {
|
554
|
-
headers,
|
551
|
+
headers: { accept: 'application/json' },
|
552
|
+
// @ts-expect-error invalid types in "undici-types"
|
553
|
+
cache: options?.noCache ? 'no-cache' : undefined,
|
555
554
|
signal: options?.signal,
|
556
555
|
redirect: 'error',
|
557
556
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client-manager.js","sourceRoot":"","sources":["../../src/client/client-manager.ts"],"names":[],"mappings":";;;AAAA,+CAQ4B;AAC5B,6CAAyC;AACzC,6DAImC;AACnC,sCAAuD;AACvD,sDAU6B;AAC7B,6BAA8B;AAE9B,iGAAuF;AACvF,2FAAiF;AACjF,6DAAqD;AACrD,yDAIgC;AAKhC,uDAA+E;AAC/E,2CAAoC;AAEpC,MAAM,oBAAoB,GAAG,IAAA,WAAI,EAC/B,IAAA,wBAAgB,GAAE;AAClB,8IAA8I;AAC9I,IAAA,0BAAkB,EAAC,kBAAkB,EAA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nE,kEAAkE;gBAClE,oEAAoE;gBACpE,gCAAgC;gBAChC,EAAE;gBACF,qEAAqE;gBACrE,yDAAyD;gBAEzD,IAAI,GAAG,CAAC,QAAQ,KAAK,WAAW,CAAC,QAAQ,EAAE,CAAC;oBAC1C,MAAM,IAAI,uDAAuB,CAC/B,gBAAgB,GAAG,+CAA+C,QAAQ,CAAC,UAAU,EAAE,CACxF,CAAA;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,QAAQ,CAAA;IACjB,CAAC;CACF;AAnuBD,sCAmuBC;AAED,SAAS,WAAW,CAElB,KAAQ,EAAE,KAAa,EAAE,KAAU;IACnC,OAAO,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,CAAA;AACzC,CAAC;AAED,SAAS,aAAa,CAAC,MAAc;IACnC,OAAO,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC9C,CAAC;AAED,SAAS,qBAAqB,CAAC,GAAQ;IACrC,OAAO,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AACnC,CAAC;AAED,SAAS,mBAAmB,CAAC,GAAW,EAAE,OAA0B;IAClE,OAAO,IAAI,OAAO,CAAC,GAAG,EAAE;QACtB,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE;QACvC,mDAAmD;QACnD,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS;QAChD,MAAM,EAAE,OAAO,EAAE,MAAM;QACvB,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAA;AACJ,CAAC"}
|
@@ -14,26 +14,25 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
exports.
|
17
|
+
exports.isClientStore = isClientStore;
|
18
|
+
exports.ifClientStore = ifClientStore;
|
19
|
+
exports.asClientStore = asClientStore;
|
18
20
|
// Export all types needed to implement the ClientStore interface
|
19
21
|
__exportStar(require("./client-data.js"), exports);
|
20
22
|
__exportStar(require("./client-id.js"), exports);
|
21
23
|
function isClientStore(implementation) {
|
22
24
|
return typeof implementation.findClient === 'function';
|
23
25
|
}
|
24
|
-
exports.isClientStore = isClientStore;
|
25
26
|
function ifClientStore(implementation) {
|
26
27
|
if (implementation && isClientStore(implementation)) {
|
27
28
|
return implementation;
|
28
29
|
}
|
29
30
|
return undefined;
|
30
31
|
}
|
31
|
-
exports.ifClientStore = ifClientStore;
|
32
32
|
function asClientStore(implementation) {
|
33
33
|
const store = ifClientStore(implementation);
|
34
34
|
if (store)
|
35
35
|
return store;
|
36
36
|
throw new Error('Invalid ClientStore implementation');
|
37
37
|
}
|
38
|
-
exports.asClientStore = asClientStore;
|
39
38
|
//# sourceMappingURL=client-store.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client-store.js","sourceRoot":"","sources":["../../src/client/client-store.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"client-store.js","sourceRoot":"","sources":["../../src/client/client-store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAcA,sCAIC;AAED,sCAQC;AAED,sCAOC;AAhCD,iEAAiE;AACjE,mDAAgC;AAChC,iDAA8B;AAO9B,SAAgB,aAAa,CAC3B,cAA8D;IAE9D,OAAO,OAAO,cAAc,CAAC,UAAU,KAAK,UAAU,CAAA;AACxD,CAAC;AAED,SAAgB,aAAa,CAC3B,cAA+D;IAE/D,IAAI,cAAc,IAAI,aAAa,CAAC,cAAc,CAAC,EAAE,CAAC;QACpD,OAAO,cAAc,CAAA;IACvB,CAAC;IAED,OAAO,SAAS,CAAA;AAClB,CAAC;AAED,SAAgB,aAAa,CAC3B,cAA+D;IAE/D,MAAM,KAAK,GAAG,aAAa,CAAC,cAAc,CAAC,CAAA;IAC3C,IAAI,KAAK;QAAE,OAAO,KAAK,CAAA;IAEvB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAA;AACvD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client-utils.d.ts","sourceRoot":"","sources":["../../src/client/client-utils.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"client-utils.d.ts","sourceRoot":"","sources":["../../src/client/client-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EAE1B,MAAM,sBAAsB,CAAA;AAM7B,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,GAAG,CAMzD;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,yBAAyB,GAClC,GAAG,CAkBL"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.parseRedirectUri = parseRedirectUri;
|
4
|
+
exports.parseDiscoverableClientId = parseDiscoverableClientId;
|
4
5
|
const oauth_types_1 = require("@atproto/oauth-types");
|
5
6
|
const invalid_client_id_error_js_1 = require("../errors/invalid-client-id-error.js");
|
6
7
|
const invalid_redirect_uri_error_js_1 = require("../errors/invalid-redirect-uri-error.js");
|
@@ -13,7 +14,6 @@ function parseRedirectUri(redirectUri) {
|
|
13
14
|
throw invalid_redirect_uri_error_js_1.InvalidRedirectUriError.from(err);
|
14
15
|
}
|
15
16
|
}
|
16
|
-
exports.parseRedirectUri = parseRedirectUri;
|
17
17
|
function parseDiscoverableClientId(clientId) {
|
18
18
|
try {
|
19
19
|
const url = (0, oauth_types_1.parseOAuthDiscoverableClientId)(clientId);
|
@@ -27,5 +27,4 @@ function parseDiscoverableClientId(clientId) {
|
|
27
27
|
throw invalid_client_id_error_js_1.InvalidClientIdError.from(err, 'Invalid discoverable client identifier');
|
28
28
|
}
|
29
29
|
}
|
30
|
-
exports.parseDiscoverableClientId = parseDiscoverableClientId;
|
31
30
|
//# sourceMappingURL=client-utils.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client-utils.js","sourceRoot":"","sources":["../../src/client/client-utils.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"client-utils.js","sourceRoot":"","sources":["../../src/client/client-utils.ts"],"names":[],"mappings":";;AASA,4CAMC;AAED,8DAoBC;AArCD,sDAG6B;AAE7B,qFAA2E;AAC3E,2FAAiF;AACjF,yDAAwD;AAExD,SAAgB,gBAAgB,CAAC,WAAmB;IAClD,IAAI,CAAC;QACH,OAAO,IAAI,GAAG,CAAC,WAAW,CAAC,CAAA;IAC7B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,uDAAuB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACzC,CAAC;AACH,CAAC;AAED,SAAgB,yBAAyB,CACvC,QAAmC;IAEnC,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAA,4CAA8B,EAAC,QAAQ,CAAC,CAAA;QAEpD,oEAAoE;QACpE,IAAI,CAAC,IAAA,4BAAc,EAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,iDAAoB,CAC5B,iEAAiE,CAClE,CAAA;QACH,CAAC;QAED,OAAO,GAAG,CAAA;IACZ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,iDAAoB,CAAC,IAAI,CAC7B,GAAG,EACH,wCAAwC,CACzC,CAAA;IACH,CAAC;AACH,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"device-details.d.ts","sourceRoot":"","sources":["../../src/device/device-details.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"device-details.d.ts","sourceRoot":"","sources":["../../src/device/device-details.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAE3C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,eAAe,EACpB,UAAU,EAAE,OAAO,GAClB,aAAa,CASf;AAED,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,eAAe,EACpB,UAAU,EAAE,OAAO,GAClB,MAAM,GAAG,SAAS,CAepB"}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.deviceDetailsSchema = void 0;
|
4
|
+
exports.extractDeviceDetails = extractDeviceDetails;
|
5
|
+
exports.extractIpAddress = extractIpAddress;
|
4
6
|
const zod_1 = require("zod");
|
5
7
|
exports.deviceDetailsSchema = zod_1.z.object({
|
6
8
|
userAgent: zod_1.z.string().nullable(),
|
@@ -14,7 +16,6 @@ function extractDeviceDetails(req, trustProxy) {
|
|
14
16
|
}
|
15
17
|
return { userAgent, ipAddress };
|
16
18
|
}
|
17
|
-
exports.extractDeviceDetails = extractDeviceDetails;
|
18
19
|
function extractIpAddress(req, trustProxy) {
|
19
20
|
// Express app compatibility
|
20
21
|
if ('ip' in req && typeof req.ip === 'string') {
|
@@ -30,5 +31,4 @@ function extractIpAddress(req, trustProxy) {
|
|
30
31
|
}
|
31
32
|
return req.socket.remoteAddress;
|
32
33
|
}
|
33
|
-
exports.extractIpAddress = extractIpAddress;
|
34
34
|
//# sourceMappingURL=device-details.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"device-details.js","sourceRoot":"","sources":["../../src/device/device-details.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"device-details.js","sourceRoot":"","sources":["../../src/device/device-details.ts"],"names":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":["../../src/device/device-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,gBAAgB,QACyB,CAAA;AAEtD,eAAO,MAAM,cAAc,oDASxB,CAAA;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AACrD,eAAO,MAAM,gBAAgB,QAAa,
|
1
|
+
{"version":3,"file":"device-id.d.ts","sourceRoot":"","sources":["../../src/device/device-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,gBAAgB,QACyB,CAAA;AAEtD,eAAO,MAAM,cAAc,oDASxB,CAAA;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AACrD,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,QAAQ,CAEzD,CAAA"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="node" />
|
2
1
|
import { IncomingMessage, ServerResponse } from 'node:http';
|
3
2
|
import type Keygrip from 'keygrip';
|
4
3
|
import { DeviceData } from './device-data.js';
|
@@ -22,7 +21,7 @@ export declare const DEFAULT_OPTIONS: {
|
|
22
21
|
* Cookie options
|
23
22
|
*/
|
24
23
|
cookie: {
|
25
|
-
keys:
|
24
|
+
keys: undefined | Keygrip;
|
26
25
|
/**
|
27
26
|
* Name of the cookie used to identify the device
|
28
27
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"device-manager.d.ts","sourceRoot":"","sources":["../../src/device/device-manager.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"device-manager.d.ts","sourceRoot":"","sources":["../../src/device/device-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAG3D,OAAO,KAAK,OAAO,MAAM,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(p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
exports.
|
17
|
+
exports.isDeviceStore = isDeviceStore;
|
18
|
+
exports.asDeviceStore = asDeviceStore;
|
18
19
|
// Export all types needed to implement the DeviceStore interface
|
19
20
|
__exportStar(require("./device-id.js"), exports);
|
20
21
|
__exportStar(require("./device-data.js"), exports);
|
@@ -25,12 +26,10 @@ function isDeviceStore(implementation) {
|
|
25
26
|
typeof implementation.updateDevice === 'function' &&
|
26
27
|
typeof implementation.deleteDevice === 'function');
|
27
28
|
}
|
28
|
-
exports.isDeviceStore = isDeviceStore;
|
29
29
|
function asDeviceStore(implementation) {
|
30
30
|
if (!implementation || !isDeviceStore(implementation)) {
|
31
31
|
throw new Error('Invalid DeviceStore implementation');
|
32
32
|
}
|
33
33
|
return implementation;
|
34
34
|
}
|
35
|
-
exports.asDeviceStore = asDeviceStore;
|
36
35
|
//# sourceMappingURL=device-store.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"device-store.js","sourceRoot":"","sources":["../../src/device/device-store.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"device-store.js","sourceRoot":"","sources":["../../src/device/device-store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAgBA,sCASC;AAED,sCAOC;AA9BD,iEAAiE;AACjE,iDAA8B;AAC9B,mDAAgC;AAChC,kDAA+B;AAS/B,SAAgB,aAAa,CAC3B,cAA8D;IAE9D,OAAO,CACL,OAAO,cAAc,CAAC,YAAY,KAAK,UAAU;QACjD,OAAO,cAAc,CAAC,UAAU,KAAK,UAAU;QAC/C,OAAO,cAAc,CAAC,YAAY,KAAK,UAAU;QACjD,OAAO,cAAc,CAAC,YAAY,KAAK,UAAU,CAClD,CAAA;AACH,CAAC;AAED,SAAgB,aAAa,CAC3B,cAA+D;IAE/D,IAAI,CAAC,cAAc,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAA;IACvD,CAAC;IACD,OAAO,cAAc,CAAA;AACvB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"session-id.d.ts","sourceRoot":"","sources":["../../src/device/session-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,iBAAiB,QAC0B,CAAA;AAExD,eAAO,MAAM,eAAe,oDASzB,CAAA;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AACvD,eAAO,MAAM,iBAAiB,QAAa,
|
1
|
+
{"version":3,"file":"session-id.d.ts","sourceRoot":"","sources":["../../src/device/session-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,iBAAiB,QAC0B,CAAA;AAExD,eAAO,MAAM,eAAe,oDASzB,CAAA;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AACvD,eAAO,MAAM,iBAAiB,QAAa,OAAO,CAAC,SAAS,CAE3D,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dpop-manager.d.ts","sourceRoot":"","sources":["../../src/dpop/dpop-manager.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"dpop-manager.d.ts","sourceRoot":"","sources":["../../src/dpop/dpop-manager.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAI3D,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAA;AACzC,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,KAAK,GAAG,cAAc,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,qBAAa,WAAW;IACtB,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAA;gBAE5B,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAE,kBAAuB;IAK7D,SAAS,IAAI,MAAM,GAAG,SAAS;IAI/B;;OAEG;IACG,UAAU,CACd,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,MAAM,EAAE,cAAc;IAC3B,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,WAAW;IAC9B,WAAW,CAAC,EAAE,MAAM;;;iBAWb,MAAM;iBACN,MAAM;;;;CAgEhB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"build-document.d.ts","sourceRoot":"","sources":["../../../src/lib/html/build-document.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"build-document.d.ts","sourceRoot":"","sources":["../../../src/lib/html/build-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAGhC,MAAM,MAAM,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC,CAAA;AAChE,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAAA;AAChD,MAAM,MAAM,SAAS,GACjB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAO7C,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,KAAK,CAAA;IACjB,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,IAAI,CAAC,EAAE,SAAS,SAAS,EAAE,CAAA;IAC3B,KAAK,CAAC,EAAE,SAAS,SAAS,EAAE,CAAA;IAC5B,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,QAAQ,CAAC,EAAE,CAAA;IACtC,MAAM,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,QAAQ,CAAC,EAAE,CAAA;IACrC,IAAI,EAAE,SAAS,CAAA;IACf,SAAS,CAAC,EAAE,KAAK,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,aAAa,qFAWvB,oBAAoB,SAcf,CAAA"}
|
@@ -1,6 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.javascriptEscaper = javascriptEscaper;
|
4
|
+
exports.jsonEscaper = jsonEscaper;
|
5
|
+
exports.cssEscaper = cssEscaper;
|
6
|
+
exports.htmlEscaper = htmlEscaper;
|
4
7
|
const html_js_1 = require("./html.js");
|
5
8
|
const util_js_1 = require("./util.js");
|
6
9
|
function* javascriptEscaper(code) {
|
@@ -8,7 +11,6 @@ function* javascriptEscaper(code) {
|
|
8
11
|
// the "<" without breaking the javascript.
|
9
12
|
yield* (0, util_js_1.stringReplacer)(code, '</script>', '\\u003c/script>');
|
10
13
|
}
|
11
|
-
exports.javascriptEscaper = javascriptEscaper;
|
12
14
|
function* jsonEscaper(value) {
|
13
15
|
// https://redux.js.org/usage/server-rendering#security-considerations
|
14
16
|
const json = JSON.stringify(value);
|
@@ -18,11 +20,9 @@ function* jsonEscaper(value) {
|
|
18
20
|
// breaking the JSON.
|
19
21
|
yield* (0, util_js_1.stringReplacer)(json, '<', '\\u003c');
|
20
22
|
}
|
21
|
-
exports.jsonEscaper = jsonEscaper;
|
22
23
|
function* cssEscaper(css) {
|
23
24
|
yield* (0, util_js_1.stringReplacer)(css, '</style>', '\\u003c/style>');
|
24
25
|
}
|
25
|
-
exports.cssEscaper = cssEscaper;
|
26
26
|
function* htmlEscaper(htmlFragments, values) {
|
27
27
|
for (let i = 0; i < htmlFragments.length; i++) {
|
28
28
|
yield htmlFragments[i];
|
@@ -31,7 +31,6 @@ function* htmlEscaper(htmlFragments, values) {
|
|
31
31
|
yield* htmlVariableToFragments(value);
|
32
32
|
}
|
33
33
|
}
|
34
|
-
exports.htmlEscaper = htmlEscaper;
|
35
34
|
function* htmlVariableToFragments(value) {
|
36
35
|
if (value == null) {
|
37
36
|
return;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"escapers.js","sourceRoot":"","sources":["../../../src/lib/html/escapers.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"escapers.js","sourceRoot":"","sources":["../../../src/lib/html/escapers.ts"],"names":[],"mappings":";;AAGA,8CAIC;AAED,kCAOC;AAED,gCAEC;AAKD,kCAUC;AAnCD,uCAAgC;AAChC,uCAA0D;AAE1D,QAAe,CAAC,CAAC,iBAAiB,CAAC,IAAY;IAC7C,6EAA6E;IAC7E,2CAA2C;IAC3C,KAAK,CAAC,CAAC,IAAA,wBAAc,EAAC,IAAI,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAA;AAC7D,CAAC;AAED,QAAe,CAAC,CAAC,WAAW,CAAC,KAAc;IACzC,sEAAsE;IACtE,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;IAClC,IAAI,IAAI,KAAK,SAAS;QAAE,MAAM,IAAI,SAAS,CAAC,0BAA0B,CAAC,CAAA;IACvE,0EAA0E;IAC1E,qBAAqB;IACrB,KAAK,CAAC,CAAC,IAAA,wBAAc,EAAC,IAAI,EAAE,GAAG,EAAE,SAAS,CAAC,CAAA;AAC7C,CAAC;AAED,QAAe,CAAC,CAAC,UAAU,CAAC,GAAW;IACrC,KA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CAAC,GAAG,EAAE,OAAO,CAAC;CACf,CAAC,CAAA;AACF,MAAM,iBAAiB,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAE,CAAA;AAC/D,SAAS,MAAM,CAAC,KAAa;IAC3B,OAAO,KAAK,CAAC,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAA;AAC5D,CAAC"}
|
package/dist/lib/html/util.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.stringReplacer = stringReplacer;
|
4
|
+
exports.isString = isString;
|
4
5
|
function* stringReplacer(source, searchValue, replaceValue) {
|
5
6
|
let previousIndex = 0;
|
6
7
|
let index = source.indexOf(searchValue);
|
@@ -12,9 +13,7 @@ function* stringReplacer(source, searchValue, replaceValue) {
|
|
12
13
|
}
|
13
14
|
yield source.slice(previousIndex);
|
14
15
|
}
|
15
|
-
exports.stringReplacer = stringReplacer;
|
16
16
|
function isString(value) {
|
17
17
|
return typeof value === 'string';
|
18
18
|
}
|
19
|
-
exports.isString = isString;
|
20
19
|
//# sourceMappingURL=util.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/lib/html/util.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/lib/html/util.ts"],"names":[],"mappings":";;AAEA,wCAcC;AAED,4BAEC;AAlBD,QAAe,CAAC,CAAC,cAAc,CAC7B,MAAc,EACd,WAAmB,EACnB,YAAoB;IAEpB,IAAI,aAAa,GAAG,CAAC,CAAA;IACrB,IAAI,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IACvC,OAAO,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;QACpB,MAAM,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,CAAA;QACxC,MAAM,YAAY,CAAA;QAClB,aAAa,GAAG,KAAK,GAAG,WAAW,CAAC,MAAM,CAAA;QAC1C,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,aAAa,CAAC,CAAA;IACpD,CAAC;IACD,MAAM,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;AACnC,CAAC;AAED,SAAgB,QAAQ,CAAC,KAAc;IACrC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAA;AAClC,CAAC"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="node" />
|
2
1
|
import { SubCtx } from './context.js';
|
3
2
|
import { IncomingMessage, Middleware, NextFunction, ServerResponse } from './types.js';
|
4
3
|
type View<T, D, Req extends IncomingMessage = IncomingMessage, Res extends ServerResponse = ServerResponse> = (this: SubCtx<T, {
|
@@ -23,6 +22,7 @@ type View<T, D, Req extends IncomingMessage = IncomingMessage, Res extends Serve
|
|
23
22
|
* }
|
24
23
|
* )
|
25
24
|
* )
|
25
|
+
* ```
|
26
26
|
*/
|
27
27
|
export declare function acceptMiddleware<D, T = void, Req extends IncomingMessage = IncomingMessage, Res extends ServerResponse = ServerResponse>(controller: (this: T, req: Req, res: Res) => D | PromiseLike<D>, views: Record<string, string | View<T, D, Req, Res>>, fallback?: Middleware<T>): (this: T, req: Req, res: Res, next: NextFunction) => Promise<void>;
|
28
28
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"accept.d.ts","sourceRoot":"","sources":["../../../src/lib/http/accept.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"accept.d.ts","sourceRoot":"","sources":["../../../src/lib/http/accept.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAU,MAAM,cAAc,CAAA;AAC7C,OAAO,EACL,eAAe,EACf,UAAU,EACV,YAAY,EACZ,cAAc,EACf,MAAM,YAAY,CAAA;AAEnB,KAAK,IAAI,CACP,CAAC,EACD,CAAC,EACD,GAAG,SAAS,eAAe,GAAG,eAAe,EAC7C,GAAG,SAAS,cAAc,GAAG,cAAc,IACzC,CACF,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,CAAC,EAC5B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,YAAY,KACf,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAA;AAE7B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gBAAgB,CAC9B,CAAC,EACD,CAAC,GAAG,IAAI,EACR,GAAG,SAAS,eAAe,GAAG,eAAe,EAC7C,GAAG,SAAS,cAAc,GAAG,cAAc,EAE3C,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAC/D,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EACpD,QAAQ,GAAE,UAAU,CAAC,CAAC,CAAsD,GAC3E,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAuCpE"}
|
package/dist/lib/http/accept.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.acceptMiddleware =
|
3
|
+
exports.acceptMiddleware = acceptMiddleware;
|
4
4
|
const accept_1 = require("@hapi/accept");
|
5
5
|
const context_js_1 = require("./context.js");
|
6
6
|
/**
|
@@ -22,6 +22,7 @@ const context_js_1 = require("./context.js");
|
|
22
22
|
* }
|
23
23
|
* )
|
24
24
|
* )
|
25
|
+
* ```
|
25
26
|
*/
|
26
27
|
function acceptMiddleware(controller, views, fallback = (req, res, _next) => void res.writeHead(406).end()) {
|
27
28
|
const viewsMap = new Map(Object.entries(views));
|
@@ -63,5 +64,4 @@ function acceptMiddleware(controller, views, fallback = (req, res, _next) => voi
|
|
63
64
|
}
|
64
65
|
};
|
65
66
|
}
|
66
|
-
exports.acceptMiddleware = acceptMiddleware;
|
67
67
|
//# sourceMappingURL=accept.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"accept.js","sourceRoot":"","sources":["../../../src/lib/http/accept.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"accept.js","sourceRoot":"","sources":["../../../src/lib/http/accept.ts"],"names":[],"mappings":";;AA2CA,4CAgDC;AA3FD,yCAAwC;AAExC,6CAA6C;AAoB7C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,gBAAgB,CAM9B,UAA+D,EAC/D,KAAoD,EACpD,WAA0B,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE;IAE5E,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAA;IAC/C,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAE/D,8EAA8E;IAC9E,YAAY;IACZ,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;QACnC,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAC/B,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,UAAU,EAAE,CAAC;YACzE,MAAM,IAAI,KAAK,CAAC,iBAA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O,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,GAAG,CAAC,WAAW;gBAAE,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC,CAAA;YACtD,IAAI,CAAC,GAAG,CAAC,CAAA;QACX,CAAC;IACH,CAAC,CAAA;AACH,CAAC"}
|
package/dist/lib/http/context.js
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.subCtx =
|
3
|
+
exports.subCtx = subCtx;
|
4
4
|
function subCtx(ctx, key, value) {
|
5
5
|
return Object.create(typeof ctx === 'object' ? ctx : null, {
|
6
6
|
[key]: { value, enumerable: true, writable: false },
|
7
7
|
});
|
8
8
|
}
|
9
|
-
exports.subCtx = subCtx;
|
10
9
|
//# sourceMappingURL=context.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/lib/http/context.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/lib/http/context.ts"],"names":[],"mappings":";;AAEA,wBAQC;AARD,SAAgB,MAAM,CACpB,GAAM,EACN,GAAM,EACN,KAAQ;IAER,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE;QACzD,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE;KACpD,CAAC,CAAA;AACJ,CAAC"}
|