@metacall/protocol 0.1.25 → 0.1.26
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/README.md +34 -0
- package/dist/package.d.ts +1 -0
- package/dist/package.js +3 -2
- package/package.json +3 -3
- package/src/package.ts +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# MetaCall Protocol
|
|
2
|
+
|
|
3
|
+
This repository contains the protocol implementation for MetaCall FaaS. It is a client that allows deploying to [MetaCall FaaS](https://dashboard.metacall.io) or its [open source reimplementation](https://github.com/metacall/faas) written in TypeScript.
|
|
4
|
+
|
|
5
|
+
## Documentation
|
|
6
|
+
|
|
7
|
+
Explore the detailed documentation for the MetaCall Protocol in the [doc](doc) directory. It provides comprehensive information on the protocol, its implementation details, and best practices for integration.
|
|
8
|
+
|
|
9
|
+
## [Core](https://github.com/metacall/core)
|
|
10
|
+
|
|
11
|
+
The ultimate polyglot programming experience.
|
|
12
|
+
|
|
13
|
+
## [Deploy](https://github.com/metacall/deploy)
|
|
14
|
+
|
|
15
|
+
Tool for deploying into MetaCall FaaS platform.
|
|
16
|
+
|
|
17
|
+
## [Examples](https://github.com/metacall/examples)
|
|
18
|
+
|
|
19
|
+
A collection of use cases and examples to be deployed in MetaCall.
|
|
20
|
+
|
|
21
|
+
## [FaaS](https://github.com/metacall/faas)
|
|
22
|
+
|
|
23
|
+
The FaaS platform reimplementation for MetaCall.
|
|
24
|
+
|
|
25
|
+
## Testing
|
|
26
|
+
|
|
27
|
+
The [test](test) directory contains various tests for the MetaCall Protocol. These tests are designed to ensure the reliability and correctness of the protocol implementation. If you encounter any issues or inconsistencies, please report them by opening an [issue](https://github.com/metacall/protocol-repo/issues).
|
|
28
|
+
|
|
29
|
+
## Contributing
|
|
30
|
+
|
|
31
|
+
We welcome contributions from the community. If you have ideas, suggestions, or want to report a bug, please feel free to open an [issue](https://github.com/metacall/protocol/issues) or submit a [pull request](https://github.com/metacall/protocol/pulls).
|
|
32
|
+
## License
|
|
33
|
+
|
|
34
|
+
This repository is licensed under the [Apache License, Version 2.0](LICENSE). Feel free to use, modify, and distribute the code in accordance with the terms specified in the license.
|
package/dist/package.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MetaCallJSON } from './deployment';
|
|
2
2
|
export declare const findFilesPath: (path?: string, ignoreFiles?: string[]) => Promise<string[]>;
|
|
3
|
+
export declare const pathIsMetaCallJson: (path: string) => boolean;
|
|
3
4
|
export declare const findMetaCallJsons: (files: string[]) => string[];
|
|
4
5
|
export declare const findRunners: (files: string[]) => Set<string>;
|
|
5
6
|
export declare enum PackageError {
|
package/dist/package.js
CHANGED
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.generateJsonsFromFiles = exports.generatePackage = exports.PackageError = exports.findRunners = exports.findMetaCallJsons = exports.findFilesPath = void 0;
|
|
19
|
+
exports.generateJsonsFromFiles = exports.generatePackage = exports.PackageError = exports.findRunners = exports.findMetaCallJsons = exports.pathIsMetaCallJson = exports.findFilesPath = void 0;
|
|
20
20
|
const ignore_walk_1 = __importDefault(require("ignore-walk"));
|
|
21
21
|
const path_1 = require("path");
|
|
22
22
|
const language_1 = require("./language");
|
|
@@ -28,7 +28,8 @@ const findFilesPath = async (path = process.cwd(), ignoreFiles = ['.gitignore'])
|
|
|
28
28
|
})).filter(x => !x.startsWith('.git'));
|
|
29
29
|
exports.findFilesPath = findFilesPath;
|
|
30
30
|
const pathIsMetaCallJson = (path) => !!/^metacall(-.+)?\.json$/.exec(path_1.basename(path));
|
|
31
|
-
|
|
31
|
+
exports.pathIsMetaCallJson = pathIsMetaCallJson;
|
|
32
|
+
const findMetaCallJsons = (files) => files.filter(exports.pathIsMetaCallJson);
|
|
32
33
|
exports.findMetaCallJsons = findMetaCallJsons;
|
|
33
34
|
const findRunners = (files) => {
|
|
34
35
|
const runners = new Set();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metacall/protocol",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"description": "Tool for deploying into MetaCall FaaS platform.",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./*": "./dist/*.js",
|
|
@@ -85,8 +85,6 @@
|
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@types/ignore-walk": "^4.0.0",
|
|
89
|
-
"@types/jsonwebtoken": "^8.5.8",
|
|
90
88
|
"axios": "^0.21.0",
|
|
91
89
|
"form-data": "^3.0.0",
|
|
92
90
|
"ignore-walk": "^3.0.4",
|
|
@@ -94,6 +92,8 @@
|
|
|
94
92
|
},
|
|
95
93
|
"devDependencies": {
|
|
96
94
|
"@types/express": "^4.17.13",
|
|
95
|
+
"@types/ignore-walk": "^4.0.0",
|
|
96
|
+
"@types/jsonwebtoken": "^8.5.8",
|
|
97
97
|
"@types/mocha": "^8.2.3",
|
|
98
98
|
"@types/node": "^14.14.7",
|
|
99
99
|
"@types/swagger-ui-express": "^4.1.3",
|
package/src/package.ts
CHANGED
|
@@ -30,7 +30,7 @@ export const findFilesPath = async (
|
|
|
30
30
|
})
|
|
31
31
|
).filter(x => !x.startsWith('.git'));
|
|
32
32
|
|
|
33
|
-
const pathIsMetaCallJson = (path: string): boolean =>
|
|
33
|
+
export const pathIsMetaCallJson = (path: string): boolean =>
|
|
34
34
|
!!/^metacall(-.+)?\.json$/.exec(basename(path));
|
|
35
35
|
|
|
36
36
|
export const findMetaCallJsons = (files: string[]): string[] =>
|