resting-squirrel-controller 2.6.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,193 +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
- lutimes: typeof nfs.lutimes;
19
- lutimesSync(path: nfs.PathLike, atime: string | number | Date, mtime: string | number | Date): void;
20
- chmod: typeof nfs.chmod;
21
- chmodSync(path: nfs.PathLike, mode: string | number): void;
22
- fchmod: typeof nfs.fchmod;
23
- fchmodSync(fd: number, mode: string | number): void;
24
- lchmod: typeof nfs.lchmod;
25
- lchmodSync(path: nfs.PathLike, mode: string | number): void;
26
- statSync(path: nfs.PathLike, options?: nfs.StatOptions & {
27
- bigint?: false;
28
- }): nfs.Stats;
29
- statSync(path: nfs.PathLike, options: nfs.StatOptions & {
30
- bigint: true;
31
- }): nfs.BigIntStats;
32
- statSync(path: nfs.PathLike, options?: nfs.StatOptions): nfs.Stats | nfs.BigIntStats;
33
- fstatSync(fd: number, options?: nfs.StatOptions & {
34
- bigint?: false;
35
- }): nfs.Stats;
36
- fstatSync(fd: number, options: nfs.StatOptions & {
37
- bigint: true;
38
- }): nfs.BigIntStats;
39
- fstatSync(fd: number, options?: nfs.StatOptions): nfs.Stats | nfs.BigIntStats;
40
- lstat: typeof nfs.lstat;
41
- lstatSync(path: nfs.PathLike, options?: nfs.StatOptions & {
42
- bigint?: false;
43
- }): nfs.Stats;
44
- lstatSync(path: nfs.PathLike, options: nfs.StatOptions & {
45
- bigint: true;
46
- }): nfs.BigIntStats;
47
- lstatSync(path: nfs.PathLike, options?: nfs.StatOptions): nfs.Stats | nfs.BigIntStats;
48
- link: typeof nfs.link;
49
- linkSync(existingPath: nfs.PathLike, newPath: nfs.PathLike): void;
50
- symlink: typeof nfs.symlink;
51
- symlinkSync(target: nfs.PathLike, path: nfs.PathLike, type?: nfs.symlink.Type): void;
52
- readlink: typeof nfs.readlink;
53
- readlinkSync(path: nfs.PathLike, options?: BufferEncoding | {
54
- encoding?: BufferEncoding;
55
- }): string;
56
- readlinkSync(path: nfs.PathLike, options: "buffer" | {
57
- encoding: "buffer";
58
- }): Buffer;
59
- readlinkSync(path: nfs.PathLike, options?: string | {
60
- encoding?: string;
61
- }): string | Buffer;
62
- realpath: typeof nfs.realpath;
63
- realpathSync: typeof nfs.realpathSync;
64
- unlink: typeof nfs.unlink;
65
- unlinkSync(path: nfs.PathLike): void;
66
- rmdir: typeof nfs.rmdir;
67
- rmdirSync(path: nfs.PathLike, options?: nfs.RmDirOptions): void;
68
- mkdir: typeof nfs.mkdir;
69
- mkdirSync(path: nfs.PathLike, options?: string | number | nfs.MakeDirectoryOptions): void;
70
- mkdtemp: typeof nfs.mkdtemp;
71
- mkdtempSync(prefix: string, options?: BufferEncoding | {
72
- encoding?: BufferEncoding;
73
- }): string;
74
- mkdtempSync(prefix: string, options: "buffer" | {
75
- encoding: "buffer";
76
- }): Buffer;
77
- mkdtempSync(prefix: string, options?: string | {
78
- encoding?: string;
79
- }): string | Buffer;
80
- readdirSync(path: nfs.PathLike, options?: BufferEncoding | {
81
- encoding: BufferEncoding;
82
- withFileTypes?: false;
83
- }): string[];
84
- readdirSync(path: nfs.PathLike, options: "buffer" | {
85
- encoding: "buffer";
86
- withFileTypes?: false;
87
- }): Buffer[];
88
- readdirSync(path: nfs.PathLike, options?: string | {
89
- encoding?: string;
90
- withFileTypes?: false;
91
- }): string[] | Buffer[];
92
- readdirSync(path: nfs.PathLike, options: {
93
- encoding?: string;
94
- withFileTypes: true;
95
- }): nfs.Dirent[];
96
- close: typeof nfs.close;
97
- closeSync(fd: number): void;
98
- open: typeof nfs.open;
99
- openSync(path: nfs.PathLike, flags: string | number, mode?: string | number): number;
100
- utimes: typeof nfs.utimes;
101
- utimesSync(path: nfs.PathLike, atime: string | number | Date, mtime: string | number | Date): void;
102
- futimes: typeof nfs.futimes;
103
- futimesSync(fd: number, atime: string | number | Date, mtime: string | number | Date): void;
104
- fsync: typeof nfs.fsync;
105
- fsyncSync(fd: number): void;
106
- write: typeof nfs.write;
107
- writeSync(fd: number, buffer: NodeJS.ArrayBufferView, offset?: number, length?: number, position?: number): number;
108
- writeSync(fd: number, string: any, position?: number, encoding?: string): number;
109
- read: typeof nfs.read;
110
- readSync(fd: number, buffer: NodeJS.ArrayBufferView, offset: number, length: number, position: number): number;
111
- readFile: typeof nfs.readFile;
112
- readFileSync(path: number | nfs.PathLike, options?: {
113
- encoding?: null;
114
- flag?: string;
115
- }): Buffer;
116
- readFileSync(path: number | nfs.PathLike, options: string | {
117
- encoding: string;
118
- flag?: string;
119
- }): string;
120
- readFileSync(path: number | nfs.PathLike, options?: string | {
121
- encoding?: string;
122
- flag?: string;
123
- }): string | Buffer;
124
- writeFile: typeof nfs.writeFile;
125
- writeFileSync(path: number | nfs.PathLike, data: any, options?: nfs.WriteFileOptions): void;
126
- appendFile: typeof nfs.appendFile;
127
- appendFileSync(file: number | nfs.PathLike, data: any, options?: nfs.WriteFileOptions): void;
128
- watchFile(filename: nfs.PathLike, options: {
129
- persistent?: boolean;
130
- interval?: number;
131
- }, listener: (curr: nfs.Stats, prev: nfs.Stats) => void): void;
132
- watchFile(filename: nfs.PathLike, listener: (curr: nfs.Stats, prev: nfs.Stats) => void): void;
133
- unwatchFile(filename: nfs.PathLike, listener?: (curr: nfs.Stats, prev: nfs.Stats) => void): void;
134
- watch(filename: nfs.PathLike, options: BufferEncoding | {
135
- encoding?: BufferEncoding;
136
- persistent?: boolean;
137
- recursive?: boolean;
138
- }, listener?: (event: string, filename: string) => void): nfs.FSWatcher;
139
- watch(filename: nfs.PathLike, options: "buffer" | {
140
- encoding: "buffer";
141
- persistent?: boolean;
142
- recursive?: boolean;
143
- }, listener?: (event: string, filename: Buffer) => void): nfs.FSWatcher;
144
- watch(filename: nfs.PathLike, options: string | {
145
- encoding?: string;
146
- persistent?: boolean;
147
- recursive?: boolean;
148
- }, listener?: (event: string, filename: string | Buffer) => void): nfs.FSWatcher;
149
- watch(filename: nfs.PathLike, listener?: (event: string, filename: string) => any): nfs.FSWatcher;
150
- exists: typeof nfs.exists;
151
- existsSync(path: nfs.PathLike): boolean;
152
- access: typeof nfs.access;
153
- accessSync(path: nfs.PathLike, mode?: number): void;
154
- createReadStream(path: nfs.PathLike, options?: string | {
155
- flags?: string;
156
- encoding?: string;
157
- fd?: number;
158
- mode?: number;
159
- autoClose?: boolean;
160
- emitClose?: boolean;
161
- start?: number;
162
- end?: number;
163
- highWaterMark?: number;
164
- }): nfs.ReadStream;
165
- createWriteStream(path: nfs.PathLike, options?: string | {
166
- flags?: string;
167
- encoding?: string;
168
- fd?: number;
169
- mode?: number;
170
- autoClose?: boolean;
171
- emitClose?: boolean;
172
- start?: number;
173
- highWaterMark?: number;
174
- }): nfs.WriteStream;
175
- fdatasync: typeof nfs.fdatasync;
176
- fdatasyncSync(fd: number): void;
177
- copyFile: typeof nfs.copyFile;
178
- copyFileSync(src: nfs.PathLike, dest: nfs.PathLike, flags?: number): void;
179
- writev: typeof nfs.writev;
180
- writevSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number;
181
- opendirSync(path: nfs.PathLike, options?: nfs.OpenDirOptions): nfs.Dir;
182
- opendir: typeof nfs.opendir;
183
- Stats: typeof nfs.Stats;
184
- Dirent: typeof nfs.Dirent;
185
- Dir: typeof nfs.Dir;
186
- ReadStream: typeof nfs.ReadStream;
187
- WriteStream: typeof nfs.WriteStream;
188
- fstat: typeof nfs.fstat;
189
- constants: typeof nfs.constants;
190
- promises: typeof nfs.promises;
191
- BigIntStats: typeof nfs.BigIntStats;
192
- };
193
- 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.6.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.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
- }
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');