fragment-ts 1.1.18 → 1.1.19

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.
@@ -183,7 +183,7 @@ class InitCommand {
183
183
  "migrate:revert": "fragment migrate:revert",
184
184
  },
185
185
  dependencies: {
186
- "fragment-ts": "^1.1.18",
186
+ "fragment-ts": "^1.1.19",
187
187
  "reflect-metadata": "^0.1.13",
188
188
  sqlite3: "^5.1.7",
189
189
  },
@@ -1,2 +1,2 @@
1
- export declare function Repository(): ClassDecorator;
1
+ export declare function FragmentRepository(): ClassDecorator;
2
2
  //# sourceMappingURL=repository.decorator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"repository.decorator.d.ts","sourceRoot":"","sources":["../../../src/core/decorators/repository.decorator.ts"],"names":[],"mappings":"AAIA,wBAAgB,UAAU,IAAI,cAAc,CAa3C"}
1
+ {"version":3,"file":"repository.decorator.d.ts","sourceRoot":"","sources":["../../../src/core/decorators/repository.decorator.ts"],"names":[],"mappings":"AAIA,wBAAgB,kBAAkB,IAAI,cAAc,CAanD"}
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Repository = Repository;
3
+ exports.FragmentRepository = FragmentRepository;
4
4
  const injectable_decorator_1 = require("./injectable.decorator");
5
5
  const metadata_keys_1 = require("../metadata/metadata-keys");
6
6
  const metadata_storage_1 = require("../metadata/metadata-storage");
