pareto-host-nodejs 0.2.55 → 0.2.56
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/execute_sandboxed/signatures.d.ts +3 -3
- package/dist/execute_unrestricted/commands/command_executable.d.ts +1 -1
- package/dist/execute_unrestricted/commands/command_executable.js +1 -1
- package/dist/execute_unrestricted/commands/smelly_command_executable.d.ts +1 -1
- package/dist/execute_unrestricted/commands/smelly_command_executable.js +1 -1
- package/dist/execute_unrestricted/queries/query_executable.d.ts +1 -1
- package/dist/execute_unrestricted/queries/query_executable.js +1 -1
- package/dist/execute_unrestricted/signatures.d.ts +6 -6
- package/dist/file_system_sandboxed/commands/chmod.js +1 -1
- package/dist/file_system_sandboxed/commands/copy.js +1 -1
- package/dist/file_system_sandboxed/commands/make_directory.js +1 -1
- package/dist/file_system_sandboxed/commands/write_file.d.ts +1 -1
- package/dist/file_system_sandboxed/commands/write_file.js +2 -2
- package/dist/file_system_sandboxed/queries/read_directory.d.ts +0 -2
- package/dist/file_system_sandboxed/queries/read_directory.js +64 -83
- package/dist/file_system_sandboxed/queries/read_file.d.ts +0 -2
- package/dist/file_system_sandboxed/queries/read_file.js +51 -78
- package/dist/file_system_sandboxed/queries/stat.d.ts +1 -1
- package/dist/file_system_sandboxed/queries/stat.js +1 -1
- package/dist/file_system_sandboxed/queries/stat_possible_node.d.ts +0 -2
- package/dist/file_system_sandboxed/queries/stat_possible_node.js +38 -69
- package/dist/file_system_unrestricted/commands/chmod.d.ts +1 -1
- package/dist/file_system_unrestricted/commands/chmod.js +1 -1
- package/dist/file_system_unrestricted/commands/copy.d.ts +1 -1
- package/dist/file_system_unrestricted/commands/copy.js +1 -1
- package/dist/file_system_unrestricted/commands/make_directory.d.ts +1 -1
- package/dist/file_system_unrestricted/commands/make_directory.js +1 -1
- package/dist/file_system_unrestricted/commands/remove.d.ts +1 -1
- package/dist/file_system_unrestricted/commands/remove.js +1 -1
- package/dist/file_system_unrestricted/commands/write_file.d.ts +1 -1
- package/dist/file_system_unrestricted/commands/write_file.js +1 -1
- package/dist/file_system_unrestricted/queries/read_directory.d.ts +1 -1
- package/dist/file_system_unrestricted/queries/read_directory.js +1 -1
- package/dist/file_system_unrestricted/queries/read_file.d.ts +1 -1
- package/dist/file_system_unrestricted/queries/read_file.js +1 -1
- package/dist/file_system_unrestricted/queries/stat.d.ts +1 -1
- package/dist/file_system_unrestricted/queries/stat.js +1 -1
- package/dist/file_system_unrestricted/queries/stat_possible_node.d.ts +1 -1
- package/dist/file_system_unrestricted/queries/stat_possible_node.js +1 -1
- package/dist/stream/commands/log.d.ts +1 -1
- package/dist/stream/commands/log_error.d.ts +1 -1
- package/dist/stream/commands/write_to_stderr.d.ts +1 -1
- package/dist/stream/commands/write_to_stdout.d.ts +1 -1
- package/dist/stream/queries/get_instream_data.d.ts +1 -1
- package/package.json +1 -1
- package/dist/commands/chmod.d.ts +0 -2
- package/dist/commands/chmod.js +0 -107
- package/dist/commands/copy.d.ts +0 -2
- package/dist/commands/copy.js +0 -90
- package/dist/commands/execute/any_command_executable.d.ts +0 -7
- package/dist/commands/execute/any_command_executable.js +0 -81
- package/dist/commands/execute/any_smelly_command_executable.d.ts +0 -7
- package/dist/commands/execute/any_smelly_command_executable.js +0 -89
- package/dist/commands/execute_any_command_executable.d.ts +0 -7
- package/dist/commands/execute_any_command_executable.js +0 -81
- package/dist/commands/execute_any_smelly_command_executable.d.ts +0 -7
- package/dist/commands/execute_any_smelly_command_executable.js +0 -89
- package/dist/commands/fs/sandboxed/chmod.d.ts +0 -5
- package/dist/commands/fs/sandboxed/chmod.js +0 -51
- package/dist/commands/fs/sandboxed/copy.d.ts +0 -6
- package/dist/commands/fs/sandboxed/copy.js +0 -54
- package/dist/commands/fs/sandboxed/make_directory.d.ts +0 -5
- package/dist/commands/fs/sandboxed/make_directory.js +0 -51
- package/dist/commands/fs/sandboxed/remove.d.ts +0 -1
- package/dist/commands/fs/sandboxed/remove.js +0 -21
- package/dist/commands/fs/sandboxed/write_file.d.ts +0 -5
- package/dist/commands/fs/sandboxed/write_file.js +0 -51
- package/dist/commands/fs/unrestricted/chmod.d.ts +0 -2
- package/dist/commands/fs/unrestricted/chmod.js +0 -107
- package/dist/commands/fs/unrestricted/copy.d.ts +0 -2
- package/dist/commands/fs/unrestricted/copy.js +0 -90
- package/dist/commands/fs/unrestricted/make_directory.d.ts +0 -2
- package/dist/commands/fs/unrestricted/make_directory.js +0 -97
- package/dist/commands/fs/unrestricted/remove.d.ts +0 -2
- package/dist/commands/fs/unrestricted/remove.js +0 -84
- package/dist/commands/fs/unrestricted/write_file.d.ts +0 -2
- package/dist/commands/fs/unrestricted/write_file.js +0 -85
- package/dist/commands/log.d.ts +0 -2
- package/dist/commands/log.js +0 -56
- package/dist/commands/log_error.d.ts +0 -2
- package/dist/commands/log_error.js +0 -56
- package/dist/commands/make_directory.d.ts +0 -2
- package/dist/commands/make_directory.js +0 -97
- package/dist/commands/remove.d.ts +0 -2
- package/dist/commands/remove.js +0 -84
- package/dist/commands/stream/log.d.ts +0 -2
- package/dist/commands/stream/log.js +0 -56
- package/dist/commands/stream/log_error.d.ts +0 -2
- package/dist/commands/stream/log_error.js +0 -56
- package/dist/commands/stream/write_to_stderr.d.ts +0 -2
- package/dist/commands/stream/write_to_stderr.js +0 -17
- package/dist/commands/stream/write_to_stdout.d.ts +0 -2
- package/dist/commands/stream/write_to_stdout.js +0 -17
- package/dist/commands/write_file.d.ts +0 -2
- package/dist/commands/write_file.js +0 -85
- package/dist/commands/write_to_stderr.d.ts +0 -2
- package/dist/commands/write_to_stderr.js +0 -17
- package/dist/commands/write_to_stdout.d.ts +0 -2
- package/dist/commands/write_to_stdout.js +0 -17
- package/dist/execute sandboxed/signatures.d.ts +0 -10
- package/dist/execute sandboxed/signatures.js +0 -3
- package/dist/file_system sandboxed/commands/chmod.d.ts +0 -5
- package/dist/file_system sandboxed/commands/chmod.js +0 -51
- package/dist/file_system sandboxed/commands/copy.d.ts +0 -6
- package/dist/file_system sandboxed/commands/copy.js +0 -54
- package/dist/file_system sandboxed/commands/make_directory.d.ts +0 -5
- package/dist/file_system sandboxed/commands/make_directory.js +0 -51
- package/dist/file_system sandboxed/commands/remove.d.ts +0 -1
- package/dist/file_system sandboxed/commands/remove.js +0 -21
- package/dist/file_system sandboxed/commands/write_file.d.ts +0 -5
- package/dist/file_system sandboxed/commands/write_file.js +0 -51
- package/dist/file_system unrestricted/commands/chmod.d.ts +0 -2
- package/dist/file_system unrestricted/commands/chmod.js +0 -107
- package/dist/file_system unrestricted/commands/copy.d.ts +0 -2
- package/dist/file_system unrestricted/commands/copy.js +0 -90
- package/dist/file_system unrestricted/commands/make_directory.d.ts +0 -2
- package/dist/file_system unrestricted/commands/make_directory.js +0 -97
- package/dist/file_system unrestricted/commands/remove.d.ts +0 -2
- package/dist/file_system unrestricted/commands/remove.js +0 -84
- package/dist/file_system unrestricted/commands/write_file.d.ts +0 -2
- package/dist/file_system unrestricted/commands/write_file.js +0 -85
- package/dist/file_system unrestricted/queries/read_directory.d.ts +0 -2
- package/dist/file_system unrestricted/queries/read_directory.js +0 -84
- package/dist/file_system unrestricted/queries/read_file.d.ts +0 -2
- package/dist/file_system unrestricted/queries/read_file.js +0 -79
- package/dist/file_system unrestricted/queries/stat.d.ts +0 -2
- package/dist/file_system unrestricted/queries/stat.js +0 -66
- package/dist/file_system unrestricted/queries/stat_possible_node.d.ts +0 -2
- package/dist/file_system unrestricted/queries/stat_possible_node.js +0 -70
- package/dist/queries/execute/any_query_executable.d.ts +0 -7
- package/dist/queries/execute/any_query_executable.js +0 -94
- package/dist/queries/execute_any_query_executable.d.ts +0 -7
- package/dist/queries/execute_any_query_executable.js +0 -94
- package/dist/queries/fs/unrestricted/read_directory.d.ts +0 -2
- package/dist/queries/fs/unrestricted/read_directory.js +0 -84
- package/dist/queries/fs/unrestricted/read_file.d.ts +0 -2
- package/dist/queries/fs/unrestricted/read_file.js +0 -79
- package/dist/queries/fs/unrestricted/stat.d.ts +0 -2
- package/dist/queries/fs/unrestricted/stat.js +0 -66
- package/dist/queries/fs/unrestricted/stat_possible_node.d.ts +0 -2
- package/dist/queries/fs/unrestricted/stat_possible_node.js +0 -70
- package/dist/queries/get_instream_data.d.ts +0 -2
- package/dist/queries/get_instream_data.js +0 -23
- package/dist/queries/read_directory.d.ts +0 -2
- package/dist/queries/read_directory.js +0 -84
- package/dist/queries/read_file.d.ts +0 -2
- package/dist/queries/read_file.js +0 -79
- package/dist/queries/stat.d.ts +0 -2
- package/dist/queries/stat.js +0 -66
- package/dist/queries/stat_possible_node.d.ts +0 -2
- package/dist/queries/stat_possible_node.js +0 -70
- package/dist/queries/stream/get_instream_data.d.ts +0 -2
- package/dist/queries/stream/get_instream_data.js +0 -23
- package/dist/temp_create_command.d.ts +0 -2
- package/dist/temp_create_command.js +0 -12
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.$$ = void 0;
|
|
40
|
-
const _p = __importStar(require("pareto-core/dist/assign"));
|
|
41
|
-
const query_1 = __importDefault(require("pareto-core/dist/__internals/async/query"));
|
|
42
|
-
const __query_result_1 = __importDefault(require("pareto-core/dist/__internals/async/__query_result"));
|
|
43
|
-
//dependencies
|
|
44
|
-
const fs_1 = require("fs");
|
|
45
|
-
const t_path_to_text = __importStar(require("pareto-resources/dist/implementation/manual/transformers/unrestricted_path/text"));
|
|
46
|
-
exports.$$ = (0, query_1.default)(($p) => {
|
|
47
|
-
return (0, __query_result_1.default)((on_value, on_error) => {
|
|
48
|
-
(0, fs_1.stat)(t_path_to_text.Node_Path($p), (err, stats) => {
|
|
49
|
-
if (err) {
|
|
50
|
-
if (err.code === 'ENOENT') {
|
|
51
|
-
on_value(['does not exist', null]);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
on_error({
|
|
55
|
-
'path': $p,
|
|
56
|
-
'type': _p.state.block(() => {
|
|
57
|
-
throw new Error(`unhandled fs.stat error code: ${err.code}`);
|
|
58
|
-
})
|
|
59
|
-
});
|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JBQ1YsTUFBTSxFQUFFLEVBQUUsQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRTs0QkFDeEIsTUFBTSxJQUFJLEtBQUssQ0FBQyxpQ0FBaUMsR0FBRyxDQUFDLElBQUksRUFBRSxDQUFDLENBQUE7d0JBQ2hFLENBQUMsQ0FBQztxQkFDTCxDQUFDLENBQUE7Z0JBQ04sQ0FBQztZQUNMLENBQUM7aUJBQU0sQ0FBQztnQkFDSixRQUFRLENBQUMsS0FBSyxDQUFDLE1BQU0sRUFBRTtvQkFDbkIsQ0FBQyxDQUFDLENBQUMsTUFBTSxFQUFFLElBQUksQ0FBQztvQkFDaEIsQ0FBQyxDQUFDLENBQUMsV0FBVyxFQUFFLElBQUksQ0FBQyxDQUN4QixDQUFBO1lBQ0wsQ0FBQztRQUNMLENBQUMsQ0FDSixDQUFBO0lBQ0wsQ0FBQyxDQUFDLENBQUE7QUFDTixDQUFDLENBQUMsQ0FBQSJ9
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.$$ = void 0;
|
|
7
|
-
const query_1 = __importDefault(require("pareto-core/dist/__internals/async/query"));
|
|
8
|
-
const __query_result_1 = __importDefault(require("pareto-core/dist/__internals/async/__query_result"));
|
|
9
|
-
exports.$$ = (0, query_1.default)(() => {
|
|
10
|
-
return (0, __query_result_1.default)((on_value) => {
|
|
11
|
-
const stdin = process.stdin;
|
|
12
|
-
let data = '';
|
|
13
|
-
stdin.setEncoding('utf8');
|
|
14
|
-
stdin.on('data', (chunk) => {
|
|
15
|
-
data += chunk;
|
|
16
|
-
});
|
|
17
|
-
stdin.on('end', () => {
|
|
18
|
-
on_value(data);
|
|
19
|
-
});
|
|
20
|
-
stdin.resume();
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0X2luc3RyZWFtX2RhdGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcXVlcmllcy9zdHJlYW0vZ2V0X2luc3RyZWFtX2RhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBRUEscUZBQThEO0FBQzlELHVHQUE4RTtBQUtqRSxRQUFBLEVBQUUsR0FBK0MsSUFBQSxlQUFPLEVBQUMsR0FDcEUsRUFBRTtJQUNBLE9BQU8sSUFBQSx3QkFBYyxFQUFDLENBQUMsUUFBUSxFQUFFLEVBQUU7UUFFL0IsTUFBTSxLQUFLLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQztRQUM1QixJQUFJLElBQUksR0FBRyxFQUFFLENBQUM7UUFDZCxLQUFLLENBQUMsV0FBVyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBRTFCLEtBQUssQ0FBQyxFQUFFLENBQUMsTUFBTSxFQUFFLENBQUMsS0FBYSxFQUFFLEVBQUU7WUFDL0IsSUFBSSxJQUFJLEtBQUssQ0FBQztRQUNsQixDQUFDLENBQUMsQ0FBQztRQUVILEtBQUssQ0FBQyxFQUFFLENBQUMsS0FBSyxFQUFFLEdBQUcsRUFBRTtZQUNqQixRQUFRLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDbkIsQ0FBQyxDQUFDLENBQUM7UUFFSCxLQUFLLENBQUMsTUFBTSxFQUFFLENBQUM7SUFDbkIsQ0FBQyxDQUFDLENBQUE7QUFDTixDQUFDLENBQUMsQ0FBQSJ9
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import * as _pi from 'pareto-core/dist/interface';
|
|
2
|
-
export declare const __create_command: <Error, Command_Parameters, Creator_Parameters>(command_creator: (parameters: Creator_Parameters) => ($p: Command_Parameters) => _pi.Command_Promise<Error>) => ($x: Creator_Parameters) => _pi.Command<Error, Command_Parameters>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.__create_command = void 0;
|
|
7
|
-
const command_1 = __importDefault(require("pareto-core/dist/__internals/async/command"));
|
|
8
|
-
const __create_command = (command_creator) => {
|
|
9
|
-
return ($x) => (0, command_1.default)(command_creator($x));
|
|
10
|
-
};
|
|
11
|
-
exports.__create_command = __create_command;
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcF9jcmVhdGVfY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy90ZW1wX2NyZWF0ZV9jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUNBLHlGQUFrRTtBQUczRCxNQUFNLGdCQUFnQixHQUFHLENBSzVCLGVBQTJHLEVBQ3pDLEVBQUU7SUFDcEUsT0FBTyxDQUFDLEVBQXNCLEVBQUUsRUFBRSxDQUFDLElBQUEsaUJBQVMsRUFDeEMsZUFBZSxDQUFDLEVBQUUsQ0FBQyxDQUN0QixDQUFBO0FBQ0wsQ0FBQyxDQUFBO0FBVlksUUFBQSxnQkFBZ0Isb0JBVTVCIn0=
|