resting-squirrel-controller 2.5.0 → 2.6.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/utils.d.ts CHANGED
@@ -1,165 +1,194 @@
1
- /// <reference types="node" />
2
- import * as nfs from 'fs';
3
- export declare const fs: {
4
- readdir(path: nfs.PathLike): Promise<Array<string>>;
5
- stat(path: nfs.PathLike): Promise<nfs.Stats>;
6
- rename: typeof nfs.rename;
7
- renameSync(oldPath: nfs.PathLike, newPath: nfs.PathLike): void;
8
- truncate: typeof nfs.truncate;
9
- truncateSync(path: nfs.PathLike, len?: number): void;
10
- ftruncate: typeof nfs.ftruncate;
11
- ftruncateSync(fd: number, len?: number): void;
12
- chown: typeof nfs.chown;
13
- chownSync(path: nfs.PathLike, uid: number, gid: number): void;
14
- fchown: typeof nfs.fchown;
15
- fchownSync(fd: number, uid: number, gid: number): void;
16
- lchown: typeof nfs.lchown;
17
- lchownSync(path: nfs.PathLike, uid: number, gid: number): void;
18
- chmod: typeof nfs.chmod;
19
- chmodSync(path: nfs.PathLike, mode: string | number): void;
20
- fchmod: typeof nfs.fchmod;
21
- fchmodSync(fd: number, mode: string | number): void;
22
- lchmod: typeof nfs.lchmod;
23
- lchmodSync(path: nfs.PathLike, mode: string | number): void;
24
- statSync(path: nfs.PathLike): nfs.Stats;
25
- fstat: typeof nfs.fstat;
26
- fstatSync(fd: number): nfs.Stats;
27
- lstat: typeof nfs.lstat;
28
- lstatSync(path: nfs.PathLike): nfs.Stats;
29
- link: typeof nfs.link;
30
- linkSync(existingPath: nfs.PathLike, newPath: nfs.PathLike): void;
31
- symlink: typeof nfs.symlink;
32
- symlinkSync(target: nfs.PathLike, path: nfs.PathLike, type?: nfs.symlink.Type): void;
33
- readlink: typeof nfs.readlink;
34
- readlinkSync(path: nfs.PathLike, options?: BufferEncoding | {
35
- encoding?: BufferEncoding;
36
- }): string;
37
- readlinkSync(path: nfs.PathLike, options: "buffer" | {
38
- encoding: "buffer";
39
- }): Buffer;
40
- readlinkSync(path: nfs.PathLike, options?: string | {
41
- encoding?: string;
42
- }): string | Buffer;
43
- realpath: typeof nfs.realpath;
44
- realpathSync: typeof nfs.realpathSync;
45
- unlink: typeof nfs.unlink;
46
- unlinkSync(path: nfs.PathLike): void;
47
- rmdir: typeof nfs.rmdir;
48
- rmdirSync(path: nfs.PathLike): void;
49
- mkdir: typeof nfs.mkdir;
50
- mkdirSync(path: nfs.PathLike, options?: string | number | nfs.MakeDirectoryOptions): void;
51
- mkdtemp: typeof nfs.mkdtemp;
52
- mkdtempSync(prefix: string, options?: BufferEncoding | {
53
- encoding?: BufferEncoding;
54
- }): string;
55
- mkdtempSync(prefix: string, options: "buffer" | {
56
- encoding: "buffer";
57
- }): Buffer;
58
- mkdtempSync(prefix: string, options?: string | {
59
- encoding?: string;
60
- }): string | Buffer;
61
- readdirSync(path: nfs.PathLike, options?: BufferEncoding | {
62
- encoding: BufferEncoding;
63
- withFileTypes?: false;
64
- }): string[];
65
- readdirSync(path: nfs.PathLike, options: "buffer" | {
66
- encoding: "buffer";
67
- withFileTypes?: false;
68
- }): Buffer[];
69
- readdirSync(path: nfs.PathLike, options?: string | {
70
- encoding?: string;
71
- withFileTypes?: false;
72
- }): string[] | Buffer[];
73
- readdirSync(path: nfs.PathLike, options: {
74
- encoding?: string;
75
- withFileTypes: true;
76
- }): nfs.Dirent[];
77
- close: typeof nfs.close;
78
- closeSync(fd: number): void;
79
- open: typeof nfs.open;
80
- openSync(path: nfs.PathLike, flags: string | number, mode?: string | number): number;
81
- utimes: typeof nfs.utimes;
82
- utimesSync(path: nfs.PathLike, atime: string | number | Date, mtime: string | number | Date): void;
83
- futimes: typeof nfs.futimes;
84
- futimesSync(fd: number, atime: string | number | Date, mtime: string | number | Date): void;
85
- fsync: typeof nfs.fsync;
86
- fsyncSync(fd: number): void;
87
- write: typeof nfs.write;
88
- writeSync(fd: number, buffer: nfs.BinaryData, offset?: number, length?: number, position?: number): number;
89
- writeSync(fd: number, string: any, position?: number, encoding?: string): number;
90
- read: typeof nfs.read;
91
- readSync(fd: number, buffer: nfs.BinaryData, offset: number, length: number, position: number): number;
92
- readFile: typeof nfs.readFile;
93
- readFileSync(path: number | nfs.PathLike, options?: {
94
- encoding?: null;
95
- flag?: string;
96
- }): Buffer;
97
- readFileSync(path: number | nfs.PathLike, options: string | {
98
- encoding: string;
99
- flag?: string;
100
- }): string;
101
- readFileSync(path: number | nfs.PathLike, options?: string | {
102
- encoding?: string;
103
- flag?: string;
104
- }): string | Buffer;
105
- writeFile: typeof nfs.writeFile;
106
- writeFileSync(path: number | nfs.PathLike, data: any, options?: nfs.WriteFileOptions): void;
107
- appendFile: typeof nfs.appendFile;
108
- appendFileSync(file: number | nfs.PathLike, data: any, options?: nfs.WriteFileOptions): void;
109
- watchFile(filename: nfs.PathLike, options: {
110
- persistent?: boolean;
111
- interval?: number;
112
- }, listener: (curr: nfs.Stats, prev: nfs.Stats) => void): void;
113
- watchFile(filename: nfs.PathLike, listener: (curr: nfs.Stats, prev: nfs.Stats) => void): void;
114
- unwatchFile(filename: nfs.PathLike, listener?: (curr: nfs.Stats, prev: nfs.Stats) => void): void;
115
- watch(filename: nfs.PathLike, options: BufferEncoding | {
116
- encoding?: BufferEncoding;
117
- persistent?: boolean;
118
- recursive?: boolean;
119
- }, listener?: (event: string, filename: string) => void): nfs.FSWatcher;
120
- watch(filename: nfs.PathLike, options: "buffer" | {
121
- encoding: "buffer";
122
- persistent?: boolean;
123
- recursive?: boolean;
124
- }, listener?: (event: string, filename: Buffer) => void): nfs.FSWatcher;
125
- watch(filename: nfs.PathLike, options: string | {
126
- encoding?: string;
127
- persistent?: boolean;
128
- recursive?: boolean;
129
- }, listener?: (event: string, filename: string | Buffer) => void): nfs.FSWatcher;
130
- watch(filename: nfs.PathLike, listener?: (event: string, filename: string) => any): nfs.FSWatcher;
131
- exists: typeof nfs.exists;
132
- existsSync(path: nfs.PathLike): boolean;
133
- access: typeof nfs.access;
134
- accessSync(path: nfs.PathLike, mode?: number): void;
135
- createReadStream(path: nfs.PathLike, options?: string | {
136
- flags?: string;
137
- encoding?: string;
138
- fd?: number;
139
- mode?: number;
140
- autoClose?: boolean;
141
- start?: number;
142
- end?: number;
143
- highWaterMark?: number;
144
- }): nfs.ReadStream;
145
- createWriteStream(path: nfs.PathLike, options?: string | {
146
- flags?: string;
147
- encoding?: string;
148
- fd?: number;
149
- mode?: number;
150
- autoClose?: boolean;
151
- start?: number;
152
- highWaterMark?: number;
153
- }): nfs.WriteStream;
154
- fdatasync: typeof nfs.fdatasync;
155
- fdatasyncSync(fd: number): void;
156
- copyFile: typeof nfs.copyFile;
157
- copyFileSync(src: nfs.PathLike, dest: nfs.PathLike, flags?: number): void;
158
- Stats: typeof nfs.Stats;
159
- Dirent: typeof nfs.Dirent;
160
- ReadStream: typeof nfs.ReadStream;
161
- WriteStream: typeof nfs.WriteStream;
162
- constants: typeof nfs.constants;
163
- promises: typeof nfs.promises;
164
- };
165
- export declare const requireModule: <T>(path: string) => T;
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import * as nfs from 'fs';
4
+ export declare const fs: {
5
+ readdir(path: nfs.PathLike): Promise<Array<string>>;
6
+ stat(path: nfs.PathLike): Promise<nfs.Stats>;
7
+ rename: typeof nfs.rename;
8
+ renameSync(oldPath: nfs.PathLike, newPath: nfs.PathLike): void;
9
+ truncate: typeof nfs.truncate;
10
+ truncateSync(path: nfs.PathLike, len?: number): void;
11
+ ftruncate: typeof nfs.ftruncate;
12
+ ftruncateSync(fd: number, len?: number): void;
13
+ chown: typeof nfs.chown;
14
+ chownSync(path: nfs.PathLike, uid: number, gid: number): void;
15
+ fchown: typeof nfs.fchown;
16
+ fchownSync(fd: number, uid: number, gid: number): void;
17
+ lchown: typeof nfs.lchown;
18
+ lchownSync(path: nfs.PathLike, uid: number, gid: number): void;
19
+ lutimes: typeof nfs.lutimes;
20
+ lutimesSync(path: nfs.PathLike, atime: string | number | Date, mtime: string | number | Date): void;
21
+ chmod: typeof nfs.chmod;
22
+ chmodSync(path: nfs.PathLike, mode: string | number): void;
23
+ fchmod: typeof nfs.fchmod;
24
+ fchmodSync(fd: number, mode: string | number): void;
25
+ lchmod: typeof nfs.lchmod;
26
+ lchmodSync(path: nfs.PathLike, mode: string | number): void;
27
+ statSync(path: nfs.PathLike, options?: nfs.StatOptions & {
28
+ bigint?: false;
29
+ }): nfs.Stats;
30
+ statSync(path: nfs.PathLike, options: nfs.StatOptions & {
31
+ bigint: true;
32
+ }): nfs.BigIntStats;
33
+ statSync(path: nfs.PathLike, options?: nfs.StatOptions): nfs.Stats | nfs.BigIntStats;
34
+ fstatSync(fd: number, options?: nfs.StatOptions & {
35
+ bigint?: false;
36
+ }): nfs.Stats;
37
+ fstatSync(fd: number, options: nfs.StatOptions & {
38
+ bigint: true;
39
+ }): nfs.BigIntStats;
40
+ fstatSync(fd: number, options?: nfs.StatOptions): nfs.Stats | nfs.BigIntStats;
41
+ lstat: typeof nfs.lstat;
42
+ lstatSync(path: nfs.PathLike, options?: nfs.StatOptions & {
43
+ bigint?: false;
44
+ }): nfs.Stats;
45
+ lstatSync(path: nfs.PathLike, options: nfs.StatOptions & {
46
+ bigint: true;
47
+ }): nfs.BigIntStats;
48
+ lstatSync(path: nfs.PathLike, options?: nfs.StatOptions): nfs.Stats | nfs.BigIntStats;
49
+ link: typeof nfs.link;
50
+ linkSync(existingPath: nfs.PathLike, newPath: nfs.PathLike): void;
51
+ symlink: typeof nfs.symlink;
52
+ symlinkSync(target: nfs.PathLike, path: nfs.PathLike, type?: nfs.symlink.Type): void;
53
+ readlink: typeof nfs.readlink;
54
+ readlinkSync(path: nfs.PathLike, options?: BufferEncoding | {
55
+ encoding?: BufferEncoding;
56
+ }): string;
57
+ readlinkSync(path: nfs.PathLike, options: "buffer" | {
58
+ encoding: "buffer";
59
+ }): Buffer;
60
+ readlinkSync(path: nfs.PathLike, options?: string | {
61
+ encoding?: string;
62
+ }): string | Buffer;
63
+ realpath: typeof nfs.realpath;
64
+ realpathSync: typeof nfs.realpathSync;
65
+ unlink: typeof nfs.unlink;
66
+ unlinkSync(path: nfs.PathLike): void;
67
+ rmdir: typeof nfs.rmdir;
68
+ rmdirSync(path: nfs.PathLike, options?: nfs.RmDirOptions): void;
69
+ mkdir: typeof nfs.mkdir;
70
+ mkdirSync(path: nfs.PathLike, options?: string | number | nfs.MakeDirectoryOptions): void;
71
+ mkdtemp: typeof nfs.mkdtemp;
72
+ mkdtempSync(prefix: string, options?: BufferEncoding | {
73
+ encoding?: BufferEncoding;
74
+ }): string;
75
+ mkdtempSync(prefix: string, options: "buffer" | {
76
+ encoding: "buffer";
77
+ }): Buffer;
78
+ mkdtempSync(prefix: string, options?: string | {
79
+ encoding?: string;
80
+ }): string | Buffer;
81
+ readdirSync(path: nfs.PathLike, options?: BufferEncoding | {
82
+ encoding: BufferEncoding;
83
+ withFileTypes?: false;
84
+ }): string[];
85
+ readdirSync(path: nfs.PathLike, options: "buffer" | {
86
+ encoding: "buffer";
87
+ withFileTypes?: false;
88
+ }): Buffer[];
89
+ readdirSync(path: nfs.PathLike, options?: string | {
90
+ encoding?: string;
91
+ withFileTypes?: false;
92
+ }): string[] | Buffer[];
93
+ readdirSync(path: nfs.PathLike, options: {
94
+ encoding?: string;
95
+ withFileTypes: true;
96
+ }): nfs.Dirent[];
97
+ close: typeof nfs.close;
98
+ closeSync(fd: number): void;
99
+ open: typeof nfs.open;
100
+ openSync(path: nfs.PathLike, flags: string | number, mode?: string | number): number;
101
+ utimes: typeof nfs.utimes;
102
+ utimesSync(path: nfs.PathLike, atime: string | number | Date, mtime: string | number | Date): void;
103
+ futimes: typeof nfs.futimes;
104
+ futimesSync(fd: number, atime: string | number | Date, mtime: string | number | Date): void;
105
+ fsync: typeof nfs.fsync;
106
+ fsyncSync(fd: number): void;
107
+ write: typeof nfs.write;
108
+ writeSync(fd: number, buffer: NodeJS.ArrayBufferView, offset?: number, length?: number, position?: number): number;
109
+ writeSync(fd: number, string: any, position?: number, encoding?: string): number;
110
+ read: typeof nfs.read;
111
+ readSync(fd: number, buffer: NodeJS.ArrayBufferView, offset: number, length: number, position: number): number;
112
+ readFile: typeof nfs.readFile;
113
+ readFileSync(path: number | nfs.PathLike, options?: {
114
+ encoding?: null;
115
+ flag?: string;
116
+ }): Buffer;
117
+ readFileSync(path: number | nfs.PathLike, options: string | {
118
+ encoding: string;
119
+ flag?: string;
120
+ }): string;
121
+ readFileSync(path: number | nfs.PathLike, options?: string | {
122
+ encoding?: string;
123
+ flag?: string;
124
+ }): string | Buffer;
125
+ writeFile: typeof nfs.writeFile;
126
+ writeFileSync(path: number | nfs.PathLike, data: any, options?: nfs.WriteFileOptions): void;
127
+ appendFile: typeof nfs.appendFile;
128
+ appendFileSync(file: number | nfs.PathLike, data: any, options?: nfs.WriteFileOptions): void;
129
+ watchFile(filename: nfs.PathLike, options: {
130
+ persistent?: boolean;
131
+ interval?: number;
132
+ }, listener: (curr: nfs.Stats, prev: nfs.Stats) => void): void;
133
+ watchFile(filename: nfs.PathLike, listener: (curr: nfs.Stats, prev: nfs.Stats) => void): void;
134
+ unwatchFile(filename: nfs.PathLike, listener?: (curr: nfs.Stats, prev: nfs.Stats) => void): void;
135
+ watch(filename: nfs.PathLike, options: BufferEncoding | {
136
+ encoding?: BufferEncoding;
137
+ persistent?: boolean;
138
+ recursive?: boolean;
139
+ }, listener?: (event: string, filename: string) => void): nfs.FSWatcher;
140
+ watch(filename: nfs.PathLike, options: "buffer" | {
141
+ encoding: "buffer";
142
+ persistent?: boolean;
143
+ recursive?: boolean;
144
+ }, listener?: (event: string, filename: Buffer) => void): nfs.FSWatcher;
145
+ watch(filename: nfs.PathLike, options: string | {
146
+ encoding?: string;
147
+ persistent?: boolean;
148
+ recursive?: boolean;
149
+ }, listener?: (event: string, filename: string | Buffer) => void): nfs.FSWatcher;
150
+ watch(filename: nfs.PathLike, listener?: (event: string, filename: string) => any): nfs.FSWatcher;
151
+ exists: typeof nfs.exists;
152
+ existsSync(path: nfs.PathLike): boolean;
153
+ access: typeof nfs.access;
154
+ accessSync(path: nfs.PathLike, mode?: number): void;
155
+ createReadStream(path: nfs.PathLike, options?: string | {
156
+ flags?: string;
157
+ encoding?: string;
158
+ fd?: number;
159
+ mode?: number;
160
+ autoClose?: boolean;
161
+ emitClose?: boolean;
162
+ start?: number;
163
+ end?: number;
164
+ highWaterMark?: number;
165
+ }): nfs.ReadStream;
166
+ createWriteStream(path: nfs.PathLike, options?: string | {
167
+ flags?: string;
168
+ encoding?: string;
169
+ fd?: number;
170
+ mode?: number;
171
+ autoClose?: boolean;
172
+ emitClose?: boolean;
173
+ start?: number;
174
+ highWaterMark?: number;
175
+ }): nfs.WriteStream;
176
+ fdatasync: typeof nfs.fdatasync;
177
+ fdatasyncSync(fd: number): void;
178
+ copyFile: typeof nfs.copyFile;
179
+ copyFileSync(src: nfs.PathLike, dest: nfs.PathLike, flags?: number): void;
180
+ writev: typeof nfs.writev;
181
+ writevSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number;
182
+ opendirSync(path: nfs.PathLike, options?: nfs.OpenDirOptions): nfs.Dir;
183
+ opendir: typeof nfs.opendir;
184
+ Stats: typeof nfs.Stats;
185
+ Dirent: typeof nfs.Dirent;
186
+ Dir: typeof nfs.Dir;
187
+ ReadStream: typeof nfs.ReadStream;
188
+ WriteStream: typeof nfs.WriteStream;
189
+ fstat: typeof nfs.fstat;
190
+ constants: typeof nfs.constants;
191
+ promises: typeof nfs.promises;
192
+ BigIntStats: typeof nfs.BigIntStats;
193
+ };
194
+ export declare const requireModule: <T>(path: string) => T;
package/dist/utils.js CHANGED
@@ -1,32 +1,32 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.requireModule = exports.fs = void 0;
4
- const nfs = require("fs");
5
- exports.fs = Object.assign(Object.assign({}, nfs), { readdir(path) {
6
- return new Promise((resolve, reject) => {
7
- nfs.readdir(path, (err, files) => {
8
- if (err) {
9
- reject(err);
10
- return;
11
- }
12
- resolve(files);
13
- });
14
- });
15
- },
16
- stat(path) {
17
- return new Promise((resolve, reject) => {
18
- nfs.stat(path, (err, stats) => {
19
- if (err) {
20
- reject(err);
21
- return;
22
- }
23
- resolve(stats);
24
- });
25
- });
26
- } });
27
- const requireModule = (path) => {
28
- const requiredModule = require(path);
29
- return requiredModule.default || requiredModule;
30
- };
31
- exports.requireModule = requireModule;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.requireModule = exports.fs = void 0;
4
+ const nfs = require("fs");
5
+ exports.fs = Object.assign(Object.assign({}, nfs), { readdir(path) {
6
+ return new Promise((resolve, reject) => {
7
+ nfs.readdir(path, (err, files) => {
8
+ if (err) {
9
+ reject(err);
10
+ return;
11
+ }
12
+ resolve(files);
13
+ });
14
+ });
15
+ },
16
+ stat(path) {
17
+ return new Promise((resolve, reject) => {
18
+ nfs.stat(path, (err, stats) => {
19
+ if (err) {
20
+ reject(err);
21
+ return;
22
+ }
23
+ resolve(stats);
24
+ });
25
+ });
26
+ } });
27
+ const requireModule = (path) => {
28
+ const requiredModule = require(path);
29
+ return requiredModule.default || requiredModule;
30
+ };
31
+ exports.requireModule = requireModule;
32
32
  //# sourceMappingURL=utils.js.map
