@loopback/example-access-control-migration 4.1.1 → 5.0.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.
Files changed (124) hide show
  1. package/.eslintrc.js +1 -1
  2. package/CHANGELOG.md +30 -0
  3. package/LICENSE +1 -1
  4. package/dist/__tests__/acceptance/project.acceptance.js +1 -1
  5. package/dist/__tests__/acceptance/project.acceptance.js.map +1 -1
  6. package/dist/application.d.ts +3 -3
  7. package/dist/application.js +2 -2
  8. package/dist/application.js.map +1 -1
  9. package/dist/components/casbin-authorization/casbin-authorization-component.js +1 -1
  10. package/dist/components/casbin-authorization/casbin-authorization-component.js.map +1 -1
  11. package/dist/components/casbin-authorization/index.js +3 -3
  12. package/dist/components/casbin-authorization/index.js.map +1 -1
  13. package/dist/components/casbin-authorization/services/assign-project-instance-id.voter.js +1 -1
  14. package/dist/components/casbin-authorization/services/assign-project-instance-id.voter.js.map +1 -1
  15. package/dist/components/casbin-authorization/services/casbin.authorizer.js +4 -4
  16. package/dist/components/casbin-authorization/services/casbin.authorizer.js.map +1 -1
  17. package/dist/components/casbin-authorization/services/casbin.enforcers.js +3 -3
  18. package/dist/components/casbin-authorization/services/casbin.enforcers.js.map +1 -1
  19. package/dist/components/casbin-authorization/services/index.js +4 -4
  20. package/dist/components/casbin-authorization/services/index.js.map +1 -1
  21. package/dist/components/jwt-authentication/index.js +4 -4
  22. package/dist/components/jwt-authentication/index.js.map +1 -1
  23. package/dist/components/jwt-authentication/jwt-authentication-component.js +4 -4
  24. package/dist/components/jwt-authentication/jwt-authentication-component.js.map +1 -1
  25. package/dist/components/jwt-authentication/keys.js +1 -1
  26. package/dist/components/jwt-authentication/keys.js.map +1 -1
  27. package/dist/components/jwt-authentication/services/index.js +5 -5
  28. package/dist/components/jwt-authentication/services/index.js.map +1 -1
  29. package/dist/components/jwt-authentication/services/jwt.auth.strategy.js +4 -4
  30. package/dist/components/jwt-authentication/services/jwt.auth.strategy.js.map +1 -1
  31. package/dist/components/jwt-authentication/services/jwt.service.js +5 -5
  32. package/dist/components/jwt-authentication/services/jwt.service.js.map +1 -1
  33. package/dist/components/jwt-authentication/services/security.spec.d.ts +1 -1
  34. package/dist/components/jwt-authentication/services/security.spec.js +1 -1
  35. package/dist/components/jwt-authentication/services/security.spec.js.map +1 -1
  36. package/dist/components/jwt-authentication/services/user.service.js +4 -4
  37. package/dist/components/jwt-authentication/services/user.service.js.map +1 -1
  38. package/dist/controllers/index.js +3 -3
  39. package/dist/controllers/index.js.map +1 -1
  40. package/dist/controllers/project.controller.js +30 -30
  41. package/dist/controllers/project.controller.js.map +1 -1
  42. package/dist/controllers/user.controller.js +10 -10
  43. package/dist/controllers/user.controller.js.map +1 -1
  44. package/dist/datasources/db.datasource.js +4 -4
  45. package/dist/datasources/db.datasource.js.map +1 -1
  46. package/dist/datasources/index.js +2 -2
  47. package/dist/datasources/index.js.map +1 -1
  48. package/dist/index.js +5 -5
  49. package/dist/index.js.map +1 -1
  50. package/dist/keys.js +1 -1
  51. package/dist/keys.js.map +1 -1
  52. package/dist/migrate.js +1 -1
  53. package/dist/migrate.js.map +1 -1
  54. package/dist/models/index.js +5 -5
  55. package/dist/models/index.js.map +1 -1
  56. package/dist/models/project.model.js +11 -11
  57. package/dist/models/project.model.js.map +1 -1
  58. package/dist/models/team.model.js +9 -9
  59. package/dist/models/team.model.js.map +1 -1
  60. package/dist/models/user-credentials.model.js +9 -9
  61. package/dist/models/user-credentials.model.js.map +1 -1
  62. package/dist/models/user.model.js +19 -19
  63. package/dist/models/user.model.js.map +1 -1
  64. package/dist/observers/index.js +2 -2
  65. package/dist/observers/index.js.map +1 -1
  66. package/dist/observers/sample.observer.d.ts +1 -2
  67. package/dist/observers/sample.observer.js +9 -9
  68. package/dist/observers/sample.observer.js.map +1 -1
  69. package/dist/openapi-spec.js +1 -1
  70. package/dist/openapi-spec.js.map +1 -1
  71. package/dist/repositories/index.d.ts +2 -2
  72. package/dist/repositories/index.js +5 -5
  73. package/dist/repositories/index.js.map +1 -1
  74. package/dist/repositories/project.repository.js +5 -5
  75. package/dist/repositories/project.repository.js.map +1 -1
  76. package/dist/repositories/team.repository.d.ts +1 -1
  77. package/dist/repositories/team.repository.js +6 -6
  78. package/dist/repositories/team.repository.js.map +1 -1
  79. package/dist/repositories/user-credentials.repository.d.ts +1 -1
  80. package/dist/repositories/user-credentials.repository.js +6 -6
  81. package/dist/repositories/user-credentials.repository.js.map +1 -1
  82. package/dist/repositories/user.repository.js +6 -6
  83. package/dist/repositories/user.repository.js.map +1 -1
  84. package/dist/sequence.js +1 -1
  85. package/dist/sequence.js.map +1 -1
  86. package/package.json +23 -23
  87. package/src/__tests__/acceptance/project.acceptance.ts +1 -1
  88. package/src/application.ts +1 -1
  89. package/src/components/casbin-authorization/casbin-authorization-component.ts +1 -1
  90. package/src/components/casbin-authorization/index.ts +1 -1
  91. package/src/components/casbin-authorization/services/assign-project-instance-id.voter.ts +1 -1
  92. package/src/components/casbin-authorization/services/casbin.authorizer.ts +1 -1
  93. package/src/components/casbin-authorization/services/casbin.enforcers.ts +1 -1
  94. package/src/components/casbin-authorization/services/index.ts +1 -1
  95. package/src/components/jwt-authentication/index.ts +1 -1
  96. package/src/components/jwt-authentication/jwt-authentication-component.ts +1 -1
  97. package/src/components/jwt-authentication/keys.ts +1 -1
  98. package/src/components/jwt-authentication/services/index.ts +1 -1
  99. package/src/components/jwt-authentication/services/jwt.auth.strategy.ts +1 -1
  100. package/src/components/jwt-authentication/services/jwt.service.ts +1 -1
  101. package/src/components/jwt-authentication/services/security.spec.ts +2 -2
  102. package/src/components/jwt-authentication/services/user.service.ts +1 -1
  103. package/src/controllers/index.ts +1 -1
  104. package/src/controllers/project.controller.ts +1 -1
  105. package/src/controllers/user.controller.ts +1 -1
  106. package/src/datasources/db.datasource.ts +1 -1
  107. package/src/datasources/index.ts +1 -1
  108. package/src/index.ts +1 -1
  109. package/src/keys.ts +1 -1
  110. package/src/migrate.ts +1 -1
  111. package/src/models/index.ts +1 -1
  112. package/src/models/project.model.ts +1 -1
  113. package/src/models/team.model.ts +1 -1
  114. package/src/models/user-credentials.model.ts +1 -1
  115. package/src/models/user.model.ts +1 -1
  116. package/src/observers/index.ts +1 -1
  117. package/src/observers/sample.observer.ts +3 -3
  118. package/src/openapi-spec.ts +1 -1
  119. package/src/repositories/index.ts +3 -3
  120. package/src/repositories/project.repository.ts +1 -1
  121. package/src/repositories/team.repository.ts +3 -3
  122. package/src/repositories/user-credentials.repository.ts +3 -3
  123. package/src/repositories/user.repository.ts +1 -1
  124. package/src/sequence.ts +1 -1
