@loopback/example-multi-tenancy 0.12.1 → 0.13.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/LICENSE +3 -3
- package/dist/application.d.ts +3 -3
- package/dist/application.js +2 -2
- package/dist/application.js.map +1 -1
- package/dist/controllers/index.js +3 -3
- package/dist/controllers/index.js.map +1 -1
- package/dist/controllers/ping.controller.js +9 -9
- package/dist/controllers/ping.controller.js.map +1 -1
- package/dist/controllers/user.controller.js +49 -49
- package/dist/controllers/user.controller.js.map +1 -1
- package/dist/datasources/db.datasource.js +4 -4
- package/dist/datasources/db.datasource.js.map +1 -1
- package/dist/datasources/db1.datasource.js +4 -4
- package/dist/datasources/db1.datasource.js.map +1 -1
- package/dist/datasources/db2.datasource.js +4 -4
- package/dist/datasources/db2.datasource.js.map +1 -1
- package/dist/datasources/index.d.ts +1 -1
- package/dist/datasources/index.js +4 -4
- package/dist/datasources/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/migrate.js +1 -1
- package/dist/migrate.js.map +1 -1
- package/dist/models/index.js +2 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/user.model.js +9 -9
- package/dist/models/user.model.js.map +1 -1
- package/dist/multi-tenancy/component.js +1 -1
- package/dist/multi-tenancy/component.js.map +1 -1
- package/dist/multi-tenancy/index.js +4 -4
- package/dist/multi-tenancy/index.js.map +1 -1
- package/dist/multi-tenancy/keys.js +1 -1
- package/dist/multi-tenancy/keys.js.map +1 -1
- package/dist/multi-tenancy/middleware/multi-tenancy-middleware.provider.js +6 -6
- package/dist/multi-tenancy/middleware/multi-tenancy-middleware.provider.js.map +1 -1
- package/dist/multi-tenancy/strategies/base-strategy.js +1 -1
- package/dist/multi-tenancy/strategies/base-strategy.js.map +1 -1
- package/dist/multi-tenancy/strategies/header-strategy.js +2 -2
- package/dist/multi-tenancy/strategies/header-strategy.js.map +1 -1
- package/dist/multi-tenancy/strategies/host-strategy.js +4 -4
- package/dist/multi-tenancy/strategies/host-strategy.js.map +1 -1
- package/dist/multi-tenancy/strategies/index.js +6 -6
- package/dist/multi-tenancy/strategies/index.js.map +1 -1
- package/dist/multi-tenancy/strategies/jwt-strategy.js +2 -2
- package/dist/multi-tenancy/strategies/jwt-strategy.js.map +1 -1
- package/dist/multi-tenancy/strategies/query-strategy.js +2 -2
- package/dist/multi-tenancy/strategies/query-strategy.js.map +1 -1
- package/dist/multi-tenancy/types.js +1 -1
- package/dist/multi-tenancy/types.js.map +1 -1
- package/dist/openapi-spec.js +1 -1
- package/dist/openapi-spec.js.map +1 -1
- package/dist/repositories/index.js +2 -2
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/user.repository.js +4 -4
- package/dist/repositories/user.repository.js.map +1 -1
- package/dist/sequence.js +1 -1
- package/dist/sequence.js.map +1 -1
- package/package.json +19 -19
- package/src/application.ts +1 -1
- package/src/controllers/index.ts +1 -1
- package/src/controllers/ping.controller.ts +2 -2
- package/src/controllers/user.controller.ts +1 -1
- package/src/datasources/db.datasource.ts +1 -1
- package/src/datasources/db1.datasource.ts +1 -1
- package/src/datasources/db2.datasource.ts +1 -1
- package/src/datasources/index.ts +2 -2
- package/src/index.ts +1 -1
- package/src/migrate.ts +1 -1
- package/src/models/index.ts +1 -1
- package/src/models/user.model.ts +1 -1
- package/src/multi-tenancy/component.ts +1 -1
- package/src/multi-tenancy/index.ts +1 -1
- package/src/multi-tenancy/keys.ts +1 -1
- package/src/multi-tenancy/middleware/multi-tenancy-middleware.provider.ts +1 -1
- package/src/multi-tenancy/strategies/base-strategy.ts +1 -1
- package/src/multi-tenancy/strategies/header-strategy.ts +1 -1
- package/src/multi-tenancy/strategies/host-strategy.ts +1 -1
- package/src/multi-tenancy/strategies/index.ts +1 -1
- package/src/multi-tenancy/strategies/jwt-strategy.ts +1 -1
- package/src/multi-tenancy/strategies/query-strategy.ts +1 -1
- package/src/multi-tenancy/types.ts +1 -1
- package/src/openapi-spec.ts +1 -1
- package/src/repositories/index.ts +1 -1
- package/src/repositories/user.repository.ts +1 -1
- package/src/sequence.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/multi-tenancy/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/multi-tenancy/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,+CAA+C;AAC/C,+CAA+C;AAC/C,gEAAgE;;;AAEhE,iDAAuB;AACvB,yFAA+D;AAC/D,kDAAwB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-multi-tenancy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../src/multi-tenancy/keys.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../src/multi-tenancy/keys.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,+CAA+C;AAC/C,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAA0C;AAI1C,IAAiB,oBAAoB,CAQpC;AARD,WAAiB,oBAAoB;IACtB,+BAAU,GAAG,iBAAU,CAAC,MAAM,CACzC,0BAA0B,CAC3B,CAAC;IAEW,mCAAc,GAAG,iBAAU,CAAC,MAAM,CAC7C,6BAA6B,CAC9B,CAAC;AACJ,CAAC,EARgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAQpC;AAEY,QAAA,wBAAwB,GAAG,0BAA0B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-multi-tenancy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -8,7 +8,7 @@ exports.MultiTenancyMiddlewareProvider = void 0;
|
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const core_1 = require("@loopback/core");
|
|
10
10
|
const rest_1 = require("@loopback/rest");
|
|
11
|
-
const debug_1 =
|
|
11
|
+
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
12
12
|
const keys_1 = require("../keys");
|
|
13
13
|
const debug = (0, debug_1.default)('loopback:multi-tenancy');
|
|
14
14
|
/**
|
|
@@ -66,7 +66,7 @@ let MultiTenancyMiddlewareProvider = class MultiTenancyMiddlewareProvider {
|
|
|
66
66
|
return undefined;
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
MultiTenancyMiddlewareProvider =
|
|
69
|
+
MultiTenancyMiddlewareProvider = tslib_1.__decorate([
|
|
70
70
|
(0, core_1.extensionPoint)(keys_1.MULTI_TENANCY_STRATEGIES, {
|
|
71
71
|
tags: {
|
|
72
72
|
[core_1.ContextTags.KEY]: keys_1.MultiTenancyBindings.MIDDLEWARE,
|
|
@@ -75,9 +75,9 @@ MultiTenancyMiddlewareProvider = (0, tslib_1.__decorate)([
|
|
|
75
75
|
group: 'tenancy',
|
|
76
76
|
downstreamGroups: 'findRoute',
|
|
77
77
|
})),
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
tslib_1.__param(0, (0, core_1.extensions)()),
|
|
79
|
+
tslib_1.__param(1, (0, core_1.config)()),
|
|
80
|
+
tslib_1.__metadata("design:paramtypes", [Function, Object])
|
|
81
81
|
], MultiTenancyMiddlewareProvider);
|
|
82
82
|
exports.MultiTenancyMiddlewareProvider = MultiTenancyMiddlewareProvider;
|
|
83
83
|
//# sourceMappingURL=multi-tenancy-middleware.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-tenancy-middleware.provider.js","sourceRoot":"","sources":["../../../src/multi-tenancy/middleware/multi-tenancy-middleware.provider.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"multi-tenancy-middleware.provider.js","sourceRoot":"","sources":["../../../src/multi-tenancy/middleware/multi-tenancy-middleware.provider.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-multi-tenancy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-strategy.js","sourceRoot":"","sources":["../../../src/multi-tenancy/strategies/base-strategy.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"base-strategy.js","sourceRoot":"","sources":["../../../src/multi-tenancy/strategies/base-strategy.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,+CAA+C;AAC/C,+CAA+C;AAC/C,gEAAgE;;;AAMhE,MAAsB,YAAY;IAChC,aAAa,CACX,cAA8B,EAC9B,MAAc;QAEd,cAAc;aACX,IAAI,CAAC,gBAAgB,CAAC;aACtB,OAAO,CAAC,kBAAkB,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5C,CAAC;CACF;AATD,oCASC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-multi-tenancy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.HeaderStrategy = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
|
-
const debug_1 =
|
|
9
|
+
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
10
10
|
const base_strategy_1 = require("./base-strategy");
|
|
11
11
|
const debug = (0, debug_1.default)('loopback:multi-tenancy:strategy:header');
|
|
12
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header-strategy.js","sourceRoot":"","sources":["../../../src/multi-tenancy/strategies/header-strategy.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"header-strategy.js","sourceRoot":"","sources":["../../../src/multi-tenancy/strategies/header-strategy.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,+CAA+C;AAC/C,+CAA+C;AAC/C,gEAAgE;;;;AAGhE,0DAAiC;AAEjC,mDAA6C;AAE7C,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,wCAAwC,CAAC,CAAC;AACrE;;GAEG;AACH,MAAa,cACX,SAAQ,4BAAY;IADtB;;QAIE,SAAI,GAAG,QAAQ,CAAC;IAOlB,CAAC;IALC,cAAc,CAAC,cAA8B;QAC3C,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAW,CAAC;QACzE,KAAK,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;QAC/B,OAAO,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAC,EAAE,EAAE,QAAQ,EAAC,CAAC;IACvD,CAAC;CACF;AAXD,wCAWC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-multi-tenancy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.HostStrategy = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const core_1 = require("@loopback/core");
|
|
10
|
-
const debug_1 =
|
|
10
|
+
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
11
11
|
const base_strategy_1 = require("./base-strategy");
|
|
12
12
|
const debug = (0, debug_1.default)('loopback:multi-tenancy:strategy:host');
|
|
13
13
|
/**
|
|
@@ -37,9 +37,9 @@ class HostStrategy extends base_strategy_1.BaseStrategy {
|
|
|
37
37
|
return { id };
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
tslib_1.__decorate([
|
|
41
41
|
(0, core_1.config)(),
|
|
42
|
-
|
|
42
|
+
tslib_1.__metadata("design:type", Object)
|
|
43
43
|
], HostStrategy.prototype, "mapping", void 0);
|
|
44
44
|
exports.HostStrategy = HostStrategy;
|
|
45
45
|
//# sourceMappingURL=host-strategy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-strategy.js","sourceRoot":"","sources":["../../../src/multi-tenancy/strategies/host-strategy.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"host-strategy.js","sourceRoot":"","sources":["../../../src/multi-tenancy/strategies/host-strategy.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,+CAA+C;AAC/C,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AAEtC,0DAAiC;AAEjC,mDAA6C;AAE7C,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,sCAAsC,CAAC,CAAC;AACnE;;GAEG;AACH,MAAa,YAAa,SAAQ,4BAAY;IAA9C;;QACE,SAAI,GAAG,MAAM,CAAC;QAGd,YAAO,GAA2B;YAChC,WAAW,EAAE,KAAK;SACnB,CAAC;IAgBJ,CAAC;IAdC,cAAc,CAAC,cAA8B;QAC3C,MAAM,IAAI,GAAG,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;QACjD,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACpB,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,eAAe,CAAC,IAAwB;QACtC,IAAI,IAAI,IAAI,IAAI;YAAE,OAAO,SAAS,CAAC;QACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACpC,MAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAClC,KAAK,CAAC,2BAA2B,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;QACjD,IAAI,EAAE,IAAI,IAAI;YAAE,OAAO,SAAS,CAAC;QACjC,OAAO,EAAC,EAAE,EAAC,CAAC;IACd,CAAC;CACF;AAlBC;IADC,IAAA,aAAM,GAAE;;6CAGP;AANJ,oCAsBC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-multi-tenancy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./base-strategy"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./header-strategy"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./host-strategy"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./jwt-strategy"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./query-strategy"), exports);
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/multi-tenancy/strategies/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/multi-tenancy/strategies/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,+CAA+C;AAC/C,+CAA+C;AAC/C,gEAAgE;;;AAEhE,0DAAgC;AAChC,4DAAkC;AAClC,0DAAgC;AAChC,yDAA+B;AAC/B,2DAAiC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-multi-tenancy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.JWTStrategy = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
|
-
const debug_1 =
|
|
9
|
+
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
10
10
|
const jsonwebtoken_1 = require("jsonwebtoken");
|
|
11
11
|
const base_strategy_1 = require("./base-strategy");
|
|
12
12
|
const debug = (0, debug_1.default)('loopback:multi-tenancy:strategy:jwt');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt-strategy.js","sourceRoot":"","sources":["../../../src/multi-tenancy/strategies/jwt-strategy.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"jwt-strategy.js","sourceRoot":"","sources":["../../../src/multi-tenancy/strategies/jwt-strategy.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,+CAA+C;AAC/C,+CAA+C;AAC/C,gEAAgE;;;;AAGhE,0DAAiC;AACjC,+CAAoC;AAEpC,mDAA6C;AAE7C,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,qCAAqC,CAAC,CAAC;AAElE;;GAEG;AACH,MAAa,WAAY,SAAQ,4BAAY;IAA7C;;QACE,SAAI,GAAG,KAAK,CAAC;IAmBf,CAAC;IAjBC,cAAc,CAAC,cAA8B;QAC3C,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,CAAC,OAAO,CAClD,eAAe,CACN,CAAC;QACZ,KAAK,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;QACtC,IAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,UAAU,CAAC,SAAS,CAAC,EAAE;YACxC,iEAAiE;YACjE,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACvC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACvB,KAAK,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;YAClC,MAAM,IAAI,GAAG,IAAA,qBAAM,EAAC,KAAK,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC;YACzC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACrB,MAAM,QAAQ,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,CAAC;YAChC,KAAK,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;YAC7B,OAAO,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAC,EAAE,EAAE,QAAQ,EAAC,CAAC;SACtD;IACH,CAAC;CACF;AApBD,kCAoBC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-multi-tenancy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.QueryStrategy = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
|
-
const debug_1 =
|
|
9
|
+
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
10
10
|
const base_strategy_1 = require("./base-strategy");
|
|
11
11
|
const debug = (0, debug_1.default)('loopback:multi-tenancy:strategy:query');
|
|
12
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-strategy.js","sourceRoot":"","sources":["../../../src/multi-tenancy/strategies/query-strategy.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"query-strategy.js","sourceRoot":"","sources":["../../../src/multi-tenancy/strategies/query-strategy.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,+CAA+C;AAC/C,+CAA+C;AAC/C,gEAAgE;;;;AAGhE,0DAAiC;AAEjC,mDAA6C;AAE7C,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,uCAAuC,CAAC,CAAC;AAEpE;;GAEG;AACH,MAAa,aACX,SAAQ,4BAAY;IADtB;;QAIE,SAAI,GAAG,OAAO,CAAC;IAOjB,CAAC;IALC,cAAc,CAAC,cAA8B;QAC3C,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAW,CAAC;QACrE,KAAK,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC7B,OAAO,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAC,EAAE,EAAE,QAAQ,EAAC,CAAC;IACvD,CAAC;CACF;AAXD,sCAWC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-multi-tenancy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/multi-tenancy/types.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/multi-tenancy/types.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,+CAA+C;AAC/C,+CAA+C;AAC/C,gEAAgE"}
|
package/dist/openapi-spec.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-multi-tenancy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
package/dist/openapi-spec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi-spec.js","sourceRoot":"","sources":["../src/openapi-spec.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"openapi-spec.js","sourceRoot":"","sources":["../src/openapi-spec.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,+CAA+C;AAC/C,+CAA+C;AAC/C,gEAAgE;;AAGhE,+CAA6D;AAE7D;;GAEG;AACH,KAAK,UAAU,iBAAiB;;IAC9B,MAAM,MAAM,GAAsB;QAChC,IAAI,EAAE;YACJ,IAAI,EAAE,CAAC,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,mCAAI,IAAI,CAAC;YACjC,IAAI,EAAE,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,mCAAI,WAAW;SACtC;KACF,CAAC;IACF,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,mCAAI,EAAE,CAAC;IACtC,MAAM,GAAG,GAAG,IAAI,4CAA8B,CAAC,MAAM,CAAC,CAAC;IACvD,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;IACjB,MAAM,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;IAC9B,OAAO,CAAC,KAAK,CAAC,mDAAmD,EAAE,GAAG,CAAC,CAAC;IACxE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-multi-tenancy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./user.repository"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,+CAA+C;AAC/C,+CAA+C;AAC/C,gEAAgE;;;AAEhE,4DAAkC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-multi-tenancy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -14,9 +14,9 @@ let UserRepository = class UserRepository extends repository_1.DefaultCrudReposi
|
|
|
14
14
|
super(models_1.User, dataSource);
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
UserRepository =
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
UserRepository = tslib_1.__decorate([
|
|
18
|
+
tslib_1.__param(0, (0, core_1.inject)('datasources.db')),
|
|
19
|
+
tslib_1.__metadata("design:paramtypes", [repository_1.juggler.DataSource])
|
|
20
20
|
], UserRepository);
|
|
21
21
|
exports.UserRepository = UserRepository;
|
|
22
22
|
//# sourceMappingURL=user.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.repository.js","sourceRoot":"","sources":["../../src/repositories/user.repository.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user.repository.js","sourceRoot":"","sources":["../../src/repositories/user.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,+CAA+C;AAC/C,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,qDAAoE;AACpE,sCAA8C;AAE9C,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,kCAInC;IACC,YAAsC,UAA8B;QAClE,KAAK,CAAC,aAAI,EAAE,UAAU,CAAC,CAAC;IAC1B,CAAC;CACF,CAAA;AARY,cAAc;IAKZ,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;6CAAa,oBAAO,CAAC,UAAU;GALzD,cAAc,CAQ1B;AARY,wCAAc"}
|
package/dist/sequence.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-multi-tenancy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
package/dist/sequence.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequence.js","sourceRoot":"","sources":["../src/sequence.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"sequence.js","sourceRoot":"","sources":["../src/sequence.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,+CAA+C;AAC/C,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAAkD;AAElD,MAAa,UAAW,SAAQ,yBAAkB;CAAG;AAArD,gCAAqD"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/example-multi-tenancy",
|
|
3
3
|
"description": "An example to illustrate how to enable multi-tenancy with LoopBack's IoC and DI container",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"loopback-application",
|
|
7
7
|
"loopback",
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"main": "dist/index.js",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
|
-
"author": "IBM Corp.",
|
|
14
|
-
"copyright.owner": "IBM Corp.",
|
|
13
|
+
"author": "IBM Corp. and LoopBack contributors",
|
|
14
|
+
"copyright.owner": "IBM Corp. and LoopBack contributors",
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
17
|
"url": "https://github.com/loopbackio/loopback-next.git",
|
|
18
18
|
"directory": "examples/multi-tenancy"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": "
|
|
21
|
+
"node": "14 || 16 || 17 || 18"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "lb-tsc",
|
|
@@ -54,26 +54,26 @@
|
|
|
54
54
|
"!*/__tests__"
|
|
55
55
|
],
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@loopback/boot": "^
|
|
58
|
-
"@loopback/core": "^
|
|
59
|
-
"@loopback/repository": "^
|
|
60
|
-
"@loopback/rest": "^
|
|
61
|
-
"@loopback/rest-explorer": "^
|
|
62
|
-
"@loopback/service-proxy": "^
|
|
63
|
-
"debug": "^4.3.
|
|
57
|
+
"@loopback/boot": "^5.0.1",
|
|
58
|
+
"@loopback/core": "^4.0.1",
|
|
59
|
+
"@loopback/repository": "^5.0.1",
|
|
60
|
+
"@loopback/rest": "^12.0.1",
|
|
61
|
+
"@loopback/rest-explorer": "^5.0.1",
|
|
62
|
+
"@loopback/service-proxy": "^5.0.1",
|
|
63
|
+
"debug": "^4.3.4",
|
|
64
64
|
"jsonwebtoken": "^8.5.1",
|
|
65
|
-
"tslib": "^2.
|
|
65
|
+
"tslib": "^2.4.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@loopback/build": "^
|
|
69
|
-
"@loopback/eslint-config": "^
|
|
70
|
-
"@loopback/testlab": "^
|
|
68
|
+
"@loopback/build": "^9.0.1",
|
|
69
|
+
"@loopback/eslint-config": "^13.0.1",
|
|
70
|
+
"@loopback/testlab": "^5.0.1",
|
|
71
71
|
"@types/debug": "^4.1.7",
|
|
72
72
|
"@types/jsonwebtoken": "^8.5.8",
|
|
73
|
-
"@types/node": "^
|
|
74
|
-
"eslint": "^8.
|
|
73
|
+
"@types/node": "^14.18.21",
|
|
74
|
+
"eslint": "^8.17.0",
|
|
75
75
|
"source-map-support": "^0.5.21",
|
|
76
|
-
"typescript": "~4.
|
|
76
|
+
"typescript": "~4.7.3"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "ccf7863d0639de966d6c6129b4aa94ba1dce2c33"
|
|
79
79
|
}
|
package/src/application.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/controllers/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
-
import {Request, RestBindings, get, ResponseObject} from '@loopback/rest';
|
|
7
6
|
import {inject} from '@loopback/core';
|
|
7
|
+
import {get, Request, ResponseObject, RestBindings} from '@loopback/rest';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* OpenAPI response for ping()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/datasources/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
+
export * from './db.datasource';
|
|
6
7
|
export * from './db1.datasource';
|
|
7
8
|
export * from './db2.datasource';
|
|
8
|
-
export * from './db.datasource';
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/migrate.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/models/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/models/user.model.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/openapi-spec.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/sequence.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-multi-tenancy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|