typespeed 2.4.1 → 2.4.2
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/introduction/decorator/example-import.class.js +17 -0
- package/dist/introduction/decorator/main-app.js +14 -0
- package/dist/introduction/decorator/main-decorator.js +127 -0
- package/dist/introduction/decorator/main-import.js +1 -0
- package/dist/introduction/decorator/main-reflect.js +38 -0
- package/dist/introduction/web-services/db-init.js +33 -0
- package/dist/introduction/web-services/db-singleton.js +49 -0
- package/dist/introduction/web-services/http-if.js +12 -0
- package/dist/introduction/web-services/http-init.js +7 -0
- package/dist/introduction/web-services/http-router.js +23 -0
- package/dist/{database.decorator.js → src/database.decorator.js} +2 -4
- package/package.json +2 -4
- package/src/database.decorator.ts +2 -4
- package/tsconfig.json +2 -1
- package/app/node_modules/.package-lock.json +0 -134
- package/app/node_modules/@types/body-parser/LICENSE +0 -21
- package/app/node_modules/@types/body-parser/README.md +0 -16
- package/app/node_modules/@types/body-parser/index.d.ts +0 -107
- package/app/node_modules/@types/body-parser/package.json +0 -58
- package/app/node_modules/@types/connect/LICENSE +0 -21
- package/app/node_modules/@types/connect/README.md +0 -16
- package/app/node_modules/@types/connect/index.d.ts +0 -93
- package/app/node_modules/@types/connect/package.json +0 -32
- package/app/node_modules/@types/express/LICENSE +0 -21
- package/app/node_modules/@types/express/README.md +0 -16
- package/app/node_modules/@types/express/index.d.ts +0 -136
- package/app/node_modules/@types/express/package.json +0 -45
- package/app/node_modules/@types/express-serve-static-core/LICENSE +0 -21
- package/app/node_modules/@types/express-serve-static-core/README.md +0 -16
- package/app/node_modules/@types/express-serve-static-core/index.d.ts +0 -1281
- package/app/node_modules/@types/express-serve-static-core/package.json +0 -55
- package/app/node_modules/@types/mime/LICENSE +0 -21
- package/app/node_modules/@types/mime/Mime.d.ts +0 -10
- package/app/node_modules/@types/mime/README.md +0 -16
- package/app/node_modules/@types/mime/index.d.ts +0 -35
- package/app/node_modules/@types/mime/lite.d.ts +0 -7
- package/app/node_modules/@types/mime/package.json +0 -29
- package/app/node_modules/@types/node/LICENSE +0 -21
- package/app/node_modules/@types/node/README.md +0 -16
- package/app/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/app/node_modules/@types/node/assert.d.ts +0 -961
- package/app/node_modules/@types/node/async_hooks.d.ts +0 -518
- package/app/node_modules/@types/node/buffer.d.ts +0 -2323
- package/app/node_modules/@types/node/child_process.d.ts +0 -1399
- package/app/node_modules/@types/node/cluster.d.ts +0 -410
- package/app/node_modules/@types/node/console.d.ts +0 -412
- package/app/node_modules/@types/node/constants.d.ts +0 -18
- package/app/node_modules/@types/node/crypto.d.ts +0 -3973
- package/app/node_modules/@types/node/dgram.d.ts +0 -545
- package/app/node_modules/@types/node/diagnostics_channel.d.ts +0 -192
- package/app/node_modules/@types/node/dns/promises.d.ts +0 -370
- package/app/node_modules/@types/node/dns.d.ts +0 -660
- package/app/node_modules/@types/node/dom-events.d.ts +0 -126
- package/app/node_modules/@types/node/domain.d.ts +0 -170
- package/app/node_modules/@types/node/events.d.ts +0 -682
- package/app/node_modules/@types/node/fs/promises.d.ts +0 -1159
- package/app/node_modules/@types/node/fs.d.ts +0 -3976
- package/app/node_modules/@types/node/globals.d.ts +0 -303
- package/app/node_modules/@types/node/globals.global.d.ts +0 -1
- package/app/node_modules/@types/node/http.d.ts +0 -1714
- package/app/node_modules/@types/node/http2.d.ts +0 -2133
- package/app/node_modules/@types/node/https.d.ts +0 -542
- package/app/node_modules/@types/node/index.d.ts +0 -134
- package/app/node_modules/@types/node/inspector.d.ts +0 -2741
- package/app/node_modules/@types/node/module.d.ts +0 -115
- package/app/node_modules/@types/node/net.d.ts +0 -883
- package/app/node_modules/@types/node/os.d.ts +0 -473
- package/app/node_modules/@types/node/package.json +0 -237
- package/app/node_modules/@types/node/path.d.ts +0 -191
- package/app/node_modules/@types/node/perf_hooks.d.ts +0 -625
- package/app/node_modules/@types/node/process.d.ts +0 -1488
- package/app/node_modules/@types/node/punycode.d.ts +0 -117
- package/app/node_modules/@types/node/querystring.d.ts +0 -131
- package/app/node_modules/@types/node/readline/promises.d.ts +0 -143
- package/app/node_modules/@types/node/readline.d.ts +0 -653
- package/app/node_modules/@types/node/repl.d.ts +0 -424
- package/app/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/app/node_modules/@types/node/stream/promises.d.ts +0 -42
- package/app/node_modules/@types/node/stream/web.d.ts +0 -330
- package/app/node_modules/@types/node/stream.d.ts +0 -1440
- package/app/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/app/node_modules/@types/node/test.d.ts +0 -783
- package/app/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/app/node_modules/@types/node/timers.d.ts +0 -101
- package/app/node_modules/@types/node/tls.d.ts +0 -1111
- package/app/node_modules/@types/node/trace_events.d.ts +0 -171
- package/app/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/app/node_modules/@types/node/ts4.8/assert.d.ts +0 -961
- package/app/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -518
- package/app/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2323
- package/app/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1399
- package/app/node_modules/@types/node/ts4.8/cluster.d.ts +0 -410
- package/app/node_modules/@types/node/ts4.8/console.d.ts +0 -412
- package/app/node_modules/@types/node/ts4.8/constants.d.ts +0 -18
- package/app/node_modules/@types/node/ts4.8/crypto.d.ts +0 -3972
- package/app/node_modules/@types/node/ts4.8/dgram.d.ts +0 -545
- package/app/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -192
- package/app/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -370
- package/app/node_modules/@types/node/ts4.8/dns.d.ts +0 -660
- package/app/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -126
- package/app/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/app/node_modules/@types/node/ts4.8/events.d.ts +0 -682
- package/app/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1138
- package/app/node_modules/@types/node/ts4.8/fs.d.ts +0 -3875
- package/app/node_modules/@types/node/ts4.8/globals.d.ts +0 -302
- package/app/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/app/node_modules/@types/node/ts4.8/http.d.ts +0 -1651
- package/app/node_modules/@types/node/ts4.8/http2.d.ts +0 -2133
- package/app/node_modules/@types/node/ts4.8/https.d.ts +0 -542
- package/app/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/app/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2741
- package/app/node_modules/@types/node/ts4.8/module.d.ts +0 -115
- package/app/node_modules/@types/node/ts4.8/net.d.ts +0 -883
- package/app/node_modules/@types/node/ts4.8/os.d.ts +0 -473
- package/app/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/app/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -625
- package/app/node_modules/@types/node/ts4.8/process.d.ts +0 -1488
- package/app/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/app/node_modules/@types/node/ts4.8/querystring.d.ts +0 -131
- package/app/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -143
- package/app/node_modules/@types/node/ts4.8/readline.d.ts +0 -653
- package/app/node_modules/@types/node/ts4.8/repl.d.ts +0 -424
- package/app/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/app/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -42
- package/app/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -330
- package/app/node_modules/@types/node/ts4.8/stream.d.ts +0 -1440
- package/app/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/app/node_modules/@types/node/ts4.8/test.d.ts +0 -784
- package/app/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/app/node_modules/@types/node/ts4.8/timers.d.ts +0 -94
- package/app/node_modules/@types/node/ts4.8/tls.d.ts +0 -1111
- package/app/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -171
- package/app/node_modules/@types/node/ts4.8/tty.d.ts +0 -206
- package/app/node_modules/@types/node/ts4.8/url.d.ts +0 -902
- package/app/node_modules/@types/node/ts4.8/util.d.ts +0 -2017
- package/app/node_modules/@types/node/ts4.8/v8.d.ts +0 -541
- package/app/node_modules/@types/node/ts4.8/vm.d.ts +0 -644
- package/app/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
- package/app/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -695
- package/app/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/app/node_modules/@types/node/tty.d.ts +0 -206
- package/app/node_modules/@types/node/url.d.ts +0 -902
- package/app/node_modules/@types/node/util.d.ts +0 -2017
- package/app/node_modules/@types/node/v8.d.ts +0 -541
- package/app/node_modules/@types/node/vm.d.ts +0 -644
- package/app/node_modules/@types/node/wasi.d.ts +0 -158
- package/app/node_modules/@types/node/worker_threads.d.ts +0 -695
- package/app/node_modules/@types/node/zlib.d.ts +0 -517
- package/app/node_modules/@types/qs/LICENSE +0 -21
- package/app/node_modules/@types/qs/README.md +0 -16
- package/app/node_modules/@types/qs/index.d.ts +0 -62
- package/app/node_modules/@types/qs/package.json +0 -65
- package/app/node_modules/@types/range-parser/LICENSE +0 -21
- package/app/node_modules/@types/range-parser/README.md +0 -55
- package/app/node_modules/@types/range-parser/index.d.ts +0 -35
- package/app/node_modules/@types/range-parser/package.json +0 -25
- package/app/node_modules/@types/send/LICENSE +0 -21
- package/app/node_modules/@types/send/README.md +0 -16
- package/app/node_modules/@types/send/index.d.ts +0 -231
- package/app/node_modules/@types/send/package.json +0 -33
- package/app/node_modules/@types/serve-static/LICENSE +0 -21
- package/app/node_modules/@types/serve-static/README.md +0 -16
- package/app/node_modules/@types/serve-static/index.d.ts +0 -113
- package/app/node_modules/@types/serve-static/package.json +0 -38
- package/app/node_modules/colors/LICENSE +0 -25
- package/app/node_modules/colors/README.md +0 -221
- package/app/node_modules/colors/examples/normal-usage.js +0 -82
- package/app/node_modules/colors/examples/safe-string.js +0 -79
- package/app/node_modules/colors/index.d.ts +0 -136
- package/app/node_modules/colors/lib/colors.js +0 -211
- package/app/node_modules/colors/lib/custom/trap.js +0 -46
- package/app/node_modules/colors/lib/custom/zalgo.js +0 -110
- package/app/node_modules/colors/lib/extendStringPrototype.js +0 -110
- package/app/node_modules/colors/lib/index.js +0 -13
- package/app/node_modules/colors/lib/maps/america.js +0 -10
- package/app/node_modules/colors/lib/maps/rainbow.js +0 -12
- package/app/node_modules/colors/lib/maps/random.js +0 -11
- package/app/node_modules/colors/lib/maps/zebra.js +0 -5
- package/app/node_modules/colors/lib/styles.js +0 -95
- package/app/node_modules/colors/lib/system/has-flag.js +0 -35
- package/app/node_modules/colors/lib/system/supports-colors.js +0 -151
- package/app/node_modules/colors/package.json +0 -45
- package/app/node_modules/colors/safe.d.ts +0 -48
- package/app/node_modules/colors/safe.js +0 -10
- package/app/node_modules/colors/themes/generic-logging.js +0 -12
- package/app/node_modules/dateformat/LICENSE +0 -20
- package/app/node_modules/dateformat/Readme.md +0 -204
- package/app/node_modules/dateformat/lib/dateformat.js +0 -1
- package/app/node_modules/dateformat/package.json +0 -38
- package/app/node_modules/mkdirp/CHANGELOG.md +0 -15
- package/app/node_modules/mkdirp/LICENSE +0 -21
- package/app/node_modules/mkdirp/bin/cmd.js +0 -68
- package/app/node_modules/mkdirp/index.js +0 -31
- package/app/node_modules/mkdirp/lib/find-made.js +0 -29
- package/app/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
- package/app/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
- package/app/node_modules/mkdirp/lib/opts-arg.js +0 -23
- package/app/node_modules/mkdirp/lib/path-arg.js +0 -29
- package/app/node_modules/mkdirp/lib/use-native.js +0 -10
- package/app/node_modules/mkdirp/package.json +0 -44
- package/app/node_modules/mkdirp/readme.markdown +0 -266
- package/app/node_modules/tinytim/.travis.yml +0 -5
- package/app/node_modules/tinytim/README.md +0 -212
- package/app/node_modules/tinytim/index.js +0 -1
- package/app/node_modules/tinytim/lib/index.js +0 -55
- package/app/node_modules/tinytim/lib/tinytim.js +0 -50
- package/app/node_modules/tinytim/package.json +0 -24
- package/app/node_modules/tinytim/test/files/html.tim +0 -1
- package/app/node_modules/tinytim/test/files/string.tim +0 -1
- package/app/node_modules/tinytim/test/files/string2.tim +0 -1
- package/app/node_modules/tinytim/test/render-file-replace.js +0 -39
- package/app/node_modules/tinytim/test/render-replace.js +0 -94
- package/app/node_modules/tinytim/test/tim-replace.js +0 -95
- package/app/node_modules/tracer/README.md +0 -747
- package/app/node_modules/tracer/lib/color_console.js +0 -15
- package/app/node_modules/tracer/lib/console.js +0 -165
- package/app/node_modules/tracer/lib/dailyfile.js +0 -92
- package/app/node_modules/tracer/lib/index.js +0 -10
- package/app/node_modules/tracer/lib/settings.js +0 -25
- package/app/node_modules/tracer/lib/utils.js +0 -58
- package/app/node_modules/tracer/package.json +0 -53
- package/app/node_modules/tracer/types/index.d.ts +0 -189
- package/dist/scaffold/templates/front-page.class.ts.tpl +0 -12
- package/dist/scaffold/templates/main.ts.tpl +0 -13
- package/dist/scaffold/templates/nodemon.json.tpl +0 -7
- package/dist/scaffold/templates/package.json.tpl +0 -16
- package/dist/scaffold/templates/tsconfig.json.tpl +0 -20
- /package/dist/{core.decorator.js → src/core.decorator.js} +0 -0
- /package/dist/{default → src/default}/default-authentication.class.js +0 -0
- /package/dist/{default → src/default}/express-server.class.js +0 -0
- /package/dist/{default → src/default}/log-default.class.js +0 -0
- /package/dist/{default → src/default}/node-cache.class.js +0 -0
- /package/dist/{default → src/default}/pages/404.html +0 -0
- /package/dist/{default → src/default}/pages/500.html +0 -0
- /package/dist/{default → src/default}/rabbitmq.class.js +0 -0
- /package/dist/{default → src/default}/read-write-db.class.js +0 -0
- /package/dist/{default → src/default}/redis.class.js +0 -0
- /package/dist/{default → src/default}/socket-io.class.js +0 -0
- /package/dist/{factory → src/factory}/authentication-factory.class.js +0 -0
- /package/dist/{factory → src/factory}/cache-factory.class.js +0 -0
- /package/dist/{factory → src/factory}/data-source-factory.class.js +0 -0
- /package/dist/{factory → src/factory}/log-factory.class.js +0 -0
- /package/dist/{factory → src/factory}/server-factory.class.js +0 -0
- /package/dist/{route.decorator.js → src/route.decorator.js} +0 -0
- /package/dist/{scaffold → src/scaffold}/command.js +0 -0
- /package/dist/{typespeed.js → src/typespeed.js} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
let ExampleImport = class ExampleImport {
|
|
10
|
+
};
|
|
11
|
+
ExampleImport = __decorate([
|
|
12
|
+
app
|
|
13
|
+
], ExampleImport);
|
|
14
|
+
exports.default = ExampleImport;
|
|
15
|
+
function app(target) {
|
|
16
|
+
console.log("import 载入 ExampleImport 类的 @app 类装饰器。");
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
let MainApp = class MainApp {
|
|
8
|
+
};
|
|
9
|
+
MainApp = __decorate([
|
|
10
|
+
app
|
|
11
|
+
], MainApp);
|
|
12
|
+
function app(target) {
|
|
13
|
+
console.log("执行 @app 类装饰器");
|
|
14
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
require("reflect-metadata");
|
|
16
|
+
let SecondClass = class SecondClass {
|
|
17
|
+
};
|
|
18
|
+
SecondClass = __decorate([
|
|
19
|
+
atClassWithArgs(1, 2, 3)
|
|
20
|
+
], SecondClass);
|
|
21
|
+
let FirstClass = class FirstClass {
|
|
22
|
+
get newname() {
|
|
23
|
+
return this.name;
|
|
24
|
+
}
|
|
25
|
+
changeName(name) {
|
|
26
|
+
this.name = name;
|
|
27
|
+
return new SecondClass();
|
|
28
|
+
}
|
|
29
|
+
change(name, age) {
|
|
30
|
+
this.age = age;
|
|
31
|
+
this.name = name;
|
|
32
|
+
}
|
|
33
|
+
getName() {
|
|
34
|
+
return this.name;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
__decorate([
|
|
38
|
+
atPropertyWithArgs("Li", "Mei"),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], FirstClass.prototype, "name", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
atProperty,
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], FirstClass.prototype, "age", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
atAccessor,
|
|
47
|
+
__metadata("design:type", String),
|
|
48
|
+
__metadata("design:paramtypes", [])
|
|
49
|
+
], FirstClass.prototype, "newname", null);
|
|
50
|
+
__decorate([
|
|
51
|
+
atMethod,
|
|
52
|
+
__metadata("design:type", Function),
|
|
53
|
+
__metadata("design:paramtypes", [String]),
|
|
54
|
+
__metadata("design:returntype", SecondClass)
|
|
55
|
+
], FirstClass.prototype, "changeName", null);
|
|
56
|
+
__decorate([
|
|
57
|
+
atMethodWithArgs("New", "Type"),
|
|
58
|
+
__param(1, atParameter),
|
|
59
|
+
__metadata("design:type", Function),
|
|
60
|
+
__metadata("design:paramtypes", [String, Number]),
|
|
61
|
+
__metadata("design:returntype", void 0)
|
|
62
|
+
], FirstClass.prototype, "change", null);
|
|
63
|
+
FirstClass = __decorate([
|
|
64
|
+
atClass
|
|
65
|
+
], FirstClass);
|
|
66
|
+
exports.default = FirstClass;
|
|
67
|
+
const obj = new FirstClass();
|
|
68
|
+
console.log("FirstClass对象调用getName()取得装饰器赋值:", obj.getName());
|
|
69
|
+
// 类装饰器
|
|
70
|
+
function atClass(target) {
|
|
71
|
+
console.log("类装饰器,类名是:", target.name);
|
|
72
|
+
}
|
|
73
|
+
// 类装饰器,带参数
|
|
74
|
+
function atClassWithArgs(...args) {
|
|
75
|
+
return function (target) {
|
|
76
|
+
console.log("类装饰器有参数,参数值:", args.join(","));
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
// 方法装饰器
|
|
80
|
+
function atMethod(target, propertyKey) {
|
|
81
|
+
const returnType = Reflect.getMetadata("design:returntype", target, propertyKey);
|
|
82
|
+
console.log("方法装饰器,获得返回类型:", returnType.name);
|
|
83
|
+
}
|
|
84
|
+
// 方法装饰器,带参数
|
|
85
|
+
function atMethodWithArgs(...args) {
|
|
86
|
+
return function (target, propertyKey) {
|
|
87
|
+
console.log("方法装饰器有参数,参数值:", args.join(","));
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
// 成员变量装饰器
|
|
91
|
+
function atProperty(target, propertyKey) {
|
|
92
|
+
const propertyType = Reflect.getMetadata("design:type", target, propertyKey);
|
|
93
|
+
console.log("变量装饰器,获得变量类型:", propertyType.name);
|
|
94
|
+
}
|
|
95
|
+
// 成员变量装饰器,带参数
|
|
96
|
+
function atPropertyWithArgs(...args) {
|
|
97
|
+
return function (target, propertyKey) {
|
|
98
|
+
console.log("变量装饰器有参数,参数值:", args.join(","));
|
|
99
|
+
Object.defineProperty(target, propertyKey, {
|
|
100
|
+
get: () => {
|
|
101
|
+
return args;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
// 访问器装饰器
|
|
107
|
+
function atAccessor(target, propertyKey, descriptor) {
|
|
108
|
+
const returnType = Reflect.getMetadata("design:type", target, propertyKey);
|
|
109
|
+
console.log("访问器装饰器,访问器类型是:", returnType, ",值是:", target[propertyKey]);
|
|
110
|
+
}
|
|
111
|
+
// 访问器装饰器,带参数
|
|
112
|
+
function atAccessorWithArgs(...args) {
|
|
113
|
+
return function (target, propertyKey, descriptor) {
|
|
114
|
+
console.log("访问器装饰器,参数值:", args.join(","));
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
// 参数装饰器
|
|
118
|
+
function atParameter(target, propertyKey, parameterIndex) {
|
|
119
|
+
const parameterType = Reflect.getMetadata("design:paramtypes", target, propertyKey);
|
|
120
|
+
console.log("参数装饰器,参数位置在:", parameterIndex, "参数类型是:", parameterType[parameterIndex].name);
|
|
121
|
+
}
|
|
122
|
+
// 参数装饰器,带参数
|
|
123
|
+
function atParameterWithArgs(...args) {
|
|
124
|
+
return function (target, propertyKey, parameterIndex) {
|
|
125
|
+
console.log("参数装饰器有参数,参数值:", args.join(","));
|
|
126
|
+
};
|
|
127
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Promise.resolve().then(() => require("./example-import.class"));
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
require("reflect-metadata");
|
|
13
|
+
class MainReflect {
|
|
14
|
+
getAge() {
|
|
15
|
+
return this.age;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
injectAge(10),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], MainReflect.prototype, "age", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
findReturn,
|
|
24
|
+
__metadata("design:type", Function),
|
|
25
|
+
__metadata("design:paramtypes", []),
|
|
26
|
+
__metadata("design:returntype", Number)
|
|
27
|
+
], MainReflect.prototype, "getAge", null);
|
|
28
|
+
const mainReflect = new MainReflect();
|
|
29
|
+
console.log("获得Age值:", mainReflect.getAge());
|
|
30
|
+
function injectAge(arg) {
|
|
31
|
+
return function (target, propertyKey) {
|
|
32
|
+
Object.defineProperty(target, propertyKey, { get: () => { return arg; } });
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function findReturn(target, propertyKey) {
|
|
36
|
+
const returnType = Reflect.getMetadata("design:returntype", target, propertyKey);
|
|
37
|
+
console.log(target[propertyKey].name, "的返回类型是:", returnType.name);
|
|
38
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const http_1 = require("http");
|
|
4
|
+
const mysql2_1 = require("mysql2");
|
|
5
|
+
class First {
|
|
6
|
+
page(response) {
|
|
7
|
+
response.end("I am first page.");
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
class User {
|
|
11
|
+
page(response) {
|
|
12
|
+
const connection = (0, mysql2_1.createConnection)({ host: 'localhost', user: 'root', "password": "qwer1234", database: 'test' });
|
|
13
|
+
connection.query('SELECT * FROM `user`', (err, results) => {
|
|
14
|
+
response.end(JSON.stringify(results));
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
class Root {
|
|
19
|
+
page(response) {
|
|
20
|
+
response.end("I am main page.");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const router = new Map();
|
|
24
|
+
router.set("/first", new First());
|
|
25
|
+
router.set("/main", new Root());
|
|
26
|
+
router.set("/user", new User());
|
|
27
|
+
const server = (0, http_1.createServer)((request, response) => {
|
|
28
|
+
let page = router.get(request.url === undefined ? "" : request.url);
|
|
29
|
+
if (page === undefined) {
|
|
30
|
+
page = new Root();
|
|
31
|
+
}
|
|
32
|
+
page.page(response);
|
|
33
|
+
}).listen(3000);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const http_1 = require("http");
|
|
4
|
+
const mysql2_1 = require("mysql2");
|
|
5
|
+
class First {
|
|
6
|
+
page(response) {
|
|
7
|
+
response.end("I am first page.");
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
class User {
|
|
11
|
+
page(response) {
|
|
12
|
+
const database = Database.getInstance();
|
|
13
|
+
const databaseCopy = Database.getInstance();
|
|
14
|
+
console.log("两个对象是否一致:", database === databaseCopy);
|
|
15
|
+
database.query('SELECT * FROM `user`', (err, results) => {
|
|
16
|
+
response.end(JSON.stringify(results));
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
class Root {
|
|
21
|
+
page(response) {
|
|
22
|
+
response.end("I am main page.");
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
class Database {
|
|
26
|
+
constructor(connection) {
|
|
27
|
+
this.connection = connection;
|
|
28
|
+
}
|
|
29
|
+
static getInstance() {
|
|
30
|
+
if (!Database.instance) {
|
|
31
|
+
Database.instance = new Database((0, mysql2_1.createConnection)({ host: 'localhost', user: 'root', "password": "qwer1234", database: 'test' }));
|
|
32
|
+
}
|
|
33
|
+
return Database.instance;
|
|
34
|
+
}
|
|
35
|
+
query(sql, callback) {
|
|
36
|
+
this.connection.query('SELECT * FROM `user`', callback);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const router = new Map();
|
|
40
|
+
router.set("/first", new First());
|
|
41
|
+
router.set("/main", new Root());
|
|
42
|
+
router.set("/user", new User());
|
|
43
|
+
const server = (0, http_1.createServer)((request, response) => {
|
|
44
|
+
let page = router.get(request.url === undefined ? "" : request.url);
|
|
45
|
+
if (page === undefined) {
|
|
46
|
+
page = new Root();
|
|
47
|
+
}
|
|
48
|
+
page.page(response);
|
|
49
|
+
}).listen(3000);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const http_1 = require("http");
|
|
4
|
+
// 使用 IF 语句来判断请求的 URL
|
|
5
|
+
const server = (0, http_1.createServer)((request, response) => {
|
|
6
|
+
if (request.url === "/first") {
|
|
7
|
+
response.end("I am first page.");
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
response.end("I am main page.");
|
|
11
|
+
}
|
|
12
|
+
}).listen(3000);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const http_1 = require("http");
|
|
4
|
+
class First {
|
|
5
|
+
page(response) {
|
|
6
|
+
response.end("I am first page.");
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
class Root {
|
|
10
|
+
page(response) {
|
|
11
|
+
response.end("I am main page.");
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
const router = new Map();
|
|
15
|
+
router.set("/first", new First());
|
|
16
|
+
router.set("/main", new Root());
|
|
17
|
+
const server = (0, http_1.createServer)((request, response) => {
|
|
18
|
+
let page = router.get(request.url === undefined ? "" : request.url);
|
|
19
|
+
if (page === undefined) {
|
|
20
|
+
page = new Root();
|
|
21
|
+
}
|
|
22
|
+
page.page(response);
|
|
23
|
+
}).listen(3000);
|
|
@@ -305,13 +305,11 @@ class Model {
|
|
|
305
305
|
}
|
|
306
306
|
else {
|
|
307
307
|
const operatorTemplate = { $lt: "<", $lte: "<=", $gt: ">", $gte: ">=", $ne: "!=", $like: "LIKE" };
|
|
308
|
-
|
|
309
|
-
Object.keys(conditions[field]).map((operator) => {
|
|
308
|
+
Object.keys(conditions[field]).map((operator, index) => {
|
|
310
309
|
if (operatorTemplate[operator]) {
|
|
311
310
|
const operatorValue = operatorTemplate[operator];
|
|
312
|
-
result["sql"] +=
|
|
311
|
+
result["sql"] += (index ? " AND " : "") + ` ${field} ${operatorValue} ? `;
|
|
313
312
|
result["values"].push(conditions[field][operator]);
|
|
314
|
-
firstCondition = false;
|
|
315
313
|
}
|
|
316
314
|
});
|
|
317
315
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typespeed",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "A new Framework for TypeScript.",
|
|
5
5
|
"author": "speedphp",
|
|
6
6
|
"license": "MIT License",
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
"start": "ts-node --transpile-only app/src/main.ts",
|
|
11
11
|
"build": "tsc -p .",
|
|
12
12
|
"postbuild": "cp src/typespeed.d.ts dist/typespeed.d.ts && cp -r src/default/pages dist/default/pages && cp -r src/scaffold/templates dist/scaffold/templates",
|
|
13
|
-
"prebuild": "rm -rf dist"
|
|
14
|
-
"prepublishOnly": "npm version patch && npm run build",
|
|
15
|
-
"upgrade": "npm version minor"
|
|
13
|
+
"prebuild": "rm -rf dist"
|
|
16
14
|
},
|
|
17
15
|
"main": "dist/typespeed.js",
|
|
18
16
|
"bin": {
|
|
@@ -313,13 +313,11 @@ class Model {
|
|
|
313
313
|
result["sql"] += `(${orSql})`;
|
|
314
314
|
} else {
|
|
315
315
|
const operatorTemplate = { $lt: "<", $lte: "<=", $gt: ">", $gte: ">=", $ne: "!=", $like: "LIKE" };
|
|
316
|
-
|
|
317
|
-
Object.keys(conditions[field]).map((operator) => {
|
|
316
|
+
Object.keys(conditions[field]).map((operator, index) => {
|
|
318
317
|
if (operatorTemplate[operator]) {
|
|
319
318
|
const operatorValue = operatorTemplate[operator];
|
|
320
|
-
result["sql"] +=
|
|
319
|
+
result["sql"] += (index ? " AND " : "") + ` ${field} ${operatorValue} ? `;
|
|
321
320
|
result["values"].push(conditions[field][operator]);
|
|
322
|
-
firstCondition = false;
|
|
323
321
|
}
|
|
324
322
|
});
|
|
325
323
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "test-typespeed",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"lockfileVersion": 3,
|
|
5
|
-
"requires": true,
|
|
6
|
-
"packages": {
|
|
7
|
-
"node_modules/@types/body-parser": {
|
|
8
|
-
"version": "1.19.2",
|
|
9
|
-
"resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz",
|
|
10
|
-
"integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==",
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@types/connect": "*",
|
|
13
|
-
"@types/node": "*"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"node_modules/@types/connect": {
|
|
17
|
-
"version": "3.4.35",
|
|
18
|
-
"resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz",
|
|
19
|
-
"integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==",
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"@types/node": "*"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"node_modules/@types/express": {
|
|
25
|
-
"version": "4.17.17",
|
|
26
|
-
"resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz",
|
|
27
|
-
"integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==",
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@types/body-parser": "*",
|
|
30
|
-
"@types/express-serve-static-core": "^4.17.33",
|
|
31
|
-
"@types/qs": "*",
|
|
32
|
-
"@types/serve-static": "*"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"node_modules/@types/express-serve-static-core": {
|
|
36
|
-
"version": "4.17.35",
|
|
37
|
-
"resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz",
|
|
38
|
-
"integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==",
|
|
39
|
-
"dependencies": {
|
|
40
|
-
"@types/node": "*",
|
|
41
|
-
"@types/qs": "*",
|
|
42
|
-
"@types/range-parser": "*",
|
|
43
|
-
"@types/send": "*"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"node_modules/@types/mime": {
|
|
47
|
-
"version": "1.3.2",
|
|
48
|
-
"resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz",
|
|
49
|
-
"integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw=="
|
|
50
|
-
},
|
|
51
|
-
"node_modules/@types/node": {
|
|
52
|
-
"version": "18.16.14",
|
|
53
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.14.tgz",
|
|
54
|
-
"integrity": "sha512-+ImzUB3mw2c5ISJUq0punjDilUQ5GnUim0ZRvchHIWJmOC0G+p0kzhXBqj6cDjK0QdPFwzrHWgrJp3RPvCG5qg=="
|
|
55
|
-
},
|
|
56
|
-
"node_modules/@types/qs": {
|
|
57
|
-
"version": "6.9.7",
|
|
58
|
-
"resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz",
|
|
59
|
-
"integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw=="
|
|
60
|
-
},
|
|
61
|
-
"node_modules/@types/range-parser": {
|
|
62
|
-
"version": "1.2.4",
|
|
63
|
-
"resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz",
|
|
64
|
-
"integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw=="
|
|
65
|
-
},
|
|
66
|
-
"node_modules/@types/send": {
|
|
67
|
-
"version": "0.17.1",
|
|
68
|
-
"resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz",
|
|
69
|
-
"integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==",
|
|
70
|
-
"dependencies": {
|
|
71
|
-
"@types/mime": "^1",
|
|
72
|
-
"@types/node": "*"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"node_modules/@types/serve-static": {
|
|
76
|
-
"version": "1.15.1",
|
|
77
|
-
"resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz",
|
|
78
|
-
"integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==",
|
|
79
|
-
"dependencies": {
|
|
80
|
-
"@types/mime": "*",
|
|
81
|
-
"@types/node": "*"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"node_modules/colors": {
|
|
85
|
-
"version": "1.4.0",
|
|
86
|
-
"resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz",
|
|
87
|
-
"integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==",
|
|
88
|
-
"engines": {
|
|
89
|
-
"node": ">=0.1.90"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"node_modules/dateformat": {
|
|
93
|
-
"version": "4.5.1",
|
|
94
|
-
"resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.5.1.tgz",
|
|
95
|
-
"integrity": "sha512-OD0TZ+B7yP7ZgpJf5K2DIbj3FZvFvxgFUuaqA/V5zTjAtAAXZ1E8bktHxmAGs4x5b7PflqA9LeQ84Og7wYtF7Q==",
|
|
96
|
-
"engines": {
|
|
97
|
-
"node": "*"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"node_modules/mkdirp": {
|
|
101
|
-
"version": "1.0.4",
|
|
102
|
-
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
|
|
103
|
-
"integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
|
|
104
|
-
"bin": {
|
|
105
|
-
"mkdirp": "bin/cmd.js"
|
|
106
|
-
},
|
|
107
|
-
"engines": {
|
|
108
|
-
"node": ">=10"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
"node_modules/tinytim": {
|
|
112
|
-
"version": "0.1.1",
|
|
113
|
-
"resolved": "https://registry.npmjs.org/tinytim/-/tinytim-0.1.1.tgz",
|
|
114
|
-
"integrity": "sha512-NIpsp9lBIxPNzB++HnMmUd4byzJSVbbO4F+As1Gb1IG/YQT5QvmBDjpx8SpDS8fhGC+t+Qw8ldQgbcAIaU+2cA==",
|
|
115
|
-
"engines": {
|
|
116
|
-
"node": ">= 0.2.0"
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
"node_modules/tracer": {
|
|
120
|
-
"version": "1.1.6",
|
|
121
|
-
"resolved": "https://registry.npmjs.org/tracer/-/tracer-1.1.6.tgz",
|
|
122
|
-
"integrity": "sha512-VKEIQRNgzSgti18whs+8l7e2y/gWcklw+C/xZtFH/AGvaN6GDlvhkQTFEsy448Gxb5MtbNbzJiG0L1TJEQnqcA==",
|
|
123
|
-
"dependencies": {
|
|
124
|
-
"colors": "1.4.0",
|
|
125
|
-
"dateformat": "4.5.1",
|
|
126
|
-
"mkdirp": "^1.0.4",
|
|
127
|
-
"tinytim": "0.1.1"
|
|
128
|
-
},
|
|
129
|
-
"engines": {
|
|
130
|
-
"node": ">= 0.10.0"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
> `npm install --save @types/body-parser`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for body-parser (https://github.com/expressjs/body-parser).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/body-parser.
|
|
9
|
-
|
|
10
|
-
### Additional Details
|
|
11
|
-
* Last updated: Tue, 16 Nov 2021 18:31:30 GMT
|
|
12
|
-
* Dependencies: [@types/connect](https://npmjs.com/package/@types/connect), [@types/node](https://npmjs.com/package/@types/node)
|
|
13
|
-
* Global values: none
|
|
14
|
-
|
|
15
|
-
# Credits
|
|
16
|
-
These definitions were written by [Santi Albo](https://github.com/santialbo), [Vilic Vane](https://github.com/vilic), [Jonathan Häberle](https://github.com/dreampulse), [Gevik Babakhani](https://github.com/blendsdk), [Tomasz Łaziuk](https://github.com/tlaziuk), [Jason Walton](https://github.com/jwalton), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).
|