@@ -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-access-control-migration
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -7,11 +7,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.SampleObserver = void 0;
8
8
  const tslib_1 = require("tslib");
9
9
  const core_1 = require("@loopback/core");
10
- const _ = (0, tslib_1.__importStar)(require("lodash"));
10
+ const bcryptjs_1 = require("bcryptjs");
11
+ const _ = tslib_1.__importStar(require("lodash"));
11
12
  const project_repository_1 = require("../repositories/project.repository");
12
13
  const team_repository_1 = require("../repositories/team.repository");
13
14
  const user_repository_1 = require("../repositories/user.repository");
14
- const bcryptjs_1 = require("bcryptjs");
15
15
  /**
16
16
  * This class will be bound to the application as a `LifeCycleObserver` during
17
17
  * `boot`
@@ -92,13 +92,13 @@ let SampleObserver = class SampleObserver {
92
92
  return (0, bcryptjs_1.hash)(password, salt);
93
93
  }
94
94
  };
95
- SampleObserver = (0, tslib_1.__decorate)([
95
+ SampleObserver = tslib_1.__decorate([
96
96
  (0, core_1.lifeCycleObserver)(''),
97
- (0, tslib_1.__param)(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
98
- (0, tslib_1.__param)(1, (0, core_1.inject)('repositories.ProjectRepository')),
99
- (0, tslib_1.__param)(2, (0, core_1.inject)('repositories.TeamRepository')),
100
- (0, tslib_1.__param)(3, (0, core_1.inject)('repositories.UserRepository')),
101
- (0, tslib_1.__metadata)("design:paramtypes", [core_1.Application,
97
+ tslib_1.__param(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
98
+ tslib_1.__param(1, (0, core_1.inject)('repositories.ProjectRepository')),
99
+ tslib_1.__param(2, (0, core_1.inject)('repositories.TeamRepository')),
100
+ tslib_1.__param(3, (0, core_1.inject)('repositories.UserRepository')),
101
+ tslib_1.__metadata("design:paramtypes", [core_1.Application,
102
102
  project_repository_1.ProjectRepository,
103
103
  team_repository_1.TeamRepository,
104
104
  user_repository_1.UserRepository])
@@ -1 +1 @@
1
- {"version":3,"file":"sample.observer.js","sourceRoot":"","sources":["../../src/observers/sample.observer.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAMwB;AACxB,uDAA4B;AAC5B,2EAAqE;AACrE,qEAA+D;AAC/D,qEAA+D;AAC/D,uCAAuC;AAEvC;;;GAGG;AAEH,IAAa,cAAc,GAA3B,MAAa,cAAc;IACzB,YACqD,GAAgB,EAE3D,WAA8B,EACS,QAAwB,EACxB,QAAwB;QAJpB,QAAG,GAAH,GAAG,CAAa;QAE3D,gBAAW,GAAX,WAAW,CAAmB;QACS,aAAQ,GAAR,QAAQ,CAAgB;QACxB,aAAQ,GAAR,QAAQ,CAAgB;IACtE,CAAC;IAEJ;;OAEG;IACH,KAAK,CAAC,KAAK;QACT,2BAA2B;QAC3B,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE;YACzB,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;YACzB,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;YAC5B,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;SAC1B;I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AC;IAC9B,CAAC;CACF,CAAA;AArFY,cAAc;IAD1B,IAAA,wBAAiB,EAAC,EAAE,CAAC;IAGjB,mBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;IACzC,mBAAA,IAAA,aAAM,EAAC,gCAAgC,CAAC,CAAA;IAExC,mBAAA,IAAA,aAAM,EAAC,6BAA6B,CAAC,CAAA;IACrC,mBAAA,IAAA,aAAM,EAAC,6BAA6B,CAAC,CAAA;6CAJkB,kBAAW;QAE9C,sCAAiB;QACmB,gCAAc;QACd,gCAAc;GAN9D,cAAc,CAqF1B;AArFY,wCAAc"}
@@ -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-access-control-migration
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":"openapi-spec.js","sourceRoot":"","sources":["../src/openapi-spec.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;AAGhE,+CAAuD;AAEvD;;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,sCAAwB,CAAC,MAAM,CAAC,CAAC;IACjD,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
+ {"version":3,"file":"openapi-spec.js","sourceRoot":"","sources":["../src/openapi-spec.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;AAGhE,+CAAuD;AAEvD;;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,sCAAwB,CAAC,MAAM,CAAC,CAAC;IACjD,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,4 +1,4 @@
1
- export * from './team.repository';
2
- export * from './user.repository';
3
1
  export * from './project.repository';
2
+ export * from './team.repository';
4
3
  export * from './user-credentials.repository';
4
+ export * from './user.repository';
@@ -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-access-control-migration
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
- (0, tslib_1.__exportStar)(require("./team.repository"), exports);
9
- (0, tslib_1.__exportStar)(require("./user.repository"), exports);
10
- (0, tslib_1.__exportStar)(require("./project.repository"), exports);
11
- (0, tslib_1.__exportStar)(require("./user-credentials.repository"), exports);
8
+ tslib_1.__exportStar(require("./project.repository"), exports);
9
+ tslib_1.__exportStar(require("./team.repository"), exports);
10
+ tslib_1.__exportStar(require("./user-credentials.repository"), exports);
11
+ tslib_1.__exportStar(require("./user.repository"), exports);
12
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;AAEhE,iEAAkC;AAClC,iEAAkC;AAClC,oEAAqC;AACrC,6EAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;AAEhE,+DAAqC;AACrC,4DAAkC;AAClC,wEAA8C;AAC9C,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-access-control-migration
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -18,10 +18,10 @@ let ProjectRepository = class ProjectRepository extends repository_1.DefaultCrud
18
18
  this.registerInclusionResolver('owner', this.owner.inclusionResolver);
19
19
  }
20
20
  };
21
- ProjectRepository = (0, tslib_1.__decorate)([
22
- (0, tslib_1.__param)(0, (0, core_1.inject)('datasources.db')),
23
- (0, tslib_1.__param)(1, repository_1.repository.getter('UserRepository')),
24
- (0, tslib_1.__metadata)("design:paramtypes", [datasources_1.DbDataSource, Function])
21
+ ProjectRepository = tslib_1.__decorate([
22
+ tslib_1.__param(0, (0, core_1.inject)('datasources.db')),
23
+ tslib_1.__param(1, repository_1.repository.getter('UserRepository')),
24
+ tslib_1.__metadata("design:paramtypes", [datasources_1.DbDataSource, Function])
25
25
  ], ProjectRepository);
26
26
  exports.ProjectRepository = ProjectRepository;
27
27
  //# sourceMappingURL=project.repository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"project.repository.js","sourceRoot":"","sources":["../../src/repositories/project.repository.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA8C;AAC9C,qDAI8B;AAC9B,gDAA4C;AAC5C,sCAA0D;AAG1D,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,kCAItC;IAGC,YAC4B,UAAwB,EAExC,oBAA4C;QAEtD,KAAK,CAAC,gBAAO,EAAE,UAAU,CAAC,CAAC;QAFjB,yBAAoB,GAApB,oBAAoB,CAAwB;QAGtD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,0BAA0B,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;QAC5E,IAAI,CAAC,yBAAyB,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACxE,CAAC;CACF,CAAA;AAhBY,iBAAiB;IAQzB,wBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;IACxB,wBAAA,uBAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;kDADE,0BAAY;GARzC,iBAAiB,CAgB7B;AAhBY,8CAAiB"}
1
+ {"version":3,"file":"project.repository.js","sourceRoot":"","sources":["../../src/repositories/project.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA8C;AAC9C,qDAI8B;AAC9B,gDAA4C;AAC5C,sCAA0D;AAG1D,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,kCAItC;IAGC,YAC4B,UAAwB,EAExC,oBAA4C;QAEtD,KAAK,CAAC,gBAAO,EAAE,UAAU,CAAC,CAAC;QAFjB,yBAAoB,GAApB,oBAAoB,CAAwB;QAGtD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,0BAA0B,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;QAC5E,IAAI,CAAC,yBAAyB,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACxE,CAAC;CACF,CAAA;AAhBY,iBAAiB;IAQzB,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;IACxB,mBAAA,uBAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;6CADE,0BAAY;GARzC,iBAAiB,CAgB7B;AAhBY,8CAAiB"}
@@ -1,6 +1,6 @@
1
1
  import { DefaultCrudRepository } from '@loopback/repository';
2
- import { Team, TeamRelations } from '../models';
3
2
  import { DbDataSource } from '../datasources';
3
+ import { Team, TeamRelations } from '../models';
4
4
  export declare class TeamRepository extends DefaultCrudRepository<Team, typeof Team.prototype.id, TeamRelations> {
5
5
  constructor(dataSource: DbDataSource);
6
6
  }
@@ -1,23 +1,23 @@
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-access-control-migration
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.TeamRepository = void 0;
8
8
  const tslib_1 = require("tslib");
9
+ const core_1 = require("@loopback/core");
9
10
  const repository_1 = require("@loopback/repository");
10
- const models_1 = require("../models");
11
11
  const datasources_1 = require("../datasources");
12
- const core_1 = require("@loopback/core");
12
+ const models_1 = require("../models");
13
13
  let TeamRepository = class TeamRepository extends repository_1.DefaultCrudRepository {
14
14
  constructor(dataSource) {
15
15
  super(models_1.Team, dataSource);
16
16
  }
17
17
  };
18
- TeamRepository = (0, tslib_1.__decorate)([
19
- (0, tslib_1.__param)(0, (0, core_1.inject)('datasources.db')),
20
- (0, tslib_1.__metadata)("design:paramtypes", [datasources_1.DbDataSource])
18
+ TeamRepository = tslib_1.__decorate([
19
+ tslib_1.__param(0, (0, core_1.inject)('datasources.db')),
20
+ tslib_1.__metadata("design:paramtypes", [datasources_1.DbDataSource])
21
21
  ], TeamRepository);
22
22
  exports.TeamRepository = TeamRepository;
23
23
  //# sourceMappingURL=team.repository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"team.repository.js","sourceRoot":"","sources":["../../src/repositories/team.repository.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAA2D;AAC3D,sCAA8C;AAC9C,gDAA4C;AAC5C,yCAAsC;AAEtC,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,kCAInC;IACC,YAAsC,UAAwB;QAC5D,KAAK,CAAC,aAAI,EAAE,UAAU,CAAC,CAAC;IAC1B,CAAC;CACF,CAAA;AARY,cAAc;IAKZ,wBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;kDAAa,0BAAY;GALnD,cAAc,CAQ1B;AARY,wCAAc"}
1
+ {"version":3,"file":"team.repository.js","sourceRoot":"","sources":["../../src/repositories/team.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,qDAA2D;AAC3D,gDAA4C;AAC5C,sCAA8C;AAE9C,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,kCAInC;IACC,YAAsC,UAAwB;QAC5D,KAAK,CAAC,aAAI,EAAE,UAAU,CAAC,CAAC;IAC1B,CAAC;CACF,CAAA;AARY,cAAc;IAKZ,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;6CAAa,0BAAY;GALnD,cAAc,CAQ1B;AARY,wCAAc"}
@@ -1,6 +1,6 @@
1
1
  import { DefaultCrudRepository } from '@loopback/repository';
2
- import { UserCredentials, UserCredentialsRelations } from '../models';
3
2
  import { DbDataSource } from '../datasources';
3
+ import { UserCredentials, UserCredentialsRelations } from '../models';
4
4
  export declare class UserCredentialsRepository extends DefaultCrudRepository<UserCredentials, typeof UserCredentials.prototype.id, UserCredentialsRelations> {
5
5
  constructor(dataSource: DbDataSource);
6
6
  }
@@ -1,23 +1,23 @@
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-access-control-migration
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.UserCredentialsRepository = void 0;
8
8
  const tslib_1 = require("tslib");
9
+ const core_1 = require("@loopback/core");
9
10
  const repository_1 = require("@loopback/repository");
10
- const models_1 = require("../models");
11
11
  const datasources_1 = require("../datasources");
12
- const core_1 = require("@loopback/core");
12
+ const models_1 = require("../models");
13
13
  let UserCredentialsRepository = class UserCredentialsRepository extends repository_1.DefaultCrudRepository {
14
14
  constructor(dataSource) {
15
15
  super(models_1.UserCredentials, dataSource);
16
16
  }
17
17
  };
18
- UserCredentialsRepository = (0, tslib_1.__decorate)([
19
- (0, tslib_1.__param)(0, (0, core_1.inject)('datasources.db')),
20
- (0, tslib_1.__metadata)("design:paramtypes", [datasources_1.DbDataSource])
18
+ UserCredentialsRepository = tslib_1.__decorate([
19
+ tslib_1.__param(0, (0, core_1.inject)('datasources.db')),
20
+ tslib_1.__metadata("design:paramtypes", [datasources_1.DbDataSource])
21
21
  ], UserCredentialsRepository);
22
22
  exports.UserCredentialsRepository = UserCredentialsRepository;
23
23
  //# sourceMappingURL=user-credentials.repository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-credentials.repository.js","sourceRoot":"","sources":["../../src/repositories/user-credentials.repository.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAA2D;AAC3D,sCAAoE;AACpE,gDAA4C;AAC5C,yCAAsC;AAEtC,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,kCAI9C;IACC,YAAsC,UAAwB;QAC5D,KAAK,CAAC,wBAAe,EAAE,UAAU,CAAC,CAAC;IACrC,CAAC;CACF,CAAA;AARY,yBAAyB;IAKvB,wBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;kDAAa,0BAAY;GALnD,yBAAyB,CAQrC;AARY,8DAAyB"}
1
+ {"version":3,"file":"user-credentials.repository.js","sourceRoot":"","sources":["../../src/repositories/user-credentials.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,qDAA2D;AAC3D,gDAA4C;AAC5C,sCAAoE;AAEpE,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,kCAI9C;IACC,YAAsC,UAAwB;QAC5D,KAAK,CAAC,wBAAe,EAAE,UAAU,CAAC,CAAC;IACrC,CAAC;CACF,CAAA;AARY,yBAAyB;IAKvB,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;6CAAa,0BAAY;GALnD,yBAAyB,CAQrC;AARY,8DAAyB"}
@@ -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-access-control-migration
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -32,11 +32,11 @@ let UserRepository = class UserRepository extends repository_1.DefaultCrudReposi
32
32
  }
33
33
  }
34
34
  };
35
- UserRepository = (0, tslib_1.__decorate)([
36
- (0, tslib_1.__param)(0, (0, core_1.inject)('datasources.db')),
37
- (0, tslib_1.__param)(1, repository_1.repository.getter('UserCredentialsRepository')),
38
- (0, tslib_1.__param)(2, repository_1.repository.getter('TeamRepository')),
39
- (0, tslib_1.__metadata)("design:paramtypes", [datasources_1.DbDataSource, Function, Function])
35
+ UserRepository = tslib_1.__decorate([
36
+ tslib_1.__param(0, (0, core_1.inject)('datasources.db')),
37
+ tslib_1.__param(1, repository_1.repository.getter('UserCredentialsRepository')),
38
+ tslib_1.__param(2, repository_1.repository.getter('TeamRepository')),
39
+ tslib_1.__metadata("design:paramtypes", [datasources_1.DbDataSource, Function, Function])
40
40
  ], UserRepository);
41
41
  exports.UserRepository = UserRepository;
42
42
  //# sourceMappingURL=user.repository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.repository.js","sourceRoot":"","sources":["../../src/repositories/user.repository.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA8C;AAC9C,qDAK8B;AAC9B,gDAA4C;AAC5C,sCAAqE;AAIrE,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,kCAInC;IAWC,YAC4B,UAAwB,EAExC,+BAAkE,EAElE,oBAA4C;QAEtD,KAAK,CAAC,aAAI,EAAE,UAAU,CAAC,CAAC;QAJd,oCAA+B,GAA/B,+BAA+B,CAAmC;QAElE,yBAAoB,GAApB,oBAAoB,CAAwB;QAGtD,IAAI,CAAC,K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C;QAJd,oCAA+B,GAA/B,+BAA+B,CAAmC;QAElE,yBAAoB,GAApB,oBAAoB,CAAwB;QAGtD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,iCAAiC,CACjD,OAAO,EACP,oBAAoB,CACrB,CAAC;QACF,IAAI,CAAC,yBAAyB,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACtE,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,gCAAgC,CAC1D,iBAAiB,EACjB,+BAA+B,CAChC,CAAC;QACF,IAAI,CAAC,yBAAyB,CAC5B,iBAAiB,EACjB,IAAI,CAAC,eAAe,CAAC,iBAAiB,CACvC,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,MAAgC;QAEhC,IAAI;YACF,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC;SACjD;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,GAAG,CAAC,IAAI,KAAK,kBAAkB,EAAE;gBACnC,OAAO,SAAS,CAAC;aAClB;YACD,MAAM,GAAG,CAAC;SACX;IACH,CAAC;CACF,CAAA;AAlDY,cAAc;IAgBtB,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;IACxB,mBAAA,uBAAU,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAA;IAE9C,mBAAA,uBAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;6CAHE,0BAAY;GAhBzC,cAAc,CAkD1B;AAlDY,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-access-control-migration
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":"sequence.js","sourceRoot":"","sources":["../src/sequence.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAAkD;AAElD,MAAa,UAAW,SAAQ,yBAAkB;CAAG;AAArD,gCAAqD"}
1
+ {"version":3,"file":"sequence.js","sourceRoot":"","sources":["../src/sequence.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0DAA0D;AAC1D,+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-access-control-migration",
3
3
  "description": "Tutorial example on how to migrate the access control example with LoopBack 4.",
4
- "version": "4.1.1",
4
+ "version": "5.0.1",
5
5
  "keywords": [
6
6
  "loopback",
7
7
  "LoopBack",
@@ -14,15 +14,15 @@
14
14
  "license": "MIT",
15
15
  "main": "dist/index.js",
16
16
  "types": "dist/index.d.ts",
17
- "author": "IBM Corp.",
18
- "copyright.owner": "IBM Corp.",
17
+ "author": "IBM Corp. and LoopBack contributors",
18
+ "copyright.owner": "IBM Corp. and LoopBack contributors",
19
19
  "repository": {
20
20
  "type": "git",
21
21
  "url": "https://github.com/loopbackio/loopback-next.git",
22
22
  "directory": "examples/access-control-migration"
23
23
  },
24
24
  "engines": {
25
- "node": "12 || 14 || 16 || 17"
25
+ "node": "14 || 16 || 17 || 18"
26
26
  },
27
27
  "scripts": {
28
28
  "build": "lb-tsc",
@@ -51,31 +51,31 @@
51
51
  "access": "public"
52
52
  },
53
53
  "dependencies": {
54
- "@loopback/authentication": "^8.1.1",
55
- "@loopback/authorization": "^0.11.1",
56
- "@loopback/boot": "^4.1.1",
57
- "@loopback/core": "^3.1.1",
58
- "@loopback/repository": "^4.1.1",
59
- "@loopback/rest": "^11.1.1",
60
- "@loopback/rest-explorer": "^4.1.1",
61
- "@loopback/security": "^0.7.1",
62
- "@loopback/service-proxy": "^4.1.1",
54
+ "@loopback/authentication": "^9.0.1",
55
+ "@loopback/authorization": "^0.12.1",
56
+ "@loopback/boot": "^5.0.1",
57
+ "@loopback/core": "^4.0.1",
58
+ "@loopback/repository": "^5.0.1",
59
+ "@loopback/rest": "^12.0.1",
60
+ "@loopback/rest-explorer": "^5.0.1",
61
+ "@loopback/security": "^0.8.1",
62
+ "@loopback/service-proxy": "^5.0.1",
63
63
  "@types/bcryptjs": "2.4.2",
64
64
  "bcryptjs": "^2.4.3",
65
- "casbin": "^5.13.1",
65
+ "casbin": "^5.15.1",
66
66
  "jsonwebtoken": "^8.5.1",
67
67
  "loopback-connector-rest": "^4.0.1"
68
68
  },
69
69
  "devDependencies": {
70
- "@loopback/build": "^8.1.1",
71
- "@loopback/eslint-config": "^12.0.3",
72
- "@loopback/http-caching-proxy": "^3.1.1",
73
- "@loopback/testlab": "^4.1.1",
74
- "@types/lodash": "^4.14.179",
75
- "@types/node": "^12.20.46",
76
- "eslint": "^8.10.0",
70
+ "@loopback/build": "^9.0.1",
71
+ "@loopback/eslint-config": "^13.0.1",
72
+ "@loopback/http-caching-proxy": "^4.0.1",
73
+ "@loopback/testlab": "^5.0.1",
74
+ "@types/lodash": "^4.14.182",
75
+ "@types/node": "^14.18.21",
76
+ "eslint": "^8.17.0",
77
77
  "lodash": "^4.17.21",
78
- "typescript": "~4.5.5"
78
+ "typescript": "~4.7.3"
79
79
  },
80
- "gitHead": "8aff2ce33aad3daa53b05fa0fbe8a1b2c7ad0bdf"
80
+ "gitHead": "ccf7863d0639de966d6c6129b4aa94ba1dce2c33"
81
81
  }
@@ -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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,9 +1,9 @@
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-access-control-migration
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 {SecuritySchemeObject, ReferenceObject} from '@loopback/rest';
6
+ import {ReferenceObject, SecuritySchemeObject} from '@loopback/rest';
7
7
 
8
8
  export const OPERATION_SECURITY_SPEC = [{jwt: []}];
9
9
  export type SecuritySchemeObjects = {
@@ -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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
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-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
package/src/keys.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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
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-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT