camstreamerlib 4.0.18 → 4.0.20
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
|
@@ -198,17 +198,15 @@ try {
|
|
|
198
198
|
|
|
199
199
|
### Publishing to npm repository
|
|
200
200
|
|
|
201
|
-
|
|
202
|
-
2. Create git tag e.g. v1.2.4
|
|
201
|
+
Run `npm run publishPackage`.
|
|
203
202
|
|
|
204
|
-
|
|
205
|
-
- `git push --tags`
|
|
203
|
+
It will:
|
|
206
204
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
- `
|
|
210
|
-
|
|
211
|
-
|
|
205
|
+
- Require npm user `camstreamer` (prompts login if needed).
|
|
206
|
+
- Run `lint`, `pretty:check`, and `build`.
|
|
207
|
+
- Publish from `master` as `latest`.
|
|
208
|
+
- Publish from other branches as `dev-*` (or `dev`).
|
|
209
|
+
- Refuse `latest` publish if the same version is already on npm or if `package.json` version is not committed.
|
|
212
210
|
|
|
213
211
|
### Preparing a package to upload to CamScripter
|
|
214
212
|
|
|
@@ -153,7 +153,7 @@ exports.cameraSettingsSchema = zod_1.z.object({
|
|
|
153
153
|
coord: 'top_right',
|
|
154
154
|
posX: 10,
|
|
155
155
|
posY: 10,
|
|
156
|
-
scale:
|
|
156
|
+
scale: 100,
|
|
157
157
|
}),
|
|
158
158
|
airportWidget: exports.widgetSchema
|
|
159
159
|
.extend({
|
|
@@ -166,7 +166,7 @@ exports.cameraSettingsSchema = zod_1.z.object({
|
|
|
166
166
|
coord: 'top_left',
|
|
167
167
|
posX: 10,
|
|
168
168
|
posY: 10,
|
|
169
|
-
scale:
|
|
169
|
+
scale: 100,
|
|
170
170
|
showWeather: false,
|
|
171
171
|
weatherLocationKey: '',
|
|
172
172
|
weatherLocationName: '',
|
|
@@ -150,7 +150,7 @@ export const cameraSettingsSchema = z.object({
|
|
|
150
150
|
coord: 'top_right',
|
|
151
151
|
posX: 10,
|
|
152
152
|
posY: 10,
|
|
153
|
-
scale:
|
|
153
|
+
scale: 100,
|
|
154
154
|
}),
|
|
155
155
|
airportWidget: widgetSchema
|
|
156
156
|
.extend({
|
|
@@ -163,7 +163,7 @@ export const cameraSettingsSchema = z.object({
|
|
|
163
163
|
coord: 'top_left',
|
|
164
164
|
posX: 10,
|
|
165
165
|
posY: 10,
|
|
166
|
-
scale:
|
|
166
|
+
scale: 100,
|
|
167
167
|
showWeather: false,
|
|
168
168
|
weatherLocationKey: '',
|
|
169
169
|
weatherLocationName: '',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "camstreamerlib",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.20",
|
|
4
4
|
"description": "Helper library for CamStreamer ACAP applications.",
|
|
5
5
|
"prettier": "@camstreamer/prettier-config",
|
|
6
6
|
"engine": {
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"build:cjs": "tsc --project tsconfig.cjs.json",
|
|
44
44
|
"build:esm": "tsc --project tsconfig.esm.json",
|
|
45
45
|
"copyPackage": "cp -f LICENSE dist/ && cp -f README.md dist/ && cp -f package.json dist/",
|
|
46
|
+
"publishPackage": "./publish.sh",
|
|
46
47
|
"lint": "eslint \"src/**/*.ts\"",
|
|
47
48
|
"lint:fix": "eslint \"src/**/*.ts\" --fix",
|
|
48
49
|
"pretty": "prettier --write \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
|