@appsemble/cli 0.39.0 → 0.39.2

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
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.39.0/config/assets/logo.svg) Appsemble CLI
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.39.2/config/assets/logo.svg) Appsemble CLI
2
2
 
3
3
  > Manage apps and blocks from the command line.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/cli)](https://www.npmjs.com/package/@appsemble/cli)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.39.0/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.39.0)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.39.2/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.39.2)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
9
  ## Table of Contents
@@ -342,5 +342,5 @@ appsemble run-cronjobs --interval 30
342
342
 
343
343
  ## License
344
344
 
345
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.39.0/LICENSE.md) ©
345
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.39.2/LICENSE.md) ©
346
346
  [Appsemble](https://appsemble.com)
package/lib/app.js CHANGED
@@ -4,7 +4,7 @@ import { basename, dirname, join, parse, relative, resolve } from 'node:path';
4
4
  import { inspect } from 'node:util';
5
5
  import { normalizeBlockName } from '@appsemble/lang-sdk';
6
6
  import { applyAppVariant, AppsembleError, authenticate, logger, opendirSafe, preProcessCSV, readData, writeData, } from '@appsemble/node-utils';
7
- import { extractAppMessages, has } from '@appsemble/utils';
7
+ import { extractAppMessages, has, normalizeLocale } from '@appsemble/utils';
8
8
  import axios from 'axios';
9
9
  import csv from 'csvtojson';
10
10
  import fg from 'fast-glob';
@@ -234,7 +234,9 @@ export async function uploadMessages(path, appId, remote, force) {
234
234
  logger.info('Searching for translations 🕵');
235
235
  await opendirSafe(join(path, 'i18n'), async (messageFile) => {
236
236
  logger.verbose(`Processing ${messageFile} ⚙️`);
237
- const { name: language } = parse(messageFile);
237
+ // Weblate names its catalogs with a POSIX locale, such as `zh_Hans.json`. The API takes a
238
+ // BCP 47 language tag.
239
+ const language = normalizeLocale(parse(messageFile).name);
238
240
  if (result.some((entry) => entry.language === language)) {
239
241
  throw new AppsembleError(`Found duplicate language “${language}”. Make sure each language only exists once in the directory.`);
240
242
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/cli",
3
- "version": "0.39.0",
3
+ "version": "0.39.2",
4
4
  "description": "The CLI for developing with Appsemble apps and blocks",
5
5
  "keywords": [
6
6
  "app",
@@ -44,10 +44,10 @@
44
44
  "test": "vitest"
45
45
  },
46
46
  "dependencies": {
47
- "@appsemble/node-utils": "0.39.0",
48
- "@appsemble/types": "0.39.0",
49
- "@appsemble/lang-sdk": "0.39.0",
50
- "@appsemble/utils": "0.39.0",
47
+ "@appsemble/node-utils": "0.39.2",
48
+ "@appsemble/types": "0.39.2",
49
+ "@appsemble/lang-sdk": "0.39.2",
50
+ "@appsemble/utils": "0.39.2",
51
51
  "@fortawesome/fontawesome-common-types": "^6.0.0",
52
52
  "@inquirer/prompts": "^8.0.0",
53
53
  "@koa/cors": "^5.0.0",
@@ -90,8 +90,8 @@
90
90
  "yargs": "^17.0.0"
91
91
  },
92
92
  "devDependencies": {
93
- "@appsemble/types": "0.39.0",
94
- "@appsemble/server": "0.39.0",
93
+ "@appsemble/types": "0.39.2",
94
+ "@appsemble/server": "0.39.2",
95
95
  "@types/concat-stream": "2.0.3",
96
96
  "@types/koa__cors": "5.0.1",
97
97
  "@types/koa-compress": "4.0.7",
@@ -6,7 +6,7 @@ pages:
6
6
  - name: Example Page A
7
7
  blocks:
8
8
  - type: action-button
9
- version: 0.39.0
9
+ version: 0.39.2
10
10
  parameters:
11
11
  icon: arrow-right
12
12
  actions:
@@ -17,7 +17,7 @@ pages:
17
17
  - name: Example Page B
18
18
  blocks:
19
19
  - type: action-button
20
- version: 0.39.0
20
+ version: 0.39.2
21
21
  parameters:
22
22
  icon: arrow-left
23
23
  actions:
@@ -5,7 +5,7 @@
5
5
  "*.css"
6
6
  ],
7
7
  "dependencies": {
8
- "@appsemble/sdk": "0.39.0",
8
+ "@appsemble/sdk": "0.39.2",
9
9
  "mini-jsx": "^4.0.0"
10
10
  }
11
11
  }
@@ -5,8 +5,8 @@
5
5
  "*.css"
6
6
  ],
7
7
  "dependencies": {
8
- "@appsemble/preact": "0.39.0",
9
- "@appsemble/sdk": "0.39.0",
8
+ "@appsemble/preact": "0.39.2",
9
+ "@appsemble/sdk": "0.39.2",
10
10
  "preact": "^10.0.0"
11
11
  }
12
12
  }
@@ -5,6 +5,6 @@
5
5
  "*.css"
6
6
  ],
7
7
  "dependencies": {
8
- "@appsemble/sdk": "0.39.0"
8
+ "@appsemble/sdk": "0.39.2"
9
9
  }
10
10
  }