@appsemble/types 0.20.13 → 0.20.14

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,10 +1,10 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.20.13/config/assets/logo.svg) Appsemble Types
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.20.14/config/assets/logo.svg) Appsemble Types
2
2
 
3
3
  > Reusable TypeScript types
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/types)](https://www.npmjs.com/package/@appsemble/types)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.20.13/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.20.13)
7
- [![Code coverage](https://codecov.io/gl/appsemble/appsemble/branch/0.20.13/graph/badge.svg)](https://codecov.io/gl/appsemble/appsemble)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.20.14/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.20.14)
7
+ [![Code coverage](https://codecov.io/gl/appsemble/appsemble/branch/0.20.14/graph/badge.svg)](https://codecov.io/gl/appsemble/appsemble)
8
8
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
9
9
 
10
10
  ## Installation
@@ -21,5 +21,5 @@ not guaranteed.
21
21
 
22
22
  ## License
23
23
 
24
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.13/LICENSE.md) ©
24
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.14/LICENSE.md) ©
25
25
  [Appsemble](https://appsemble.com)
package/action.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Remapper } from '.';
2
- import { HTTPMethods } from './http';
1
+ import { HTTPMethods } from './http.js';
2
+ import { Remapper } from './index.js';
3
3
  interface BaseAction<T extends string> {
4
4
  /**
5
5
  * A function which can be called to dispatch the action.
package/action.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Remapper } from '.';
2
- import { HTTPMethods } from './http';
1
+ import { HTTPMethods } from './http.js';
2
+ import { Remapper } from './index.js';
3
3
 
4
4
  interface BaseAction<T extends string> {
5
5
  /**
package/appMember.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IconName } from '@fortawesome/fontawesome-common-types';
2
- import { App } from '.';
2
+ import { App } from './index.js';
3
3
  export interface SSOConfiguration {
4
4
  type: 'oauth2' | 'saml';
5
5
  url: string;
package/appMember.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { IconName } from '@fortawesome/fontawesome-common-types';
2
2
 
3
- import { App } from '.';
3
+ import { App } from './index.js';
4
4
 
5
5
  export interface SSOConfiguration {
6
6
  type: 'oauth2' | 'saml';
package/index.d.ts CHANGED
@@ -2,27 +2,27 @@ import { IconName } from '@fortawesome/fontawesome-common-types';
2
2
  import { Schema } from 'jsonschema';
3
3
  import { OpenAPIV3 } from 'openapi-types';
4
4
  import { JsonObject, RequireExactlyOne } from 'type-fest';
5
- import { Action, LogAction } from './action';
6
- import { AppVisibility, TeamsDefinition } from './app';
7
- import { BulmaColor } from './bulma';
8
- import { HTTPMethods } from './http';
9
- import { Theme } from './theme';
10
- export * from './action';
11
- export * from './app';
12
- export * from './appMember';
13
- export * from './asset';
14
- export * from './authentication';
15
- export * from './author';
16
- export * from './bulma';
17
- export * from './http';
18
- export * from './snapshot';
19
- export * from './resource';
20
- export * from './saml';
21
- export * from './ssl';
22
- export * from './team';
23
- export * from './template';
24
- export * from './theme';
25
- export * from './user';
5
+ import { Action, LogAction } from './action.js';
6
+ import { AppVisibility, TeamsDefinition } from './app.js';
7
+ import { BulmaColor } from './bulma.js';
8
+ import { HTTPMethods } from './http.js';
9
+ import { Theme } from './theme.js';
10
+ export * from './action.js';
11
+ export * from './app.js';
12
+ export * from './appMember.js';
13
+ export * from './asset.js';
14
+ export * from './authentication.js';
15
+ export * from './author.js';
16
+ export * from './bulma.js';
17
+ export * from './http.js';
18
+ export * from './snapshot.js';
19
+ export * from './resource.js';
20
+ export * from './saml.js';
21
+ export * from './ssl.js';
22
+ export * from './team.js';
23
+ export * from './template.js';
24
+ export * from './theme.js';
25
+ export * from './user.js';
26
26
  /**
27
27
  * A representation of a generated OAuth2 authorization code response.
28
28
  */
package/index.js CHANGED
@@ -1,17 +1,17 @@
1
- export * from './action';
2
- export * from './app';
3
- export * from './appMember';
4
- export * from './asset';
5
- export * from './authentication';
6
- export * from './author';
7
- export * from './bulma';
8
- export * from './http';
9
- export * from './snapshot';
10
- export * from './resource';
11
- export * from './saml';
12
- export * from './ssl';
13
- export * from './team';
14
- export * from './template';
15
- export * from './theme';
16
- export * from './user';
1
+ export * from './action.js';
2
+ export * from './app.js';
3
+ export * from './appMember.js';
4
+ export * from './asset.js';
5
+ export * from './authentication.js';
6
+ export * from './author.js';
7
+ export * from './bulma.js';
8
+ export * from './http.js';
9
+ export * from './snapshot.js';
10
+ export * from './resource.js';
11
+ export * from './saml.js';
12
+ export * from './ssl.js';
13
+ export * from './team.js';
14
+ export * from './template.js';
15
+ export * from './theme.js';
16
+ export * from './user.js';
17
17
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAWA,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAWA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
package/index.ts CHANGED
@@ -3,28 +3,28 @@ import { Schema } from 'jsonschema';
3
3
  import { OpenAPIV3 } from 'openapi-types';
4
4
  import { JsonObject, RequireExactlyOne } from 'type-fest';
5
5
 
6
- import { Action, LogAction } from './action';
7
- import { AppVisibility, TeamsDefinition } from './app';
8
- import { BulmaColor } from './bulma';
9
- import { HTTPMethods } from './http';
10
- import { Theme } from './theme';
11
-
12
- export * from './action';
13
- export * from './app';
14
- export * from './appMember';
15
- export * from './asset';
16
- export * from './authentication';
17
- export * from './author';
18
- export * from './bulma';
19
- export * from './http';
20
- export * from './snapshot';
21
- export * from './resource';
22
- export * from './saml';
23
- export * from './ssl';
24
- export * from './team';
25
- export * from './template';
26
- export * from './theme';
27
- export * from './user';
6
+ import { Action, LogAction } from './action.js';
7
+ import { AppVisibility, TeamsDefinition } from './app.js';
8
+ import { BulmaColor } from './bulma.js';
9
+ import { HTTPMethods } from './http.js';
10
+ import { Theme } from './theme.js';
11
+
12
+ export * from './action.js';
13
+ export * from './app.js';
14
+ export * from './appMember.js';
15
+ export * from './asset.js';
16
+ export * from './authentication.js';
17
+ export * from './author.js';
18
+ export * from './bulma.js';
19
+ export * from './http.js';
20
+ export * from './snapshot.js';
21
+ export * from './resource.js';
22
+ export * from './saml.js';
23
+ export * from './ssl.js';
24
+ export * from './team.js';
25
+ export * from './template.js';
26
+ export * from './theme.js';
27
+ export * from './user.js';
28
28
 
29
29
  /**
30
30
  * A representation of a generated OAuth2 authorization code response.
package/jest.config.js CHANGED
@@ -1 +1,3 @@
1
- module.exports = require('../../config/jest/config')(__dirname);
1
+ import { createJestConfig } from '../../config/jest/config.js';
2
+
3
+ export default createJestConfig(import.meta);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/types",
3
- "version": "0.20.13",
3
+ "version": "0.20.14",
4
4
  "description": "TypeScript definitions reused within Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -21,6 +21,7 @@
21
21
  "license": "LGPL-3.0-only",
22
22
  "author": "Appsemble <info@appsemble.com> (https://appsemble.com)",
23
23
  "sideEffects": false,
24
+ "type": "module",
24
25
  "files": [
25
26
  "**/*.d.ts",
26
27
  "**/*.js",
@@ -28,7 +29,7 @@
28
29
  ],
29
30
  "scripts": {
30
31
  "prepack": "tsc --noEmit false",
31
- "test": "jest"
32
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest"
32
33
  },
33
34
  "dependencies": {
34
35
  "@fortawesome/fontawesome-common-types": "^6.0.0",
package/snapshot.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Author } from './author';
1
+ import { Author } from './author.js';
2
2
  /**
3
3
  * A snapshot of an app.
4
4
  */
package/snapshot.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Author } from './author';
1
+ import { Author } from './author.js';
2
2
 
3
3
  /**
4
4
  * A snapshot of an app.
package/template.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AppVisibility } from './app';
1
+ import { AppVisibility } from './app.js';
2
2
  export interface Template {
3
3
  /**
4
4
  * The id of the app to clone.
package/template.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AppVisibility } from './app';
1
+ import { AppVisibility } from './app.js';
2
2
 
3
3
  export interface Template {
4
4
  /**