@shware/security 1.4.0 → 1.4.1
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/core/index.cjs +42 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +16 -1
- package/dist/core/index.d.ts +16 -1
- package/dist/core/index.mjs +34 -0
- package/dist/core/index.mjs.map +1 -1
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -1
package/dist/core/index.cjs
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -15,5 +19,43 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
15
19
|
|
|
16
20
|
// src/core/index.ts
|
|
17
21
|
var core_exports = {};
|
|
22
|
+
__export(core_exports, {
|
|
23
|
+
ALL_PROVIDERS: () => ALL_PROVIDERS,
|
|
24
|
+
Provider: () => Provider
|
|
25
|
+
});
|
|
18
26
|
module.exports = __toCommonJS(core_exports);
|
|
27
|
+
var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
28
|
+
Provider2["APPLE"] = "APPLE";
|
|
29
|
+
Provider2["DISCORD"] = "DISCORD";
|
|
30
|
+
Provider2["FACEBOOK"] = "FACEBOOK";
|
|
31
|
+
Provider2["GITHUB"] = "GITHUB";
|
|
32
|
+
Provider2["GOOGLE"] = "GOOGLE";
|
|
33
|
+
Provider2["LINKEDIN"] = "LINKEDIN";
|
|
34
|
+
Provider2["MICROSOFT"] = "MICROSOFT";
|
|
35
|
+
Provider2["SLACK"] = "SLACK";
|
|
36
|
+
Provider2["WECHAT"] = "WECHAT";
|
|
37
|
+
Provider2["X"] = "X";
|
|
38
|
+
Provider2["EMAIL"] = "EMAIL";
|
|
39
|
+
Provider2["PHONE"] = "PHONE";
|
|
40
|
+
return Provider2;
|
|
41
|
+
})(Provider || {});
|
|
42
|
+
var ALL_PROVIDERS = [
|
|
43
|
+
"APPLE" /* APPLE */,
|
|
44
|
+
"DISCORD" /* DISCORD */,
|
|
45
|
+
"FACEBOOK" /* FACEBOOK */,
|
|
46
|
+
"GITHUB" /* GITHUB */,
|
|
47
|
+
"GOOGLE" /* GOOGLE */,
|
|
48
|
+
"LINKEDIN" /* LINKEDIN */,
|
|
49
|
+
"MICROSOFT" /* MICROSOFT */,
|
|
50
|
+
"SLACK" /* SLACK */,
|
|
51
|
+
"WECHAT" /* WECHAT */,
|
|
52
|
+
"X" /* X */,
|
|
53
|
+
"EMAIL" /* EMAIL */,
|
|
54
|
+
"PHONE" /* PHONE */
|
|
55
|
+
];
|
|
56
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
+
0 && (module.exports = {
|
|
58
|
+
ALL_PROVIDERS,
|
|
59
|
+
Provider
|
|
60
|
+
});
|
|
19
61
|
//# sourceMappingURL=index.cjs.map
|
package/dist/core/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/index.ts"],"sourcesContent":["export type JSONValue =\n | null\n | string\n | number\n | boolean\n | { [value: string]: JSONValue }\n | Array<JSONValue>;\n\nexport interface Principal {\n name: string;\n}\n\nexport interface Authentication extends Principal {\n authorities: string[];\n authenticated: boolean;\n}\n\nexport interface CsrfToken {\n token: string;\n headerName: string;\n parameterName: string;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/core/index.ts"],"sourcesContent":["export type JSONValue =\n | null\n | string\n | number\n | boolean\n | { [value: string]: JSONValue }\n | Array<JSONValue>;\n\nexport interface Principal {\n name: string;\n}\n\nexport interface Authentication extends Principal {\n authorities: string[];\n authenticated: boolean;\n}\n\nexport interface CsrfToken {\n token: string;\n headerName: string;\n parameterName: string;\n}\n\nexport enum Provider {\n // oauth2\n APPLE = 'APPLE',\n DISCORD = 'DISCORD',\n FACEBOOK = 'FACEBOOK',\n GITHUB = 'GITHUB',\n GOOGLE = 'GOOGLE',\n LINKEDIN = 'LINKEDIN',\n MICROSOFT = 'MICROSOFT',\n SLACK = 'SLACK',\n WECHAT = 'WECHAT',\n X = 'X',\n // contact\n EMAIL = 'EMAIL',\n PHONE = 'PHONE',\n}\n\nexport const ALL_PROVIDERS = [\n Provider.APPLE,\n Provider.DISCORD,\n Provider.FACEBOOK,\n Provider.GITHUB,\n Provider.GOOGLE,\n Provider.LINKEDIN,\n Provider.MICROSOFT,\n Provider.SLACK,\n Provider.WECHAT,\n Provider.X,\n Provider.EMAIL,\n Provider.PHONE,\n] as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBO,IAAK,WAAL,kBAAKA,cAAL;AAEL,EAAAA,UAAA,WAAQ;AACR,EAAAA,UAAA,aAAU;AACV,EAAAA,UAAA,cAAW;AACX,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,cAAW;AACX,EAAAA,UAAA,eAAY;AACZ,EAAAA,UAAA,WAAQ;AACR,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,OAAI;AAEJ,EAAAA,UAAA,WAAQ;AACR,EAAAA,UAAA,WAAQ;AAdE,SAAAA;AAAA,GAAA;AAiBL,IAAM,gBAAgB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":["Provider"]}
|
package/dist/core/index.d.cts
CHANGED
|
@@ -13,5 +13,20 @@ interface CsrfToken {
|
|
|
13
13
|
headerName: string;
|
|
14
14
|
parameterName: string;
|
|
15
15
|
}
|
|
16
|
+
declare enum Provider {
|
|
17
|
+
APPLE = "APPLE",
|
|
18
|
+
DISCORD = "DISCORD",
|
|
19
|
+
FACEBOOK = "FACEBOOK",
|
|
20
|
+
GITHUB = "GITHUB",
|
|
21
|
+
GOOGLE = "GOOGLE",
|
|
22
|
+
LINKEDIN = "LINKEDIN",
|
|
23
|
+
MICROSOFT = "MICROSOFT",
|
|
24
|
+
SLACK = "SLACK",
|
|
25
|
+
WECHAT = "WECHAT",
|
|
26
|
+
X = "X",
|
|
27
|
+
EMAIL = "EMAIL",
|
|
28
|
+
PHONE = "PHONE"
|
|
29
|
+
}
|
|
30
|
+
declare const ALL_PROVIDERS: readonly [Provider.APPLE, Provider.DISCORD, Provider.FACEBOOK, Provider.GITHUB, Provider.GOOGLE, Provider.LINKEDIN, Provider.MICROSOFT, Provider.SLACK, Provider.WECHAT, Provider.X, Provider.EMAIL, Provider.PHONE];
|
|
16
31
|
|
|
17
|
-
export type
|
|
32
|
+
export { ALL_PROVIDERS, type Authentication, type CsrfToken, type JSONValue, type Principal, Provider };
|
package/dist/core/index.d.ts
CHANGED
|
@@ -13,5 +13,20 @@ interface CsrfToken {
|
|
|
13
13
|
headerName: string;
|
|
14
14
|
parameterName: string;
|
|
15
15
|
}
|
|
16
|
+
declare enum Provider {
|
|
17
|
+
APPLE = "APPLE",
|
|
18
|
+
DISCORD = "DISCORD",
|
|
19
|
+
FACEBOOK = "FACEBOOK",
|
|
20
|
+
GITHUB = "GITHUB",
|
|
21
|
+
GOOGLE = "GOOGLE",
|
|
22
|
+
LINKEDIN = "LINKEDIN",
|
|
23
|
+
MICROSOFT = "MICROSOFT",
|
|
24
|
+
SLACK = "SLACK",
|
|
25
|
+
WECHAT = "WECHAT",
|
|
26
|
+
X = "X",
|
|
27
|
+
EMAIL = "EMAIL",
|
|
28
|
+
PHONE = "PHONE"
|
|
29
|
+
}
|
|
30
|
+
declare const ALL_PROVIDERS: readonly [Provider.APPLE, Provider.DISCORD, Provider.FACEBOOK, Provider.GITHUB, Provider.GOOGLE, Provider.LINKEDIN, Provider.MICROSOFT, Provider.SLACK, Provider.WECHAT, Provider.X, Provider.EMAIL, Provider.PHONE];
|
|
16
31
|
|
|
17
|
-
export type
|
|
32
|
+
export { ALL_PROVIDERS, type Authentication, type CsrfToken, type JSONValue, type Principal, Provider };
|
package/dist/core/index.mjs
CHANGED
|
@@ -1 +1,35 @@
|
|
|
1
|
+
// src/core/index.ts
|
|
2
|
+
var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
3
|
+
Provider2["APPLE"] = "APPLE";
|
|
4
|
+
Provider2["DISCORD"] = "DISCORD";
|
|
5
|
+
Provider2["FACEBOOK"] = "FACEBOOK";
|
|
6
|
+
Provider2["GITHUB"] = "GITHUB";
|
|
7
|
+
Provider2["GOOGLE"] = "GOOGLE";
|
|
8
|
+
Provider2["LINKEDIN"] = "LINKEDIN";
|
|
9
|
+
Provider2["MICROSOFT"] = "MICROSOFT";
|
|
10
|
+
Provider2["SLACK"] = "SLACK";
|
|
11
|
+
Provider2["WECHAT"] = "WECHAT";
|
|
12
|
+
Provider2["X"] = "X";
|
|
13
|
+
Provider2["EMAIL"] = "EMAIL";
|
|
14
|
+
Provider2["PHONE"] = "PHONE";
|
|
15
|
+
return Provider2;
|
|
16
|
+
})(Provider || {});
|
|
17
|
+
var ALL_PROVIDERS = [
|
|
18
|
+
"APPLE" /* APPLE */,
|
|
19
|
+
"DISCORD" /* DISCORD */,
|
|
20
|
+
"FACEBOOK" /* FACEBOOK */,
|
|
21
|
+
"GITHUB" /* GITHUB */,
|
|
22
|
+
"GOOGLE" /* GOOGLE */,
|
|
23
|
+
"LINKEDIN" /* LINKEDIN */,
|
|
24
|
+
"MICROSOFT" /* MICROSOFT */,
|
|
25
|
+
"SLACK" /* SLACK */,
|
|
26
|
+
"WECHAT" /* WECHAT */,
|
|
27
|
+
"X" /* X */,
|
|
28
|
+
"EMAIL" /* EMAIL */,
|
|
29
|
+
"PHONE" /* PHONE */
|
|
30
|
+
];
|
|
31
|
+
export {
|
|
32
|
+
ALL_PROVIDERS,
|
|
33
|
+
Provider
|
|
34
|
+
};
|
|
1
35
|
//# sourceMappingURL=index.mjs.map
|
package/dist/core/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/core/index.ts"],"sourcesContent":["export type JSONValue =\n | null\n | string\n | number\n | boolean\n | { [value: string]: JSONValue }\n | Array<JSONValue>;\n\nexport interface Principal {\n name: string;\n}\n\nexport interface Authentication extends Principal {\n authorities: string[];\n authenticated: boolean;\n}\n\nexport interface CsrfToken {\n token: string;\n headerName: string;\n parameterName: string;\n}\n\nexport enum Provider {\n // oauth2\n APPLE = 'APPLE',\n DISCORD = 'DISCORD',\n FACEBOOK = 'FACEBOOK',\n GITHUB = 'GITHUB',\n GOOGLE = 'GOOGLE',\n LINKEDIN = 'LINKEDIN',\n MICROSOFT = 'MICROSOFT',\n SLACK = 'SLACK',\n WECHAT = 'WECHAT',\n X = 'X',\n // contact\n EMAIL = 'EMAIL',\n PHONE = 'PHONE',\n}\n\nexport const ALL_PROVIDERS = [\n Provider.APPLE,\n Provider.DISCORD,\n Provider.FACEBOOK,\n Provider.GITHUB,\n Provider.GOOGLE,\n Provider.LINKEDIN,\n Provider.MICROSOFT,\n Provider.SLACK,\n Provider.WECHAT,\n Provider.X,\n Provider.EMAIL,\n Provider.PHONE,\n] as const;\n"],"mappings":";AAuBO,IAAK,WAAL,kBAAKA,cAAL;AAEL,EAAAA,UAAA,WAAQ;AACR,EAAAA,UAAA,aAAU;AACV,EAAAA,UAAA,cAAW;AACX,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,cAAW;AACX,EAAAA,UAAA,eAAY;AACZ,EAAAA,UAAA,WAAQ;AACR,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,OAAI;AAEJ,EAAAA,UAAA,WAAQ;AACR,EAAAA,UAAA,WAAQ;AAdE,SAAAA;AAAA,GAAA;AAiBL,IAAM,gBAAgB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":["Provider"]}
|
package/dist/index.cjs
CHANGED
|
@@ -20,10 +20,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
ALL_PROVIDERS: () => import_core.ALL_PROVIDERS,
|
|
23
24
|
Auth: () => import_auth.Auth,
|
|
24
25
|
DBIndexedSessionRepository: () => import_db.DBIndexedSessionRepository,
|
|
25
26
|
OAuth2Client: () => import_client.OAuth2Client,
|
|
26
27
|
PRINCIPAL_NAME_INDEX_NAME: () => import_common.PRINCIPAL_NAME_INDEX_NAME,
|
|
28
|
+
Provider: () => import_core.Provider,
|
|
27
29
|
RedisIndexedSessionRepository: () => import_redis.RedisIndexedSessionRepository,
|
|
28
30
|
RedisKVRepository: () => import_redis.RedisKVRepository,
|
|
29
31
|
oauth2RedirectQuerySchema: () => import_client.oauth2RedirectQuerySchema
|
|
@@ -34,12 +36,15 @@ var import_client = require("./oauth2/client.cjs");
|
|
|
34
36
|
var import_redis = require("./session/redis.cjs");
|
|
35
37
|
var import_db = require("./session/db.cjs");
|
|
36
38
|
var import_common = require("./session/common.cjs");
|
|
39
|
+
var import_core = require("./core/index.cjs");
|
|
37
40
|
// Annotate the CommonJS export names for ESM import in node:
|
|
38
41
|
0 && (module.exports = {
|
|
42
|
+
ALL_PROVIDERS,
|
|
39
43
|
Auth,
|
|
40
44
|
DBIndexedSessionRepository,
|
|
41
45
|
OAuth2Client,
|
|
42
46
|
PRINCIPAL_NAME_INDEX_NAME,
|
|
47
|
+
Provider,
|
|
43
48
|
RedisIndexedSessionRepository,
|
|
44
49
|
RedisKVRepository,
|
|
45
50
|
oauth2RedirectQuerySchema
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { Auth } from './auth/index';\nexport { OAuth2Client, oauth2RedirectQuerySchema } from './oauth2/client';\nexport { RedisIndexedSessionRepository, RedisKVRepository } from './session/redis';\nexport { DBIndexedSessionRepository } from './session/db';\nexport { PRINCIPAL_NAME_INDEX_NAME } from './session/common';\n\nexport type { Principal } from './core/index';\nexport type { DBAdapter } from './session/db';\nexport type { Namespace, SessionRepository, Session, KVRepository } from './session/types';\nexport type { StandardClaims, OAuth2Token, UserInfo, OidcToken, OidcScopes } from './oauth2/types';\nexport type { AuthConfig, AuthService } from './auth/types';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAqB;AACrB,oBAAwD;AACxD,mBAAiE;AACjE,gBAA2C;AAC3C,oBAA0C;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { Auth } from './auth/index';\nexport { OAuth2Client, oauth2RedirectQuerySchema } from './oauth2/client';\nexport { RedisIndexedSessionRepository, RedisKVRepository } from './session/redis';\nexport { DBIndexedSessionRepository } from './session/db';\nexport { PRINCIPAL_NAME_INDEX_NAME } from './session/common';\nexport { Provider, ALL_PROVIDERS } from './core/index';\n\nexport type { Principal, CsrfToken } from './core/index';\nexport type { DBAdapter } from './session/db';\nexport type { Namespace, SessionRepository, Session, KVRepository } from './session/types';\nexport type { StandardClaims, OAuth2Token, UserInfo, OidcToken, OidcScopes } from './oauth2/types';\nexport type { AuthConfig, AuthService } from './auth/types';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAqB;AACrB,oBAAwD;AACxD,mBAAiE;AACjE,gBAA2C;AAC3C,oBAA0C;AAC1C,kBAAwC;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { OAuth2Client, oauth2RedirectQuerySchema } from './oauth2/client.cjs';
|
|
|
3
3
|
export { RedisIndexedSessionRepository, RedisKVRepository } from './session/redis.cjs';
|
|
4
4
|
export { DBAdapter, DBIndexedSessionRepository } from './session/db.cjs';
|
|
5
5
|
export { PRINCIPAL_NAME_INDEX_NAME } from './session/common.cjs';
|
|
6
|
-
export { Principal } from './core/index.cjs';
|
|
6
|
+
export { ALL_PROVIDERS, CsrfToken, Principal, Provider } from './core/index.cjs';
|
|
7
7
|
export { KVRepository, Namespace, Session, SessionRepository } from './session/types.cjs';
|
|
8
8
|
export { OAuth2Token, OidcScopes, OidcToken, StandardClaims, UserInfo } from './oauth2/types.cjs';
|
|
9
9
|
export { AuthConfig, AuthService } from './auth/types.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { OAuth2Client, oauth2RedirectQuerySchema } from './oauth2/client.js';
|
|
|
3
3
|
export { RedisIndexedSessionRepository, RedisKVRepository } from './session/redis.js';
|
|
4
4
|
export { DBAdapter, DBIndexedSessionRepository } from './session/db.js';
|
|
5
5
|
export { PRINCIPAL_NAME_INDEX_NAME } from './session/common.js';
|
|
6
|
-
export { Principal } from './core/index.js';
|
|
6
|
+
export { ALL_PROVIDERS, CsrfToken, Principal, Provider } from './core/index.js';
|
|
7
7
|
export { KVRepository, Namespace, Session, SessionRepository } from './session/types.js';
|
|
8
8
|
export { OAuth2Token, OidcScopes, OidcToken, StandardClaims, UserInfo } from './oauth2/types.js';
|
|
9
9
|
export { AuthConfig, AuthService } from './auth/types.js';
|
package/dist/index.mjs
CHANGED
|
@@ -4,11 +4,14 @@ import { OAuth2Client, oauth2RedirectQuerySchema } from "./oauth2/client.mjs";
|
|
|
4
4
|
import { RedisIndexedSessionRepository, RedisKVRepository } from "./session/redis.mjs";
|
|
5
5
|
import { DBIndexedSessionRepository } from "./session/db.mjs";
|
|
6
6
|
import { PRINCIPAL_NAME_INDEX_NAME } from "./session/common.mjs";
|
|
7
|
+
import { Provider, ALL_PROVIDERS } from "./core/index.mjs";
|
|
7
8
|
export {
|
|
9
|
+
ALL_PROVIDERS,
|
|
8
10
|
Auth,
|
|
9
11
|
DBIndexedSessionRepository,
|
|
10
12
|
OAuth2Client,
|
|
11
13
|
PRINCIPAL_NAME_INDEX_NAME,
|
|
14
|
+
Provider,
|
|
12
15
|
RedisIndexedSessionRepository,
|
|
13
16
|
RedisKVRepository,
|
|
14
17
|
oauth2RedirectQuerySchema
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { Auth } from './auth/index';\nexport { OAuth2Client, oauth2RedirectQuerySchema } from './oauth2/client';\nexport { RedisIndexedSessionRepository, RedisKVRepository } from './session/redis';\nexport { DBIndexedSessionRepository } from './session/db';\nexport { PRINCIPAL_NAME_INDEX_NAME } from './session/common';\n\nexport type { Principal } from './core/index';\nexport type { DBAdapter } from './session/db';\nexport type { Namespace, SessionRepository, Session, KVRepository } from './session/types';\nexport type { StandardClaims, OAuth2Token, UserInfo, OidcToken, OidcScopes } from './oauth2/types';\nexport type { AuthConfig, AuthService } from './auth/types';\n"],"mappings":";AAAA,SAAS,YAAY;AACrB,SAAS,cAAc,iCAAiC;AACxD,SAAS,+BAA+B,yBAAyB;AACjE,SAAS,kCAAkC;AAC3C,SAAS,iCAAiC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { Auth } from './auth/index';\nexport { OAuth2Client, oauth2RedirectQuerySchema } from './oauth2/client';\nexport { RedisIndexedSessionRepository, RedisKVRepository } from './session/redis';\nexport { DBIndexedSessionRepository } from './session/db';\nexport { PRINCIPAL_NAME_INDEX_NAME } from './session/common';\nexport { Provider, ALL_PROVIDERS } from './core/index';\n\nexport type { Principal, CsrfToken } from './core/index';\nexport type { DBAdapter } from './session/db';\nexport type { Namespace, SessionRepository, Session, KVRepository } from './session/types';\nexport type { StandardClaims, OAuth2Token, UserInfo, OidcToken, OidcScopes } from './oauth2/types';\nexport type { AuthConfig, AuthService } from './auth/types';\n"],"mappings":";AAAA,SAAS,YAAY;AACrB,SAAS,cAAc,iCAAiC;AACxD,SAAS,+BAA+B,yBAAyB;AACjE,SAAS,kCAAkC;AAC3C,SAAS,iCAAiC;AAC1C,SAAS,UAAU,qBAAqB;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shware/security",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
"build": "tsup",
|
|
9
9
|
"test": "jest"
|
|
10
10
|
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/ShwareHQ/shware-sdk.git"
|
|
14
|
+
},
|
|
11
15
|
"exports": {
|
|
12
16
|
".": {
|
|
13
17
|
"types": "./dist/index.d.ts",
|