do-functions-cli 1.5.0 → 1.5.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/schemas/doFunction.d.ts +4 -1
- package/dist/schemas/doFunction.d.ts.map +1 -1
- package/dist/schemas/doFunction.js +7 -2
- package/dist/schemas/doFunction.js.map +1 -1
- package/dist/schemas/doPackage.d.ts +4 -2
- package/dist/schemas/doPackage.d.ts.map +1 -1
- package/dist/schemas/doPackage.js +6 -2
- package/dist/schemas/doPackage.js.map +1 -1
- package/dist/schemas/doProjectYml.d.ts +6 -3
- package/dist/schemas/doProjectYml.d.ts.map +1 -1
- package/dist/schemas/doProjectYml.js +7 -2
- package/dist/schemas/doProjectYml.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* Zod schema for validating a DigitalOcean function entry in project.yml
|
|
4
|
+
*
|
|
5
|
+
* Uses .passthrough() to preserve custom properties (e.g., environment variables,
|
|
6
|
+
* limits, annotations) that may exist in function configurations
|
|
4
7
|
*/
|
|
5
8
|
export declare const DOFunctionSchema: z.ZodObject<{
|
|
6
9
|
name: z.ZodString;
|
|
7
10
|
runtime: z.ZodOptional<z.ZodString>;
|
|
8
11
|
web: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
10
13
|
/**
|
|
11
14
|
* TypeScript type derived from the DOFunctionSchema
|
|
12
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doFunction.d.ts","sourceRoot":"","sources":["../../src/schemas/doFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB
|
|
1
|
+
{"version":3,"file":"doFunction.d.ts","sourceRoot":"","sources":["../../src/schemas/doFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;iBAMb,CAAC;AAEjB;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* Zod schema for validating a DigitalOcean function entry in project.yml
|
|
4
|
+
*
|
|
5
|
+
* Uses .passthrough() to preserve custom properties (e.g., environment variables,
|
|
6
|
+
* limits, annotations) that may exist in function configurations
|
|
4
7
|
*/
|
|
5
|
-
export const DOFunctionSchema = z
|
|
8
|
+
export const DOFunctionSchema = z
|
|
9
|
+
.object({
|
|
6
10
|
name: z.string(),
|
|
7
11
|
runtime: z.string().optional(),
|
|
8
12
|
web: z.boolean().optional().default(true),
|
|
9
|
-
})
|
|
13
|
+
})
|
|
14
|
+
.passthrough();
|
|
10
15
|
//# sourceMappingURL=doFunction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doFunction.js","sourceRoot":"","sources":["../../src/schemas/doFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB
|
|
1
|
+
{"version":3,"file":"doFunction.js","sourceRoot":"","sources":["../../src/schemas/doFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;CAC1C,CAAC;KACD,WAAW,EAAE,CAAC"}
|
|
@@ -5,6 +5,8 @@ import * as z from 'zod';
|
|
|
5
5
|
* Properties:
|
|
6
6
|
* - name: The package name (required, used for namespacing functions)
|
|
7
7
|
* - functions: Array of functions belonging to this package (defaults to empty array)
|
|
8
|
+
*
|
|
9
|
+
* Uses .passthrough() to preserve custom properties that may exist in package configurations
|
|
8
10
|
*/
|
|
9
11
|
export declare const DOPackageSchema: z.ZodObject<{
|
|
10
12
|
name: z.ZodString;
|
|
@@ -12,8 +14,8 @@ export declare const DOPackageSchema: z.ZodObject<{
|
|
|
12
14
|
name: z.ZodString;
|
|
13
15
|
runtime: z.ZodOptional<z.ZodString>;
|
|
14
16
|
web: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
15
|
-
}, z.core.$
|
|
16
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
17
19
|
/**
|
|
18
20
|
* TypeScript type derived from the DOPackageSchema
|
|
19
21
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doPackage.d.ts","sourceRoot":"","sources":["../../src/schemas/doPackage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB
|
|
1
|
+
{"version":3,"file":"doPackage.d.ts","sourceRoot":"","sources":["../../src/schemas/doPackage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;;;;;;;iBAKZ,CAAC;AAEjB;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -6,9 +6,13 @@ import { DOFunctionSchema } from './doFunction.js';
|
|
|
6
6
|
* Properties:
|
|
7
7
|
* - name: The package name (required, used for namespacing functions)
|
|
8
8
|
* - functions: Array of functions belonging to this package (defaults to empty array)
|
|
9
|
+
*
|
|
10
|
+
* Uses .passthrough() to preserve custom properties that may exist in package configurations
|
|
9
11
|
*/
|
|
10
|
-
export const DOPackageSchema = z
|
|
12
|
+
export const DOPackageSchema = z
|
|
13
|
+
.object({
|
|
11
14
|
name: z.string(),
|
|
12
15
|
functions: z.array(DOFunctionSchema).optional().default([]),
|
|
13
|
-
})
|
|
16
|
+
})
|
|
17
|
+
.passthrough();
|
|
14
18
|
//# sourceMappingURL=doPackage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doPackage.js","sourceRoot":"","sources":["../../src/schemas/doPackage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD
|
|
1
|
+
{"version":3,"file":"doPackage.js","sourceRoot":"","sources":["../../src/schemas/doPackage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CAC5D,CAAC;KACD,WAAW,EAAE,CAAC"}
|
|
@@ -4,6 +4,9 @@ import * as z from 'zod';
|
|
|
4
4
|
*
|
|
5
5
|
* Properties:
|
|
6
6
|
* - packages: Array of packages that make up the project (defaults to empty array)
|
|
7
|
+
*
|
|
8
|
+
* Uses .passthrough() to preserve custom properties (e.g., environment, targetNamespace)
|
|
9
|
+
* that may exist in the project.yml file
|
|
7
10
|
*/
|
|
8
11
|
export declare const DOProjectYmlSchema: z.ZodObject<{
|
|
9
12
|
packages: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -12,9 +15,9 @@ export declare const DOProjectYmlSchema: z.ZodObject<{
|
|
|
12
15
|
name: z.ZodString;
|
|
13
16
|
runtime: z.ZodOptional<z.ZodString>;
|
|
14
17
|
web: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
15
|
-
}, z.core.$
|
|
16
|
-
}, z.core.$
|
|
17
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
19
|
+
}, z.core.$loose>>>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
18
21
|
/**
|
|
19
22
|
* TypeScript type derived from the DOProjectYmlSchema
|
|
20
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doProjectYml.d.ts","sourceRoot":"","sources":["../../src/schemas/doProjectYml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB
|
|
1
|
+
{"version":3,"file":"doProjectYml.d.ts","sourceRoot":"","sources":["../../src/schemas/doProjectYml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;iBAIf,CAAC;AAEjB;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -5,8 +5,13 @@ import { DOPackageSchema } from './doPackage.js';
|
|
|
5
5
|
*
|
|
6
6
|
* Properties:
|
|
7
7
|
* - packages: Array of packages that make up the project (defaults to empty array)
|
|
8
|
+
*
|
|
9
|
+
* Uses .passthrough() to preserve custom properties (e.g., environment, targetNamespace)
|
|
10
|
+
* that may exist in the project.yml file
|
|
8
11
|
*/
|
|
9
|
-
export const DOProjectYmlSchema = z
|
|
12
|
+
export const DOProjectYmlSchema = z
|
|
13
|
+
.object({
|
|
10
14
|
packages: z.array(DOPackageSchema).optional().default([]),
|
|
11
|
-
})
|
|
15
|
+
})
|
|
16
|
+
.passthrough();
|
|
12
17
|
//# sourceMappingURL=doProjectYml.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doProjectYml.js","sourceRoot":"","sources":["../../src/schemas/doProjectYml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"doProjectYml.js","sourceRoot":"","sources":["../../src/schemas/doProjectYml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CAC1D,CAAC;KACD,WAAW,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "do-functions-cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "CLI tool for scaffolding DigitalOcean Serverless Functions with JavaScript and TypeScript templates, automatic dependency installation, and project.yml configuration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|