@aptly-as/express-scope 1.0.3 → 1.1.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.
package/lib/Scope.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { NextFunction, Request, Response } from 'express';
2
2
  import { ScopeAccess, ScopeFn, ScopeRolesSchema, ScopeModuleSchema, ScopeRequest, ScopeRequestItem, ScopeRequestValidate } from './types.js';
3
- export default class Scope<R extends Request, SCOPE extends string, MODULE extends ScopeModuleSchema<string, SCOPE>, USER extends ScopeRolesSchema<string, SCOPE>, ORG extends ScopeRolesSchema<string, SCOPE>> {
3
+ export declare class Scope<R extends Request, SCOPE extends string, MODULE extends ScopeModuleSchema<string, SCOPE>, USER extends ScopeRolesSchema<string, SCOPE>, ORG extends ScopeRolesSchema<string, SCOPE>> {
4
4
  private _modules;
5
5
  private _userRoles;
6
6
  private _organizationRoles;
@@ -11,14 +11,8 @@ export default class Scope<R extends Request, SCOPE extends string, MODULE exten
11
11
  get user(): USER;
12
12
  get organization(): ORG;
13
13
  get scopes(): SCOPE[];
14
- /**
15
- * @deprecated use access instead
16
- */
17
14
  crud(scope: SCOPE | SCOPE[], access?: ScopeAccess, validate?: ScopeRequestValidate<R>): (req: R, res: Response<any, Record<string, any>>, next?: NextFunction | undefined) => boolean | void | Response<any, Record<string, any>>;
18
15
  access(scope: SCOPE | SCOPE[], access?: ScopeAccess, validate?: ScopeRequestValidate<R>): (req: R, res: Response, next?: NextFunction) => boolean | void | Response<any, Record<string, any>>;
19
- /**
20
- * @deprecated use list instead
21
- */
22
16
  validate(crudArray: ScopeRequestItem<R, SCOPE> | Array<ScopeRequestItem<R, SCOPE>>): (req: R, res: Response<any, Record<string, any>>, next?: NextFunction | undefined) => boolean | void | Response<any, Record<string, any>>;
23
17
  list(crudArray: ScopeRequestItem<R, SCOPE> | Array<ScopeRequestItem<R, SCOPE>>): (req: R, res: Response, next?: NextFunction) => boolean | void | Response<any, Record<string, any>>;
24
18
  get<K extends 'json' | 'next' | 'return' = 'json'>(action?: K, key?: K extends 'next' ? keyof R : undefined): (req: R, res: Response, next: NextFunction) => any;
package/lib/Scope.js CHANGED
@@ -1,6 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class Scope {
1
+ export class Scope {
4
2
  constructor(_modules, _userRoles, _organizationRoles, _request, _error) {
5
3
  this._modules = _modules;
6
4
  this._userRoles = _userRoles;
@@ -26,9 +24,6 @@ class Scope {
26
24
  get scopes() {
27
25
  return this._scopes;
28
26
  }
29
- /**
30
- * @deprecated use access instead
31
- */
32
27
  crud(scope, access = 'R', validate) {
33
28
  return this.access(scope, access, validate);
34
29
  }
@@ -55,9 +50,6 @@ class Scope {
55
50
  }
56
51
  };
57
52
  }
58
- /**
59
- * @deprecated use list instead
60
- */
61
53
  validate(crudArray) {
62
54
  return this.list(crudArray);
63
55
  }
@@ -130,8 +122,7 @@ class Scope {
130
122
  .flat();
131
123
  }
132
124
  _getScopeFromModelScopes(scope, x, key) {
133
- var _a, _b;
134
- return ((_b = (_a = scope[x]) === null || _a === void 0 ? void 0 : _a[key]) === null || _b === void 0 ? void 0 : _b.split('')) || [];
125
+ return scope[x]?.[key]?.split('') || [];
135
126
  }
136
127
  _joinSetsToArray(arr1, arr2) {
137
128
  return [...new Set([...arr1, ...arr2])].join('');
@@ -139,16 +130,16 @@ class Scope {
139
130
  _checkScope(req, scopes, access) {
140
131
  const { user, organization, modules, override } = this._scopeAccess(req);
141
132
  if (modules &&
142
- !modules.some((module) => scopes.some((scope) => { var _a; return (_a = this._modules[module]) === null || _a === void 0 ? void 0 : _a.includes(scope); }))) {
133
+ !modules.some((module) => scopes.some((scope) => this._modules[module]?.includes(scope)))) {
143
134
  return false;
144
135
  }
145
136
  if (override) {
146
137
  return scopes.some((mod) => override[mod] && override[mod].includes(access));
147
138
  }
148
- if (user === null || user === void 0 ? void 0 : user.some((glob) => scopes.some((mod) => { var _a, _b; return (_b = (_a = this._userRoles[glob]) === null || _a === void 0 ? void 0 : _a[mod]) === null || _b === void 0 ? void 0 : _b.includes(access); }))) {
139
+ if (user?.some((glob) => scopes.some((mod) => this._userRoles[glob]?.[mod]?.includes(access)))) {
149
140
  return true;
150
141
  }
151
- if (organization === null || organization === void 0 ? void 0 : organization.some((org) => scopes.some((mod) => { var _a, _b; return (_b = (_a = this._organizationRoles[org]) === null || _a === void 0 ? void 0 : _a[mod]) === null || _b === void 0 ? void 0 : _b.includes(access); }))) {
142
+ if (organization?.some((org) => scopes.some((mod) => this._organizationRoles[org]?.[mod]?.includes(access)))) {
152
143
  return true;
153
144
  }
154
145
  return false;
@@ -180,4 +171,3 @@ class Scope {
180
171
  return res.status(403).json(this._error(req, obj));
181
172
  }
182
173
  }
183
- exports.default = Scope;
@@ -1,5 +1,5 @@
1
1
  import type { Request } from 'express';
2
- import Scope from './Scope.js';
2
+ import { Scope } from './Scope.js';
3
3
  import { ScopeMiddleware } from './ScopeMiddleware.js';
4
4
  export declare class ScopeHandler<R extends Request, S extends string> {
5
5
  private scope;
@@ -1,13 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScopeHandler = void 0;
4
- const ScopeMiddleware_js_1 = require("./ScopeMiddleware.js");
5
- class ScopeHandler {
1
+ import { ScopeMiddleware } from './ScopeMiddleware.js';
2
+ export class ScopeHandler {
6
3
  constructor(scope) {
7
4
  this.scope = scope;
8
5
  }
9
6
  new(scope) {
10
- return new ScopeMiddleware_js_1.ScopeMiddleware(this.scope, scope);
7
+ return new ScopeMiddleware(this.scope, scope);
11
8
  }
12
9
  }
13
- exports.ScopeHandler = ScopeHandler;
@@ -1,5 +1,5 @@
1
1
  import type { Request } from 'express';
2
- import Scope from './Scope.js';
2
+ import { Scope } from './Scope.js';
3
3
  import { ScopeValidateFn } from './types.js';
4
4
  export declare class ScopeMiddleware<R extends Request, S extends string> {
5
5
  private _scope;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScopeMiddleware = void 0;
4
- class ScopeMiddleware {
1
+ export class ScopeMiddleware {
5
2
  constructor(_scope, scope) {
6
3
  this._scope = _scope;
7
4
  this.CREATE = _scope.access(scope, 'C');
@@ -19,4 +16,3 @@ class ScopeMiddleware {
19
16
  return this._scope.validate.bind(this._scope);
20
17
  }
21
18
  }
22
- exports.ScopeMiddleware = ScopeMiddleware;
package/lib/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- import Scope from './Scope.js';
1
+ export * from './Scope.js';
2
2
  export * from './ScopeHandler.js';
3
3
  export * from './types.js';
4
- export default Scope;
5
- export { Scope };
6
4
  export { ScopeMiddleware } from './ScopeMiddleware.js';
package/lib/index.js CHANGED
@@ -1,24 +1,4 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ScopeMiddleware = exports.Scope = void 0;
18
- const Scope_js_1 = require("./Scope.js");
19
- exports.Scope = Scope_js_1.default;
20
- __exportStar(require("./ScopeHandler.js"), exports);
21
- __exportStar(require("./types.js"), exports);
22
- exports.default = Scope_js_1.default;
23
- var ScopeMiddleware_js_1 = require("./ScopeMiddleware.js");
24
- Object.defineProperty(exports, "ScopeMiddleware", { enumerable: true, get: function () { return ScopeMiddleware_js_1.ScopeMiddleware; } });
1
+ export * from './Scope.js';
2
+ export * from './ScopeHandler.js';
3
+ export * from './types.js';
4
+ export { ScopeMiddleware } from './ScopeMiddleware.js';
@@ -1 +1 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/ts3.2/fs.d.ts","../node_modules/@types/node/ts3.2/util.d.ts","../node_modules/@types/node/ts3.2/globals.d.ts","../node_modules/@types/node/ts3.2/index.d.ts","../node_modules/@types/range-parser/index.d.ts","../node_modules/@types/express-serve-static-core/index.d.ts","../node_modules/@types/mime/index.d.ts","../node_modules/@types/serve-static/index.d.ts","../node_modules/@types/connect/index.d.ts","../node_modules/@types/body-parser/index.d.ts","../node_modules/@types/express/index.d.ts","../src/types.ts","../src/scope.ts","../src/scopemiddleware.ts","../src/scopehandler.ts","../src/index.ts","../node_modules/@types/chai/index.d.ts","../node_modules/@types/chai-subset/index.d.ts","../node_modules/@types/minimatch/index.d.ts","../node_modules/@types/sinonjs__fake-timers/index.d.ts","../node_modules/@types/sinon/index.d.ts"],"fileInfos":[{"version":"6a6b471e7e43e15ef6f8fe617a22ce4ecb0e34efa6c3dfcfe7cebd392bcca9d2","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7",{"version":"fcd3ecc9f764f06f4d5c467677f4f117f6abf49dee6716283aa204ff1162498b","affectsGlobalScope":true},{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"6cf62fbc792aa81fa62f99dab5cc692c5315ecd5da09dd35f1ccc82778c4d5bc","affectsGlobalScope":true},"7860312f33f0cf2c93500787d02c4cc43ea3d0c080d4781095ac7715d5da3316","1305b079a057355f496bdde048716189178877a6b4fe0e9267a46af67f8c7561","61215c1a376bbe8f51cab4cc4ddbf3746387015113c37a84d981d4738c21b878","163b9cd8ff3c8f1d4a7fd110099bb5d606a389c58233562516d70ac2d7e0ec7c","ce629710e5e58724902b753212e97861fd73e2aa09f5d88cb6d55dc763cf8c8a","525c8fc510d9632d2a0a9de2d41c3ac1cdd79ff44d3b45c6d81cacabb683528d","0279383034fae92db8097d0a41350293553599cc9c3c917b60e2542d0dfcbd44","43f461871cd5ae52073e97d3c2e5869ebd955c42d30a51d3eb3a6c2cd16b80c4","7954df44c35d39b851b996fdc1af0a252e4e23f862abfef388a058203bb94c30","ef226a42de7022eacdfa0f15aabf73b46c47af93044c8ebfab8aa8e3cf6c330c","d5b7c8819ce1bd31a45f7675309e145ec28e3aa1b60a8e0637fd0e8916255baa","3ad728027671c2c3c829e21803f8d7a15b29d808293644d50d928213280c072d","91b0f655867e04d42d86347eb12b78316faed8bd2c75a7f8400e43e9e34e4ebd","d5470fad800f025be0c4bd1b14c013ea5b4aeec90e53ab0e2703a8fe01f292b3","272c8598c3a29a3fa3027bd0a645c5f49b3f7832dfcf8e47b7260843ec8a40f3","dacbe08610729f6343ea9880ea8e737c6d7a6efa4a318d8f6acaf85db4aceed6","4218ced3933a31eed1278d350dd63c5900df0f0904f57d61c054d7a4b83dbe4c","03394bf8deb8781b490ae9266a843fbdf00647947d79e25fcbf1d89a9e9c8a66","358398fe4034395d85c87c319cca7a04001434b13dc68d067481ecb374385bfc","d9bc6f1917c24d862a68d2633e4a32fd586bfe3e412e5d11fd07d8266b94ced5","5fb30076f0e0e5744db8993648bfb67aadd895f439edad5cce039127a87a8a36","27ef4001526ee9d8afa57687a60bb3b59c52b32d29db0a2260094ab64726164f",{"version":"0e0d58f5e90c0a270dac052b9c5ad8ccdfc8271118c2105b361063218d528d6e","affectsGlobalScope":true},"30ec6f9c683b988c3cfaa0c4690692049c4e7ed7dc6f6e94f56194c06b86f5e1","5b34786b5d59b4e627c76f1294a00b5e92260a31ca87b29d9b7cb9acd3ba1acc","e1045d32a6a59dbcbe0ed2edddc6568221acc299ac68d92284153e7c00b39d51","30b9c2c0949e27506c7e751bd51749ca5ecb0d0a3ea854064039ffaa3707fad4","87a856ce45263344ebf69270ea1b0fc4eb13236a6194300bd5e99d1f022b0c6e","7e62aac2cc9c0710d772047ad89e8d7117f52592c791eb995ce1f865fedab432","b40652bf8ce4a18133b31349086523b219724dca8df3448c1a0742528e7ad5b9","6ba512fc25cfb3db60007c7b1b4428ce497986ac442c370da879223c3c258872","a77fdb357c78b70142b2fdbbfb72958d69e8f765fd2a3c69946c1018e89d4638","df905913ad47e24b6cb41d33f0c1f500bf9c4befe4325413a7644c9eb1e7965c","1e3da92862604b1f7a32265169f9aa712c4567742d42597704e04ae3e07019e7","bf237fb2ca1ac62fde63e5f8178a9030e4d6b11987744007272f03a9deec6f76","4407bd5f1d6f748590ba125195eb1d7a003c2de2f3b057456d3ac76a742d2561","bf244a366e8ee68acda125761c6e337c8795b37eef05947d62f89b584de926b3","7780573ed8387aaadcc61d87f3d60d77dabf1e060da252dc72ab1d73401988bb","f409183966a1dd93d3a9cd1d54fbeb85c73101e87cd5b19467c5e37b252f3fd8","6622f76993bdfeaacb947ba7c4cf26f2e5c5194194d02d792c3cba4174cd8fce","1ed55651f38540dba21f4a864bd89834ddb552446dce8c8a5f9dc0b44ce0b024","4f54f0a9dd3b644c99ec32b32f8804d5978bc854799b228ae9c467bf3c84c64c",{"version":"4926e99d2ad39c0bbd36f2d37cc8f52756bc7a5661ad7b12815df871a4b07ba1","affectsGlobalScope":true},"7c7dabe6de2f88a1b4a4d9a15479c2a99b6f5864b434b9d960fc312ba9498c0a","4e88b833be14c7f384e0dcd57bb30acd799e8e34d212635d693e41a75a71164b",{"version":"79f5491e53054886824c5cfee16f4d9682d78e2ec6d13ef4eae6ec2f82fe0cec","affectsGlobalScope":true},"be27a64e821a3e5af838650e4aa25805c60f057d0c37a9762c378d19d364b3e6","cdbae5083ef8f786069519405ca1f1e2ce72b9efebdf5e1931584fba747f3bc0","c3be42b83b5f57ae2f65280fa395f6d31f61304ac1a29b7b406b6a0e71da8c82","599abfa56230d73afc30a3bde749c2efd90acb58301b446835d5e235b35e2768","6e1c6fe784daeba017901db7766e6b872f535defe33b0e0196d2a12c26f50517",{"version":"9ff45904bd70acf8e977977344989909abbd7ca0a19ccd76b9b44a8ee2bd56b8","signature":"761468fd3482f1648d2e0d093b6355d07c10a6fd105a9e4fc62965f9f0f5108c"},{"version":"20b8afb823433cfbf37a6ad659adfecfe79cc7550bac400af396d35958852e69","signature":"4f1df7f10d8c590f6ca824add3d90c63bafa43ea8b0150a5c56cad5824f298fa"},{"version":"12e68e61e1b4c5acd16d4986f0e93987be3c126f4744558bc043e03be2ddd329","signature":"d901da05f273c40a3e415323bbe5670c83781b4d055d9b1a322ad788b09a9572"},{"version":"6870c22947cb0d3f93807ccb15cdf7f4b77a316e629c180fc483f4da28c2614d","signature":"9b7fd17ca12c86afba71ab8615b2ab13fe4222ec45a5938a56ab96db8177591e"},{"version":"2746350b1ab6f2e77aa95d7eeda939f5d45df57ef619a300acd06325fb7d940d","signature":"75475e39b4d7f12dd6f03ae740ff19c472bfe74e380de4fca589d8395b4882f7"},{"version":"c3bc5d095c3c22fd20b5a6550b9c9a6d56c3ffbb87ef057ccce7764b6bed4428","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"1d1e6bd176eee5970968423d7e215bfd66828b6db8d54d17afec05a831322633","f83b320cceccfc48457a818d18fc9a006ab18d0bdd727aa2c2e73dc1b4a45e98","cffac9db07bba0b35754412e48215d1bc5153c03c46409bbeaf315848359822b"],"root":[[90,94]],"options":{"declaration":true,"jsx":2,"module":1,"noUnusedLocals":false,"noUnusedParameters":false,"outDir":"./","skipLibCheck":true,"sourceMap":false,"strict":true,"target":2},"fileIdsList":[[51,52,73,79,80,82,87],[51,73,79,80,95],[51,73,79,80],[51,52,73,79,80,82],[50,51,52,73,79,80,82,83],[51,73,79,80,84,86,88],[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80],[50,51,57,66,73,79,80],[42,50,51,57,73,79,80],[51,66,73,79,80],[48,50,51,57,73,79,80],[50,51,73,79,80],[50,66,72,73,79,80],[50,51,57,66,72,73,79,80],[50,51,52,57,66,69,72,73,79,80],[50,51,52,69,72,73,79,80],[48,50,51,66,73,79,80],[40,51,73,79,80],[51,71,73,79,80],[50,51,66,73,79,80],[51,64,73,75,79,80],[46,48,51,57,66,73,79,80],[51,73,80],[38,51,73,79,80],[51,73,78,79,80,81],[51,73,79],[51,57,73,79,80],[51,63,73,79,80],[51,79,80],[50,51,66,73,75,79,80],[51,73,79,80,84,85],[51,73,79,80,98],[51,73,79,80,90,91,92,93],[51,73,79,80,89,90],[51,73,79,80,89,91,92],[51,73,79,80,89,90,91],[51,73,79,80,89],[90,91,92,93],[89,90],[89,91,92],[89,90,91],[89]],"referencedMap":[[88,1],[96,2],[95,3],[87,4],[84,5],[89,6],[85,3],[97,3],[39,3],[40,3],[78,7],[41,3],[42,8],[43,9],[44,3],[45,3],[46,10],[47,11],[48,3],[49,12],[50,3],[51,13],[38,3],[52,14],[53,15],[54,16],[55,12],[56,3],[57,17],[58,3],[59,3],[60,18],[61,19],[62,3],[63,3],[64,20],[65,21],[66,12],[67,3],[68,3],[69,22],[70,3],[79,23],[81,24],[82,25],[80,26],[71,27],[72,28],[73,29],[74,10],[75,3],[76,30],[77,10],[83,3],[86,31],[99,32],[98,3],[36,3],[37,3],[7,3],[9,3],[8,3],[2,3],[10,3],[11,3],[12,3],[13,3],[14,3],[15,3],[16,3],[17,3],[3,3],[4,3],[21,3],[18,3],[19,3],[20,3],[22,3],[23,3],[24,3],[5,3],[25,3],[26,3],[27,3],[28,3],[6,3],[32,3],[29,3],[30,3],[31,3],[33,3],[34,3],[1,3],[35,3],[94,33],[91,34],[93,35],[92,36],[90,37]],"exportedModulesMap":[[88,1],[96,2],[95,3],[87,4],[84,5],[89,6],[85,3],[97,3],[39,3],[40,3],[78,7],[41,3],[42,8],[43,9],[44,3],[45,3],[46,10],[47,11],[48,3],[49,12],[50,3],[51,13],[38,3],[52,14],[53,15],[54,16],[55,12],[56,3],[57,17],[58,3],[59,3],[60,18],[61,19],[62,3],[63,3],[64,20],[65,21],[66,12],[67,3],[68,3],[69,22],[70,3],[79,23],[81,24],[82,25],[80,26],[71,27],[72,28],[73,29],[74,10],[75,3],[76,30],[77,10],[83,3],[86,31],[99,32],[98,3],[36,3],[37,3],[7,3],[9,3],[8,3],[2,3],[10,3],[11,3],[12,3],[13,3],[14,3],[15,3],[16,3],[17,3],[3,3],[4,3],[21,3],[18,3],[19,3],[20,3],[22,3],[23,3],[24,3],[5,3],[25,3],[26,3],[27,3],[28,3],[6,3],[32,3],[29,3],[30,3],[31,3],[33,3],[34,3],[1,3],[35,3],[94,38],[91,39],[93,40],[92,41],[90,42]],"semanticDiagnosticsPerFile":[88,96,95,87,84,89,85,97,39,40,78,41,42,43,44,45,46,47,48,49,50,51,38,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,79,81,82,80,71,72,73,74,75,76,77,83,86,99,98,36,37,7,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,6,32,29,30,31,33,34,1,35,94,91,93,92,90]},"version":"5.0.4"}
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2021.full.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/ts3.2/fs.d.ts","../node_modules/@types/node/ts3.2/util.d.ts","../node_modules/@types/node/ts3.2/globals.d.ts","../node_modules/@types/node/ts3.2/index.d.ts","../node_modules/@types/send/node_modules/@types/mime/index.d.ts","../node_modules/@types/send/index.d.ts","../node_modules/@types/range-parser/index.d.ts","../node_modules/@types/qs/index.d.ts","../node_modules/@types/express-serve-static-core/index.d.ts","../node_modules/@types/serve-static/node_modules/@types/express-serve-static-core/index.d.ts","../node_modules/@types/mime/index.d.ts","../node_modules/@types/serve-static/index.d.ts","../node_modules/@types/connect/index.d.ts","../node_modules/@types/body-parser/index.d.ts","../node_modules/@types/express/index.d.ts","../src/types.ts","../src/scope.ts","../src/scopemiddleware.ts","../src/scopehandler.ts","../src/index.ts","../node_modules/@types/chai/index.d.ts","../node_modules/@types/chai-subset/index.d.ts","../node_modules/@types/sinonjs__fake-timers/index.d.ts","../node_modules/@types/sinon/index.d.ts"],"fileInfos":[{"version":"6a6b471e7e43e15ef6f8fe617a22ce4ecb0e34efa6c3dfcfe7cebd392bcca9d2","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569",{"version":"fcd3ecc9f764f06f4d5c467677f4f117f6abf49dee6716283aa204ff1162498b","affectsGlobalScope":true},{"version":"9a60b92bca4c1257db03b349d58e63e4868cfc0d1c8d0ba60c2dbc63f4e6c9f6","affectsGlobalScope":true},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true},{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"c1e8d979afc15d66e2bd5a58c732d5a2ba3ccaae41ac7d5a2c539e6de66a8e51",{"version":"6cf62fbc792aa81fa62f99dab5cc692c5315ecd5da09dd35f1ccc82778c4d5bc","affectsGlobalScope":true},"7860312f33f0cf2c93500787d02c4cc43ea3d0c080d4781095ac7715d5da3316","1305b079a057355f496bdde048716189178877a6b4fe0e9267a46af67f8c7561","61215c1a376bbe8f51cab4cc4ddbf3746387015113c37a84d981d4738c21b878","163b9cd8ff3c8f1d4a7fd110099bb5d606a389c58233562516d70ac2d7e0ec7c","ce629710e5e58724902b753212e97861fd73e2aa09f5d88cb6d55dc763cf8c8a","525c8fc510d9632d2a0a9de2d41c3ac1cdd79ff44d3b45c6d81cacabb683528d","0279383034fae92db8097d0a41350293553599cc9c3c917b60e2542d0dfcbd44","43f461871cd5ae52073e97d3c2e5869ebd955c42d30a51d3eb3a6c2cd16b80c4","7954df44c35d39b851b996fdc1af0a252e4e23f862abfef388a058203bb94c30","ef226a42de7022eacdfa0f15aabf73b46c47af93044c8ebfab8aa8e3cf6c330c","d5b7c8819ce1bd31a45f7675309e145ec28e3aa1b60a8e0637fd0e8916255baa","3ad728027671c2c3c829e21803f8d7a15b29d808293644d50d928213280c072d","91b0f655867e04d42d86347eb12b78316faed8bd2c75a7f8400e43e9e34e4ebd","d5470fad800f025be0c4bd1b14c013ea5b4aeec90e53ab0e2703a8fe01f292b3","272c8598c3a29a3fa3027bd0a645c5f49b3f7832dfcf8e47b7260843ec8a40f3","dacbe08610729f6343ea9880ea8e737c6d7a6efa4a318d8f6acaf85db4aceed6","4218ced3933a31eed1278d350dd63c5900df0f0904f57d61c054d7a4b83dbe4c","03394bf8deb8781b490ae9266a843fbdf00647947d79e25fcbf1d89a9e9c8a66","358398fe4034395d85c87c319cca7a04001434b13dc68d067481ecb374385bfc","d9bc6f1917c24d862a68d2633e4a32fd586bfe3e412e5d11fd07d8266b94ced5","5fb30076f0e0e5744db8993648bfb67aadd895f439edad5cce039127a87a8a36","27ef4001526ee9d8afa57687a60bb3b59c52b32d29db0a2260094ab64726164f",{"version":"0e0d58f5e90c0a270dac052b9c5ad8ccdfc8271118c2105b361063218d528d6e","affectsGlobalScope":true},"30ec6f9c683b988c3cfaa0c4690692049c4e7ed7dc6f6e94f56194c06b86f5e1","5b34786b5d59b4e627c76f1294a00b5e92260a31ca87b29d9b7cb9acd3ba1acc","e1045d32a6a59dbcbe0ed2edddc6568221acc299ac68d92284153e7c00b39d51","30b9c2c0949e27506c7e751bd51749ca5ecb0d0a3ea854064039ffaa3707fad4","87a856ce45263344ebf69270ea1b0fc4eb13236a6194300bd5e99d1f022b0c6e","7e62aac2cc9c0710d772047ad89e8d7117f52592c791eb995ce1f865fedab432","b40652bf8ce4a18133b31349086523b219724dca8df3448c1a0742528e7ad5b9","6ba512fc25cfb3db60007c7b1b4428ce497986ac442c370da879223c3c258872","a77fdb357c78b70142b2fdbbfb72958d69e8f765fd2a3c69946c1018e89d4638","df905913ad47e24b6cb41d33f0c1f500bf9c4befe4325413a7644c9eb1e7965c","1e3da92862604b1f7a32265169f9aa712c4567742d42597704e04ae3e07019e7","bf237fb2ca1ac62fde63e5f8178a9030e4d6b11987744007272f03a9deec6f76","4407bd5f1d6f748590ba125195eb1d7a003c2de2f3b057456d3ac76a742d2561","bf244a366e8ee68acda125761c6e337c8795b37eef05947d62f89b584de926b3","7780573ed8387aaadcc61d87f3d60d77dabf1e060da252dc72ab1d73401988bb","f409183966a1dd93d3a9cd1d54fbeb85c73101e87cd5b19467c5e37b252f3fd8","6622f76993bdfeaacb947ba7c4cf26f2e5c5194194d02d792c3cba4174cd8fce","1ed55651f38540dba21f4a864bd89834ddb552446dce8c8a5f9dc0b44ce0b024","4f54f0a9dd3b644c99ec32b32f8804d5978bc854799b228ae9c467bf3c84c64c",{"version":"4926e99d2ad39c0bbd36f2d37cc8f52756bc7a5661ad7b12815df871a4b07ba1","affectsGlobalScope":true},"7c7dabe6de2f88a1b4a4d9a15479c2a99b6f5864b434b9d960fc312ba9498c0a","84e3bbd6f80983d468260fdbfeeb431cc81f7ea98d284d836e4d168e36875e86","aad5ffa61406b8e19524738fcf0e6fda8b3485bba98626268fdf252d1b2b630a","4e88b833be14c7f384e0dcd57bb30acd799e8e34d212635d693e41a75a71164b","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"352fc8497a30bc806d7defa0043d85802e5f35a7688731ee9a21456f5cb32a94","affectsGlobalScope":true},{"version":"79f5491e53054886824c5cfee16f4d9682d78e2ec6d13ef4eae6ec2f82fe0cec","affectsGlobalScope":true},"be27a64e821a3e5af838650e4aa25805c60f057d0c37a9762c378d19d364b3e6","cdbae5083ef8f786069519405ca1f1e2ce72b9efebdf5e1931584fba747f3bc0","c3be42b83b5f57ae2f65280fa395f6d31f61304ac1a29b7b406b6a0e71da8c82","599abfa56230d73afc30a3bde749c2efd90acb58301b446835d5e235b35e2768","43cdd474c5aa3340da4816bb8f1ae7f3b1bcf9e70d997afc36a0f2c432378c84",{"version":"7363c2f561cbf2ff9ae0fd63c6c0ef0b40a85e2a5e801e5df28bff9550e1ad71","signature":"db304f624e4fd7d1495b248c296024b1b0f81b65c5c2c289269c3cb6a9c9add3"},{"version":"67a3ba782af76a8588b55441e4439e849ef57f3a75ce3796e77ff7f2cf8b6688","signature":"00e366b461b60b1390efc60ecad582859cfc34867163d1652ebf227d90309b1b"},{"version":"9819886e42e771c3f0e6b3009fe6b934bec89b8a1b4e52e2b427f8cd45996c73","signature":"acb752e2925c36df39c9e44eb093a98aef9c2253a9087105b4c54ce7dd08f868"},{"version":"751f9104d42efc8dd48289f4cdbf77c5251c2aa9858e0526c872a08d3ada611e","signature":"c96f9f1ec9d5575ace1f6d8424112829a9685e316b9935ffa08111e058f91da4"},{"version":"2fd496cef6d77ec76c6570b052d88d9011d48e0c47096b36a23e83890eff704e","signature":"4adfbb0ca2fa9dfa898085de41abb3e13921c2ceec56b7d08bf973a7c91da7d4"},{"version":"c3bc5d095c3c22fd20b5a6550b9c9a6d56c3ffbb87ef057ccce7764b6bed4428","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"f83b320cceccfc48457a818d18fc9a006ab18d0bdd727aa2c2e73dc1b4a45e98","cffac9db07bba0b35754412e48215d1bc5153c03c46409bbeaf315848359822b"],"root":[[110,114]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":false,"esModuleInterop":true,"jsx":2,"module":99,"noImplicitAny":true,"noImplicitReturns":true,"noUnusedParameters":true,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":false,"strict":true,"target":8},"fileIdsList":[[67,68,89,95,96,98,107],[67,89,95,96,115],[67,89,95,96],[67,68,89,95,96,98],[66,67,68,89,95,96,98,100,101,102],[67,89,95,96,102,103,106,108],[54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96],[66,67,73,82,89,95,96],[58,66,67,73,89,95,96],[67,82,89,95,96],[64,66,67,73,89,95,96],[66,67,89,95,96],[66,82,88,89,95,96],[66,67,73,82,88,89,95,96],[66,67,68,73,82,85,88,89,95,96],[66,67,68,85,88,89,95,96],[64,66,67,82,89,95,96],[56,67,89,95,96],[67,87,89,95,96],[66,67,82,89,95,96],[67,80,89,91,95,96],[62,64,67,73,82,89,95,96],[67,89,96],[54,67,89,95,96],[67,89,94,95,96,97],[67,89,95],[67,73,89,95,96],[67,79,89,95,96],[67,95,96],[66,67,82,89,91,95,96],[67,82,89,95,96,98,99],[67,89,95,96,103,104,105],[66,67,68,89,95,96,98,101],[67,89,95,96,117],[67,89,95,96,110,111,112,113],[67,89,95,96,109,110],[67,89,95,96,109,111,112],[67,89,95,96,109,110,111],[67,89,95,96,109],[110,111,112,113],[109,110],[109,111,112],[109,110,111],[109]],"referencedMap":[[108,1],[116,2],[115,3],[107,4],[103,5],[109,6],[105,3],[55,3],[56,3],[94,7],[57,3],[58,8],[59,9],[60,3],[61,3],[62,10],[63,11],[64,3],[65,12],[66,3],[67,13],[54,3],[68,14],[69,15],[70,16],[71,12],[72,3],[73,17],[74,3],[75,3],[76,18],[77,19],[78,3],[79,3],[80,20],[81,21],[82,12],[83,3],[84,3],[85,22],[86,3],[95,23],[97,24],[98,25],[96,26],[87,27],[88,28],[89,29],[90,10],[91,3],[92,30],[93,10],[102,3],[101,3],[100,31],[99,3],[106,32],[104,33],[118,34],[117,3],[51,3],[52,3],[9,3],[10,3],[14,3],[13,3],[2,3],[15,3],[16,3],[17,3],[18,3],[19,3],[20,3],[21,3],[22,3],[3,3],[4,3],[26,3],[23,3],[24,3],[25,3],[27,3],[28,3],[29,3],[5,3],[30,3],[31,3],[32,3],[33,3],[6,3],[37,3],[34,3],[35,3],[36,3],[38,3],[7,3],[39,3],[44,3],[45,3],[40,3],[41,3],[42,3],[43,3],[8,3],[53,3],[49,3],[46,3],[47,3],[48,3],[1,3],[50,3],[12,3],[11,3],[114,35],[111,36],[113,37],[112,38],[110,39]],"exportedModulesMap":[[108,1],[116,2],[115,3],[107,4],[103,5],[109,6],[105,3],[55,3],[56,3],[94,7],[57,3],[58,8],[59,9],[60,3],[61,3],[62,10],[63,11],[64,3],[65,12],[66,3],[67,13],[54,3],[68,14],[69,15],[70,16],[71,12],[72,3],[73,17],[74,3],[75,3],[76,18],[77,19],[78,3],[79,3],[80,20],[81,21],[82,12],[83,3],[84,3],[85,22],[86,3],[95,23],[97,24],[98,25],[96,26],[87,27],[88,28],[89,29],[90,10],[91,3],[92,30],[93,10],[102,3],[101,3],[100,31],[99,3],[106,32],[104,33],[118,34],[117,3],[51,3],[52,3],[9,3],[10,3],[14,3],[13,3],[2,3],[15,3],[16,3],[17,3],[18,3],[19,3],[20,3],[21,3],[22,3],[3,3],[4,3],[26,3],[23,3],[24,3],[25,3],[27,3],[28,3],[29,3],[5,3],[30,3],[31,3],[32,3],[33,3],[6,3],[37,3],[34,3],[35,3],[36,3],[38,3],[7,3],[39,3],[44,3],[45,3],[40,3],[41,3],[42,3],[43,3],[8,3],[53,3],[49,3],[46,3],[47,3],[48,3],[1,3],[50,3],[12,3],[11,3],[114,40],[111,41],[113,42],[112,43],[110,44]],"semanticDiagnosticsPerFile":[108,116,115,107,103,109,105,55,56,94,57,58,59,60,61,62,63,64,65,66,67,54,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,95,97,98,96,87,88,89,90,91,92,93,102,101,100,99,106,104,118,117,51,52,9,10,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,53,49,46,47,48,1,50,12,11,114,111,113,112,110]},"version":"5.0.4"}
package/lib/types.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/package.json CHANGED
@@ -1,20 +1,18 @@
1
1
  {
2
2
  "name": "@aptly-as/express-scope",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
7
+ "module": "./lib/index.js",
7
8
  "types": "./lib/index.d.ts",
8
9
  "scripts": {
9
10
  "dev": "yarn build:watch",
10
11
  "build": "tsc",
11
12
  "build:watch": "tsc --watch --incremental",
12
13
  "lint": "tslint --project \"./tsconfig.json\"",
13
- "test:watch": "mocha --watch --watch-extensions ts -r ts-node/register",
14
14
  "test": "vitest run",
15
15
  "test:ui": "vitest --ui --api 9527",
16
- "coverage": "nyc mocha -r ts-node/register",
17
- "coveralls": "yarn coverage | coveralls",
18
16
  "postversion": "git push && git push --tags",
19
17
  "prepublish": "yarn test && yarn build",
20
18
  "preversion": "yarn build",