@appsemble/node-utils 0.27.2 → 0.27.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
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.27.2/config/assets/logo.svg) Appsemble Node Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.27.3/config/assets/logo.svg) Appsemble Node Utilities
2
2
 
3
3
  > NodeJS utilities used by Appsemble internally.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/node-utils)](https://www.npmjs.com/package/@appsemble/node-utils)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.27.2/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.27.2)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.27.3/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.27.3)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
9
  ## Table of Contents
@@ -26,5 +26,5 @@ compatibility is not guaranteed.
26
26
 
27
27
  ## License
28
28
 
29
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.27.2/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.27.3/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/node-utils",
3
- "version": "0.27.2",
3
+ "version": "0.27.3",
4
4
  "description": "NodeJS utilities used by Appsemble internally.",
5
5
  "keywords": [
6
6
  "app",
@@ -38,8 +38,8 @@
38
38
  "test": "vitest"
39
39
  },
40
40
  "dependencies": {
41
- "@appsemble/types": "0.27.2",
42
- "@appsemble/utils": "0.27.2",
41
+ "@appsemble/types": "0.27.3",
42
+ "@appsemble/utils": "0.27.3",
43
43
  "@formatjs/fast-memoize": "^2.0.0",
44
44
  "@fortawesome/fontawesome-free": "^6.0.0",
45
45
  "@koa/cors": "^4.0.0",
package/resource.js CHANGED
@@ -5,7 +5,7 @@ import { ValidationError, Validator } from 'jsonschema';
5
5
  import parseDuration from 'parse-duration';
6
6
  import { preProcessCSV } from './csv.js';
7
7
  import { throwKoaError } from './koa.js';
8
- function stripResource({ $author, $created, $editor, $updated, ...data }) {
8
+ function stripResource({ $author, $created, $editor, $ephemeral, $updated, ...data }) {
9
9
  return data;
10
10
  }
11
11
  /**
@@ -189,9 +189,6 @@ export function processResourceBody(ctx, definition, knownAssetIds = [], knownEx
189
189
  if (propertyName === '$clonable') {
190
190
  return definition.clonable;
191
191
  }
192
- if (propertyName === '$ephemeral') {
193
- return definition.ephemeral;
194
- }
195
192
  return;
196
193
  }
197
194
  if (format !== 'binary') {
@@ -228,10 +228,7 @@ export function createUpdateResource(options) {
228
228
  context: ctx,
229
229
  id: resourceId,
230
230
  type: resourceType,
231
- resource: {
232
- ...resources[0],
233
- ...(app.demoMode ? { $ephemeral: true, $clonable: false } : {}),
234
- },
231
+ resource: resources[0],
235
232
  preparedAssets,
236
233
  deletedAssetIds,
237
234
  resourceDefinition,