7
- function Repository() {
7
+ function FragmentRepository() {
8
8
  return (target) => {
9
9
  console.log(`💾 Registering Repository: ${target.name}`);
10
10
  (0, injectable_decorator_1.Injectable)('singleton')(target);
@@ -1 +1 @@
1
- {"version":3,"file":"repository.decorator.js","sourceRoot":"","sources":["../../../src/core/decorators/repository.decorator.ts"],"names":[],"mappings":";;AAIA,gCAaC;AAjBD,iEAAoD;AACpD,6DAA0D;AAC1D,mEAA+D;AAE/D,SAAgB,UAAU;IACxB,OAAO,CAAC,MAAW,EAAE,EAAE;QACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QACzD,IAAA,iCAAU,EAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;QAChC,OAAO,CAAC,cAAc,CAAC,6BAAa,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QAE/D,MAAM,OAAO,GAAG,kCAAe,CAAC,WAAW,EAAE,CAAC;QAC9C,OAAO,CAAC,QAAQ,CAAC;YACf,MAAM;YACN,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,WAAW;SACnB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"repository.decorator.js","sourceRoot":"","sources":["../../../src/core/decorators/repository.decorator.ts"],"names":[],"mappings":";;AAIA,gDAaC;AAjBD,iEAAoD;AACpD,6DAA0D;AAC1D,mEAA+D;AAE/D,SAAgB,kBAAkB;IAChC,OAAO,CAAC,MAAW,EAAE,EAAE;QACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QACzD,IAAA,iCAAU,EAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;QAChC,OAAO,CAAC,cAAc,CAAC,6BAAa,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QAE/D,MAAM,OAAO,GAAG,kCAAe,CAAC,WAAW,EAAE,CAAC;QAC9C,OAAO,CAAC,QAAQ,CAAC;YACf,MAAM;YACN,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,WAAW;SACnB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export * from "./shared/errors";
24
24
  export * from "./core/scanner/component-scanner";
25
25
  export * from "./testing/runner";
26
26
  export { Request, Response, NextFunction } from "express";
27
- export * from 'typeorm';
28
- export * from 'dotenv';
29
- export { FragmentApplication, Injectable, Service, Controller, Repository, AutoConfiguration, Get, Post, Put, Delete, Patch, Body, Param, Query, Header, Req, Res, Autowired, Inject, Value, Qualifier, } from "./core";
27
+ export * from "typeorm";
28
+ export * from "dotenv";
29
+ export { FragmentApplication, Injectable, Service, Controller, FragmentRepository, AutoConfiguration, Get, Post, Put, Delete, Patch, Body, Param, Query, Header, Req, Res, Autowired, Inject, Value, Qualifier, } from "./core";
30
30
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kCAAkC,CAAC;AACjD,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC1D,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AAEvB,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,OAAO,EACP,UAAU,EACV,UAAU,EACV,iBAA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ACL,MAAM,EACN,GAAG,EACH,GAAG,EACH,SAAS,EACT,MAAM,EACN,KAAK,EACL,SAAS,GACV,MAAM,QAAQ,CAAC"}
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Qualifier = exports.Value = exports.Inject = exports.Autowired = exports.Res = exports.Req = exports.Header = exports.Query = exports.Param = exports.Body = exports.Patch = exports.Delete = exports.Put = exports.Post = exports.Get = exports.AutoConfiguration = exports.Repository = exports.Controller = exports.Service = exports.Injectable = exports.FragmentApplication = void 0;
17
+ exports.Qualifier = exports.Value = exports.Inject = exports.Autowired = exports.Res = exports.Req = exports.Header = exports.Query = exports.Param = exports.Body = exports.Patch = exports.Delete = exports.Put = exports.Post = exports.Get = exports.AutoConfiguration = exports.FragmentRepository = exports.Controller = exports.Service = exports.Injectable = exports.FragmentApplication = void 0;
18
18
  require("reflect-metadata");
19
19
  __exportStar(require("./core/decorators/application.decorator"), exports);
20
20
  __exportStar(require("./core/decorators/injectable.decorator"), exports);
@@ -47,7 +47,7 @@ Object.defineProperty(exports, "FragmentApplication", { enumerable: true, get: f
47
47
  Object.defineProperty(exports, "Injectable", { enumerable: true, get: function () { return core_1.Injectable; } });
48
48
  Object.defineProperty(exports, "Service", { enumerable: true, get: function () { return core_1.Service; } });
49
49
  Object.defineProperty(exports, "Controller", { enumerable: true, get: function () { return core_1.Controller; } });
50
- Object.defineProperty(exports, "Repository", { enumerable: true, get: function () { return core_1.Repository; } });
50
+ Object.defineProperty(exports, "FragmentRepository", { enumerable: true, get: function () { return core_1.FragmentRepository; } });
51
51
  Object.defineProperty(exports, "AutoConfiguration", { enumerable: true, get: function () { return core_1.AutoConfiguration; } });
52
52
  Object.defineProperty(exports, "Get", { enumerable: true, get: function () { return core_1.Get; } });
53
53
  Object.defineProperty(exports, "Post", { enumerable: true, get: function () { return core_1.Post; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4BAA0B;AAE1B,0EAAwD;AACxD,yEAAuD;AACvD,sEAAoD;AACpD,yEAAuD;AACvD,yEAAuD;AACvD,iFAA+D;AAC/D,2EAAyD;AACzD,yEAAuD;AACvD,oEAAkD;AAClD,oEAAkD;AAClD,yEAAuD;AACvD,0EAAwD;AACxD,+EAA6D;AAC7D,gEAA8C;AAC9C,mEAAiD;AACjD,oDAAkC;AAClC,mDAAiC;AACjC,2DAAyC;AACzC,qDAAmC;AACnC,iDAA+B;AAC/B,2DAAyC;AACzC,kDAAgC;AAChC,mEAAiD;AACjD,mDAAiC;AAEjC,0CAAwB;AACxB,yCAAuB;AAEvB,+BAsBgB;AArBd,2GAAA,mBAAmB,OAAA;AACnB,kGAAA,UAAU,OAAA;AACV,+FAAA,OAAO,OAAA;AACP,kGAAA,UAAU,OAAA;AACV,kGAAA,UAAU,OAAA;AACV,yGAAA,iBAAiB,OAAA;AACjB,2FAAA,GAAG,OAAA;AACH,4FAAA,IAAI,OAAA;AACJ,2FAAA,GAAG,OAAA;AACH,8FAAA,MAAM,OAAA;AACN,6FAAA,KAAK,OAAA;AACL,4FAAA,IAAI,OAAA;AACJ,6FAAA,KAAK,OAAA;AACL,6FAAA,KAAK,OAAA;AACL,8FAAA,MAAM,OAAA;AACN,2FAAA,GAAG,OAAA;AACH,2FAAA,GAAG,OAAA;AACH,iGAAA,SAAS,OAAA;AACT,8FAAA,MAAM,OAAA;AACN,6FAAA,KAAK,OAAA;AACL,iGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4BAA0B;AAE1B,0EAAwD;AACxD,yEAAuD;AACvD,sEAAoD;AACpD,yEAAuD;AACvD,yEAAuD;AACvD,iFAA+D;AAC/D,2EAAyD;AACzD,yEAAuD;AACvD,oEAAkD;AAClD,oEAAkD;AAClD,yEAAuD;AACvD,0EAAwD;AACxD,+EAA6D;AAC7D,gEAA8C;AAC9C,mEAAiD;AACjD,oDAAkC;AAClC,mDAAiC;AACjC,2DAAyC;AACzC,qDAAmC;AACnC,iDAA+B;AAC/B,2DAAyC;AACzC,kDAAgC;AAChC,mEAAiD;AACjD,mDAAiC;AAEjC,0CAAwB;AACxB,yCAAuB;AAEvB,+BAsBgB;AArBd,2GAAA,mBAAmB,OAAA;AACnB,kGAAA,UAAU,OAAA;AACV,+FAAA,OAAO,OAAA;AACP,kGAAA,UAAU,OAAA;AACV,0GAAA,kBAAkB,OAAA;AAClB,yGAAA,iBAAiB,OAAA;AACjB,2FAAA,GAAG,OAAA;AACH,4FAAA,IAAI,OAAA;AACJ,2FAAA,GAAG,OAAA;AACH,8FAAA,MAAM,OAAA;AACN,6FAAA,KAAK,OAAA;AACL,4FAAA,IAAI,OAAA;AACJ,6FAAA,KAAK,OAAA;AACL,6FAAA,KAAK,OAAA;AACL,8FAAA,MAAM,OAAA;AACN,2FAAA,GAAG,OAAA;AACH,2FAAA,GAAG,OAAA;AACH,iGAAA,SAAS,OAAA;AACT,8FAAA,MAAM,OAAA;AACN,6FAAA,KAAK,OAAA;AACL,iGAAA,SAAS,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fragment-ts",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "Spring Boot-style framework for TypeScript with Express and TypeORM",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -176,7 +176,7 @@ export class InitCommand {
176
176
  "migrate:revert": "fragment migrate:revert",
177
177
  },
178
178
  dependencies: {
179
- "fragment-ts": "^1.1.18",
179
+ "fragment-ts": "^1.1.19",
180
180
  "reflect-metadata": "^0.1.13",
181
181
  sqlite3: "^5.1.7",
182
182
  },
@@ -2,7 +2,7 @@ import { Injectable } from './injectable.decorator';
2
2
  import { METADATA_KEYS } from '../metadata/metadata-keys';
3
3
  import { MetadataStorage } from '../metadata/metadata-storage';
4
4
 
5
- export function Repository(): ClassDecorator {
5
+ export function FragmentRepository(): ClassDecorator {
6
6
  return (target: any) => {
7
7
  console.log(`💾 Registering Repository: ${target.name}`);
8
8
  Injectable('singleton')(target);
package/src/index.ts CHANGED
@@ -25,15 +25,15 @@ export * from "./shared/errors";
25
25
  export * from "./core/scanner/component-scanner";
26
26
  export * from "./testing/runner";
27
27
  export { Request, Response, NextFunction } from "express";
28
- export * from 'typeorm';
29
- export * from 'dotenv';
28
+ export * from "typeorm";
29
+ export * from "dotenv";
30
30
 
31
31
  export {
32
32
  FragmentApplication,
33
33
  Injectable,
34
34
  Service,
35
35
  Controller,
36
- Repository,
36
+ FragmentRepository,
37
37
  AutoConfiguration,
38
38
  Get,
39
39
  Post,