@theia/application-package 1.18.0 → 1.21.0-next.12

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/lib/api.d.ts ADDED
@@ -0,0 +1,21 @@
1
+ /********************************************************************************
2
+ * Copyright (C) 2021 Ericsson and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+ /**
17
+ * The default supported API version the framework supports.
18
+ * The version should be in the format `x.y.z`.
19
+ */
20
+ export declare const DEFAULT_SUPPORTED_API_VERSION = "1.53.2";
21
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,WAAW,CAAC"}
package/lib/api.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (C) 2021 Ericsson and others.
4
+ *
5
+ * This program and the accompanying materials are made available under the
6
+ * terms of the Eclipse Public License v. 2.0 which is available at
7
+ * http://www.eclipse.org/legal/epl-2.0.
8
+ *
9
+ * This Source Code may also be made available under the following Secondary
10
+ * Licenses when the conditions for such availability set forth in the Eclipse
11
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ * with the GNU Classpath Exception which is available at
13
+ * https://www.gnu.org/software/classpath/license.html.
14
+ *
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ ********************************************************************************/
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.DEFAULT_SUPPORTED_API_VERSION = void 0;
19
+ /**
20
+ * The default supported API version the framework supports.
21
+ * The version should be in the format `x.y.z`.
22
+ */
23
+ exports.DEFAULT_SUPPORTED_API_VERSION = '1.53.2';
24
+ //# sourceMappingURL=api.js.map
package/lib/api.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF;;;GAGG;AACU,QAAA,6BAA6B,GAAG,QAAQ,CAAC"}
@@ -44,7 +44,7 @@ class ElectronEnv {
44
44
  return this.is()
45
45
  && typeof process !== 'undefined'
46
46
  // `defaultApp` does not exist on the Node.js API, but on electron (`electron.d.ts`).
47
- && (process.defaultApp || /node_modules[/]electron[/]/.test(process.execPath)); // eslint-disable-line @typescript-eslint/no-explicit-any
47
+ && (process.defaultApp || /node_modules[/\\]electron[/\\]/.test(process.execPath)); // eslint-disable-line @typescript-eslint/no-explicit-any
48
48
  }
49
49
  /**
50
50
  * Creates and return with a new environment object which always contains the `ELECTRON_RUN_AS_NODE: 1` property pair.
@@ -1 +1 @@
1
- {"version":3,"file":"environment.js","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,MAAM,UAAU,GAAkB,OAAO,CAAC,aAAa,CAAC,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW;IAAjB;QAEI;;WAEG;QACM,2BAAsB,GAAG,wBAAwB,CAAC;IA6C/D,CAAC;IA3CG;;;;OAIG;IACH,EAAE;QACE,OAAO,UAAU,EAAE,CAAC;IACxB,CAAC;IAED;;;;OAIG;IACH,SAAS;QACL,OAAO,IAAI,CAAC,EAAE,EAAE;eACT,OAAO,OAAO,KAAK,WAAW;YACjC,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,KAAK,CAAC,gCAAgC,CAAC,CAAC;SACrD;QACD,uCACO,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAC1C,oBAAoB,EAAE,CAAC,IACzB;IACN,CAAC;CAEJ;AAED,MAAM,QAAQ,GAAG,IAAI,WAAW,EAAE,CAAC;AACnC,MAAM,WAAW,GAAwC,EAAE,QAAQ,EAAE,CAAC;AAC7D,kCAAW"}
package/lib/index.d.ts CHANGED
@@ -18,4 +18,5 @@ export * from './extension-package';
18
18
  export * from './application-package';
19
19
  export * from './application-props';
20
20
  export * from './environment';
21
+ export * from './api';
21
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC"}
package/lib/index.js CHANGED
@@ -30,4 +30,5 @@ __exportStar(require("./extension-package"), exports);
30
30
  __exportStar(require("./application-package"), exports);
31
31
  __exportStar(require("./application-props"), exports);
32
32
  __exportStar(require("./environment"), exports);
33
+ __exportStar(require("./api"), exports);
33
34
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,iDAA+B;AAC/B,sDAAoC;AACpC,wDAAsC;AACtC,sDAAoC;AACpC,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,iDAA+B;AAC/B,sDAAoC;AACpC,wDAAsC;AACtC,sDAAoC;AACpC,gDAA8B;AAC9B,wCAAsB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/application-package",
3
- "version": "1.18.0",
3
+ "version": "1.21.0-next.12+c8248f736ed",
4
4
  "description": "Theia application package API.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -42,10 +42,10 @@
42
42
  "write-json-file": "^2.2.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@theia/ext-scripts": "1.18.0"
45
+ "@theia/ext-scripts": "1.20.0"
46
46
  },
47
47
  "nyc": {
48
48
  "extends": "../../configs/nyc.json"
49
49
  },
50
- "gitHead": "76318d01b7b3364cdf35ee456797699363f2634d"
50
+ "gitHead": "c8248f736edb4939155711987333ed39d9394b11"
51
51
  }
package/src/api.ts ADDED
@@ -0,0 +1,21 @@
1
+ /********************************************************************************
2
+ * Copyright (C) 2021 Ericsson and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+
17
+ /**
18
+ * The default supported API version the framework supports.
19
+ * The version should be in the format `x.y.z`.
20
+ */
21
+ export const DEFAULT_SUPPORTED_API_VERSION = '1.53.2';
@@ -44,7 +44,7 @@ class ElectronEnv {
44
44
  return this.is()
45
45
  && typeof process !== 'undefined'
46
46
  // `defaultApp` does not exist on the Node.js API, but on electron (`electron.d.ts`).
47
- && ((process as any).defaultApp || /node_modules[/]electron[/]/.test(process.execPath)); // eslint-disable-line @typescript-eslint/no-explicit-any
47
+ && ((process as any).defaultApp || /node_modules[/\\]electron[/\\]/.test(process.execPath)); // eslint-disable-line @typescript-eslint/no-explicit-any
48
48
  }
49
49
 
50
50
  /**
package/src/index.ts CHANGED
@@ -19,3 +19,4 @@ export * from './extension-package';
19
19
  export * from './application-package';
20
20
  export * from './application-props';
21
21
  export * from './environment';
22
+ export * from './api';