package/package.json CHANGED
@@ -1,66 +1,66 @@
1
- {
2
- "name": "resting-squirrel-controller",
3
- "version": "2.5.0",
4
- "description": "Controller for defining endpoints in resting-squirrel.",
5
- "main": "index.js",
6
- "types": "./dist/index.d.ts",
7
- "scripts": {
8
- "create_index": "run-script-os",
9
- "create_index:win32": "echo module.exports = require('./dist'); > index.js",
10
- "create_index:linux:darwin": "echo \"module.exports = require('./dist');\" > index.js",
11
- "build_ts": "./node_modules/.bin/tsc && npm run create_index",
12
- "clear": "run-script-os",
13
- "clear:win32": "(if exist .\\dist rd /s /q .\\dist) && del /q .\\index.js 2>nul",
14
- "clear:linux:darwin": "rm -rf ./dist && rm -f ./index.js",
15
- "clear_docs": "run-script-os",
16
- "clear_docs:win32": "if exist .\\docs rd /s /q .\\docs",
17
- "clear_docs:linux:darwin": "rm -rf ./docs",
18
- "create_nojekyll": "run-script-os",
19
- "create_nojekyll:win32": "type nul > ./docs/.nojekyll",
20
- "create_nojekyll:linux:darwin": "touch ./docs/.nojekyll",
21
- "docs_generate": "./node_modules/.bin/typedoc --out docs ./src",
22
- "docs": "npm run clear_docs && npm run docs_generate && npm run create_nojekyll",
23
- "test": "./node_modules/.bin/mocha -r ts-node/register __tests__/index.ts",
24
- "test:app": "./node_modules/.bin/mocha -r ts-node/register __tests__/app.ts",
25
- "start": "npm run clear && npm run build_ts && node -r source-map-support/register index.js",
26
- "prepublish": "npm run clear && npm run build_ts",
27
- "postpublish": "npm run clear"
28
- },
29
- "author": "Lukas Macuda <lukas.macuda@gmail.com>",
30
- "license": "MIT",
31
- "engines": {
32
- "node": ">=4"
33
- },
34
- "dependencies": {},
35
- "devDependencies": {
36
- "@types/chai": "^4.3.0",
37
- "@types/core-js": "^2.5.5",
38
- "@types/mocha": "^5.2.7",
39
- "@types/node": "^10.17.26",
40
- "@types/node-fetch": "^2.6.1",
41
- "chai": "^4.3.6",
42
- "mocha": "^6.2.0",
43
- "node-fetch": "^2.6.7",
44
- "resting-squirrel": "^2.27.1",
45
- "resting-squirrel-connector": "^2.3.4",
46
- "resting-squirrel-dto": "^2.0.2",
47
- "run-script-os-fix": "^1.0.4",
48
- "source-map-support": "^0.5.21",
49
- "ts-node": "^10.5.0",
50
- "tslint": "^6.1.3",
51
- "typedoc": "^0.22.11",
52
- "typescript": "^4.5.5"
53
- },
54
- "peerDependencies": {
55
- "resting-squirrel": "^2.27.0",
56
- "resting-squirrel-dto": "^2.0.2"
57
- },
58
- "repository": {
59
- "type": "git",
60
- "url": "git+https://github.com/zabkwak/resting-squirrel-controller.git"
61
- },
62
- "bugs": {
63
- "url": "https://github.com/zabkwak/resting-squirrel-controller/issues"
64
- },
65
- "homepage": "https://github.com/zabkwak/resting-squirrel-controller#readme"
66
- }
1
+ {
2
+ "name": "resting-squirrel-controller",
3
+ "version": "2.6.1",
4
+ "description": "Controller for defining endpoints in resting-squirrel.",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "scripts": {
8
+ "create_index": "run-script-os",
9
+ "create_index:win32": "echo module.exports = require('./dist'); > index.js",
10
+ "create_index:linux:darwin": "echo \"module.exports = require('./dist');\" > index.js",
11
+ "build_ts": "./node_modules/.bin/tsc && npm run create_index",
12
+ "clear": "run-script-os",
13
+ "clear:win32": "(if exist .\\dist rd /s /q .\\dist) && del /q .\\index.js 2>nul",
14
+ "clear:linux:darwin": "rm -rf ./dist && rm -f ./index.js",
15
+ "clear_docs": "run-script-os",
16
+ "clear_docs:win32": "if exist .\\docs rd /s /q .\\docs",
17
+ "clear_docs:linux:darwin": "rm -rf ./docs",
18
+ "create_nojekyll": "run-script-os",
19
+ "create_nojekyll:win32": "type nul > ./docs/.nojekyll",
20
+ "create_nojekyll:linux:darwin": "touch ./docs/.nojekyll",
21
+ "docs_generate": "./node_modules/.bin/typedoc --out docs ./src",
22
+ "docs": "npm run clear_docs && npm run docs_generate && npm run create_nojekyll",
23
+ "test": "./node_modules/.bin/mocha -r ts-node/register __tests__/index.ts",
24
+ "test:app": "./node_modules/.bin/mocha -r ts-node/register __tests__/app.ts",
25
+ "start": "npm run clear && npm run build_ts && node -r source-map-support/register index.js",
26
+ "prepublish": "npm run clear && npm run build_ts",
27
+ "postpublish": "npm run clear"
28
+ },
29
+ "author": "Lukas Macuda <lukas.macuda@gmail.com>",
30
+ "license": "MIT",
31
+ "engines": {
32
+ "node": ">=4"
33
+ },
34
+ "dependencies": {},
35
+ "devDependencies": {
36
+ "@types/chai": "^4.3.1",
37
+ "@types/core-js": "^2.5.5",
38
+ "@types/mocha": "^9.1.0",
39
+ "@types/node": "^12.20.48",
40
+ "@types/node-fetch": "^2.6.1",
41
+ "chai": "^4.3.6",
42
+ "mocha": "^9.2.2",
43
+ "node-fetch": "^2.6.7",
44
+ "resting-squirrel": "^2.27.1",
45
+ "resting-squirrel-connector": "^2.3.4",
46
+ "resting-squirrel-dto": "^2.0.2",
47
+ "run-script-os-fix": "^1.0.4",
48
+ "source-map-support": "^0.5.21",
49
+ "ts-node": "^10.5.0",
50
+ "tslint": "^6.1.3",
51
+ "typedoc": "^0.22.15",
52
+ "typescript": "^4.5.5"
53
+ },
54
+ "peerDependencies": {
55
+ "resting-squirrel": "^2.27.0",
56
+ "resting-squirrel-dto": "^2.0.2"
57
+ },
58
+ "repository": {
59
+ "type": "git",
60
+ "url": "git+https://github.com/zabkwak/resting-squirrel-controller.git"
61
+ },
62
+ "bugs": {
63
+ "url": "https://github.com/zabkwak/resting-squirrel-controller/issues"
64
+ },
65
+ "homepage": "https://github.com/zabkwak/resting-squirrel-controller#readme"
66
+ }
package/index.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('./dist');
package/tslint.json DELETED
@@ -1,78 +0,0 @@
1
- {
2
- "extends": "tslint:recommended",
3
- "rulesDirectory": [
4
- "src/"
5
- ],
6
- "rules": {
7
- "max-line-length": {
8
- "options": [
9
- 120
10
- ]
11
- },
12
- "new-parens": true,
13
- "no-arg": true,
14
- "no-bitwise": true,
15
- "no-conditional-assignment": true,
16
- "no-consecutive-blank-lines": false,
17
- "no-console": {
18
- "severity": "warning",
19
- "options": [
20
- "debug",
21
- "info",
22
- "log",
23
- "time",
24
- "timeEnd",
25
- "trace"
26
- ]
27
- },
28
- "quotemark": [
29
- true,
30
- "single",
31
- "jsx-double"
32
- ],
33
- "array-type": false,
34
- "variable-name": {
35
- "options": [
36
- "ban-keywords",
37
- "check-format",
38
- "allow-leading-underscore",
39
- "allow-pascal-case"
40
- ]
41
- },
42
- "indent": [
43
- true,
44
- "tabs",
45
- 4
46
- ],
47
- "member-ordering": [
48
- true,
49
- {
50
- "order": [
51
- "public-static-field",
52
- "protected-static-field",
53
- "private-static-field",
54
- "public-static-method",
55
- "protected-static-method",
56
- "private-static-method",
57
- "public-instance-field",
58
- "protected-instance-field",
59
- "private-instance-field",
60
- "public-constructor",
61
- "private-constructor",
62
- "public-instance-method",
63
- "protected-instance-method",
64
- "private-instance-method"
65
- ]
66
- }
67
- ]
68
- },
69
- "jsRules": {
70
- "no-empty": true,
71
- "max-line-length": {
72
- "options": [
73
- 120
74
- ]
75
- }
76
- },
77
- "allowJs": true
78
- }