docker-composer 4.1.2 → 4.1.3

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 CHANGED
@@ -14,8 +14,9 @@ Docker Compose Reference is [HERE](https://docs.docker.com/compose/compose-file/
14
14
 
15
15
  ### Changes of the Latest Release
16
16
 
17
- ## Version 4.1.2 (05.11.2022)
18
- - Maintenance release, dependency updates
17
+ ## Version 4.1.3 (22.12.2022)
18
+ - Remove gulp
19
+ - Update dependencies
19
20
 
20
21
  You can find all Release Notes [HERE](https://github.com/tudvari/docker-composer/blob/master/ReleaseNotes.md).
21
22
 
package/ReleaseNotes.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release Notes
2
2
 
3
+ ## Version 4.1.3 (22.12.2022)
4
+ - Remove gulp
5
+ - Update dependencies
6
+
3
7
  ## Version 4.1.2 (05.11.2022)
4
8
  - Maintenance release, dependency updates
5
9
 
@@ -0,0 +1,10 @@
1
+ const fs = require('fs')
2
+ const compiler = require('json-schema-to-typescript')
3
+
4
+ async function f() {
5
+ const compiledTs = await compiler.compileFromFile('schema.json');
6
+ fs.writeFileSync('index.d.ts', compiledTs)
7
+ }
8
+
9
+ f();
10
+
package/index.d.ts CHANGED
@@ -1,3 +1,10 @@
1
+ /* tslint:disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
1
8
  export type DefinitionsDeployment = {
2
9
  mode?: string;
3
10
  replicas?: number;
@@ -22,7 +29,17 @@ export type DefinitionsDeployment = {
22
29
  placement?: {
23
30
  constraints?: string[];
24
31
  };
25
- } & ({
32
+ } & Deployment;
33
+ export type Labels =
34
+ | {
35
+ /**
36
+ * This interface was referenced by `undefined`'s JSON-Schema definition
37
+ * via the `patternProperty` ".+".
38
+ */
39
+ [k: string]: string;
40
+ }
41
+ | string[];
42
+ export type Deployment = {
26
43
  mode?: string;
27
44
  replicas?: number;
28
45
  labels?: Labels;
@@ -46,16 +63,7 @@ export type DefinitionsDeployment = {
46
63
  placement?: {
47
64
  constraints?: string[];
48
65
  };
49
- } | null);
50
- export type Labels =
51
- | {
52
- /**
53
- * This interface was referenced by `undefined`'s JSON-Schema definition
54
- * via the `patternProperty` ".+".
55
- */
56
- [k: string]: string;
57
- }
58
- | string[];
66
+ } | null;
59
67
  export type ListOrDict =
60
68
  | {
61
69
  /**
@@ -73,6 +81,7 @@ export type StringOrList = string | ListOfStrings;
73
81
  */
74
82
  export type DefinitionsNetwork = {
75
83
  driver?: string;
84
+ name?: string;
76
85
  driver_opts?: {
77
86
  /**
78
87
  * This interface was referenced by `undefined`'s JSON-Schema definition
@@ -93,8 +102,10 @@ export type DefinitionsNetwork = {
93
102
  };
94
103
  internal?: boolean;
95
104
  labels?: Labels;
96
- } & ({
105
+ } & Network;
106
+ export type Network = {
97
107
  driver?: string;
108
+ name?: string;
98
109
  driver_opts?: {
99
110
  /**
100
111
  * This interface was referenced by `undefined`'s JSON-Schema definition
@@ -115,7 +126,7 @@ export type DefinitionsNetwork = {
115
126
  };
116
127
  internal?: boolean;
117
128
  labels?: Labels;
118
- } | null);
129
+ } | null;
119
130
  /**
120
131
  * This interface was referenced by `PropertiesVolumes`'s JSON-Schema definition
121
132
  * via the `patternProperty` "^[a-zA-Z0-9._-]+$".
@@ -135,7 +146,8 @@ export type DefinitionsVolume = {
135
146
  name?: string;
136
147
  };
137
148
  labels?: Labels;
138
- } & ({
149
+ } & Volume;
150
+ export type Volume = {
139
151
  driver?: string;
140
152
  driver_opts?: {
141
153
  /**
@@ -150,7 +162,7 @@ export type DefinitionsVolume = {
150
162
  name?: string;
151
163
  };
152
164
  labels?: Labels;
153
- } | null);
165
+ } | null;
154
166
 
155
167
  export interface ConfigSchemaV30Json {
156
168
  version: string;
package/package.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "name": "docker-composer",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "description": "NodeJS module for generating docker-compose.yml from a json document.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "./node_modules/mocha/bin/mocha.js *Test.js",
8
8
  "coverage": "nyc npm run test",
9
- "generate-ts-types": "./node_modules/gulp-cli/bin/gulp.js"
9
+ "generate-ts-types": "node compile-ts-types.js"
10
10
  },
11
11
  "keywords": [
12
- "gulp",
13
12
  "docker",
14
13
  "compose",
15
14
  "docker-compose.yml"
@@ -35,19 +34,11 @@
35
34
  "jsonschema": "^1.4.0"
36
35
  },
37
36
  "devDependencies": {
38
- "ansi-regex": "^6.0.1",
39
- "atob": ">=2.1.2",
40
- "copy-props": "^4.0.0",
41
- "eslint": "8.26.0",
42
- "glob-parent": "6.0.2",
43
- "gulp": "^4.0.2",
44
- "gulp-cli": "^2.3.0",
37
+ "eslint": "8.30.0",
45
38
  "js-yaml": "^4.0.0",
46
39
  "json-schema-to-typescript": "^11.0.0",
47
- "mixin-deep": ">=2.0.1",
48
- "mocha": "10.1.0",
40
+ "mocha": "10.2.0",
49
41
  "nyc": "^15.1.0",
50
- "set-value": "^4.0.1",
51
42
  "should": "13.2.3"
52
43
  },
53
44
  "nyc": {