routup 0.3.0-alpha.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/decorators/utils/meta.d.ts +1 -1
- package/dist/decorators/utils/meta.d.ts.map +1 -1
- package/dist/decorators/utils/meta.js +5 -5
- package/dist/decorators/utils/meta.js.map +1 -1
- package/dist/helpers/response/index.d.ts +3 -0
- package/dist/helpers/response/index.d.ts.map +1 -1
- package/dist/helpers/response/index.js +3 -0
- package/dist/helpers/response/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/decorators/utils/meta.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAIxC,wBAAgB,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/decorators/utils/meta.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAIxC,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAI,aAAa,CAa5E"}
|
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.useDecoratorMeta = void 0;
|
|
10
10
|
const symbol = Symbol.for('DecoratorMeta');
|
|
11
|
-
function useDecoratorMeta(
|
|
12
|
-
if (symbol in
|
|
13
|
-
return
|
|
11
|
+
function useDecoratorMeta(target) {
|
|
12
|
+
if (symbol in target) {
|
|
13
|
+
return target[symbol];
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
target[symbol] = {
|
|
16
16
|
url: '',
|
|
17
17
|
middlewares: [],
|
|
18
18
|
methods: {},
|
|
19
19
|
parameters: {},
|
|
20
20
|
};
|
|
21
|
-
return
|
|
21
|
+
return target[symbol];
|
|
22
22
|
}
|
|
23
23
|
exports.useDecoratorMeta = useDecoratorMeta;
|
|
24
24
|
//# sourceMappingURL=meta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/decorators/utils/meta.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAIH,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AAE3C,SAAgB,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/decorators/utils/meta.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAIH,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AAE3C,SAAgB,gBAAgB,CAAC,MAA2B;IACxD,IAAI,MAAM,IAAI,MAAM,EAAE;QAClB,OAAQ,MAAc,CAAC,MAAM,CAAC,CAAC;KAClC;IAEA,MAAc,CAAC,MAAM,CAAC,GAAG;QACtB,GAAG,EAAE,EAAE;QACP,WAAW,EAAE,EAAE;QACf,OAAO,EAAE,EAAE;QACX,UAAU,EAAE,EAAE;KACA,CAAC;IAEnB,OAAQ,MAAc,CAAC,MAAM,CAAC,CAAC;AACnC,CAAC;AAbD,4CAaC"}
|
|
@@ -3,7 +3,10 @@ export * from './header';
|
|
|
3
3
|
export * from './header-attachment';
|
|
4
4
|
export * from './header-content-type';
|
|
5
5
|
export * from './send';
|
|
6
|
+
export * from './send-accepted';
|
|
7
|
+
export * from './send-created';
|
|
6
8
|
export * from './send-file';
|
|
7
9
|
export * from './send-format';
|
|
10
|
+
export * from './send-redirect';
|
|
8
11
|
export * from './send-stream';
|
|
9
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/response/index.ts"],"names":[],"mappings":"AAOA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/response/index.ts"],"names":[],"mappings":"AAOA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
@@ -25,7 +25,10 @@ __exportStar(require("./header"), exports);
|
|
|
25
25
|
__exportStar(require("./header-attachment"), exports);
|
|
26
26
|
__exportStar(require("./header-content-type"), exports);
|
|
27
27
|
__exportStar(require("./send"), exports);
|
|
28
|
+
__exportStar(require("./send-accepted"), exports);
|
|
29
|
+
__exportStar(require("./send-created"), exports);
|
|
28
30
|
__exportStar(require("./send-file"), exports);
|
|
29
31
|
__exportStar(require("./send-format"), exports);
|
|
32
|
+
__exportStar(require("./send-redirect"), exports);
|
|
30
33
|
__exportStar(require("./send-stream"), exports);
|
|
31
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/response/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,2CAAyB;AACzB,sDAAoC;AACpC,wDAAsC;AACtC,yCAAuB;AACvB,8CAA4B;AAC5B,gDAA8B;AAC9B,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/response/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,2CAAyB;AACzB,sDAAoC;AACpC,wDAAsC;AACtC,yCAAuB;AACvB,kDAAgC;AAChC,iDAA+B;AAC/B,8CAA4B;AAC5B,gDAA8B;AAC9B,kDAAgC;AAChC,gDAA8B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "routup",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Routup is a minimalistic http based routing framework.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"path-to-regexp": "^6.2.1",
|
|
53
53
|
"smob": "^0.0.6"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "73918e5ed9bce7f2b3ec8f15f780c5bc24f38ad3"
|
|
56
56
|
}
|