cdeops 13.1.2-alpha.13 → 13.1.2-alpha.17
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/client.mjs +13 -0
- package/package.json +22 -3
- package/server.mjs +13 -0
- package/src/index.mjs +13 -0
package/client.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This is the module that is bundled with extensions when they use `import ... from 'cdeops/client'`.
|
|
2
|
+
// It delegates to the extension host's runtime implementation of this module by calling
|
|
3
|
+
// `globalThis.require` (which ensures that the extension host's `require` is called at runtime).
|
|
4
|
+
//
|
|
5
|
+
// This dummy file is used when extension is bundled with a JavaScript bundler that lacks support for externals
|
|
6
|
+
// (or when `cdeops/client` is not configured as an external module). Parcel does not support externals
|
|
7
|
+
// (https://github.com/parcel-bundler/parcel/issues/144). Webpack, Rollup, and Microbundle support externals.
|
|
8
|
+
|
|
9
|
+
// ESM named exports must be statically analyzable, so we can only reliably export the module as default.
|
|
10
|
+
// Consumers should use: import cdeopsClient from 'cdeops/client'; then access cdeopsClient.commands, etc.
|
|
11
|
+
// Or use: import cdeopsClient from 'cdeops/client'; const { commands, configuration } = cdeopsClient;
|
|
12
|
+
const cdeopsClient = globalThis.require('cdeops/client');
|
|
13
|
+
export default cdeopsClient;
|
package/package.json
CHANGED
|
@@ -1,18 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cdeops",
|
|
3
|
-
"version": "13.1.2-alpha.
|
|
3
|
+
"version": "13.1.2-alpha.17",
|
|
4
4
|
"description": "Cdecode - Extension API: build extensions that enhance coding experience in your cdeops editor",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
7
7
|
"sideEffects": false,
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./src/cdeops.d.ts",
|
|
11
|
+
"import": "./src/index.mjs",
|
|
12
|
+
"require": "./src/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./server": {
|
|
15
|
+
"types": "./server.d.ts",
|
|
16
|
+
"import": "./server.mjs",
|
|
17
|
+
"require": "./server.js"
|
|
18
|
+
},
|
|
19
|
+
"./client": {
|
|
20
|
+
"types": "./client.d.ts",
|
|
21
|
+
"import": "./client.mjs",
|
|
22
|
+
"require": "./client.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
8
25
|
"main": "src/index.js",
|
|
9
|
-
"module": "src/index.
|
|
26
|
+
"module": "src/index.mjs",
|
|
10
27
|
"types": "./src/cdeops.d.ts",
|
|
11
28
|
"files": [
|
|
12
29
|
"server.d.ts",
|
|
13
30
|
"server.js",
|
|
31
|
+
"server.mjs",
|
|
14
32
|
"client.d.ts",
|
|
15
33
|
"client.js",
|
|
34
|
+
"client.mjs",
|
|
16
35
|
"src",
|
|
17
36
|
"dist/docs"
|
|
18
37
|
],
|
|
@@ -29,5 +48,5 @@
|
|
|
29
48
|
"publishConfig": {
|
|
30
49
|
"access": "public"
|
|
31
50
|
},
|
|
32
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "ddcd14591e38516e1490f2377d299981a172b670"
|
|
33
52
|
}
|
package/server.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This is the module that is bundled with extensions when they use `import ... from 'cdeops/server'`.
|
|
2
|
+
// It delegates to the extension host's runtime implementation of this module by calling
|
|
3
|
+
// `globalThis.require` (which ensures that the extension host's `require` is called at runtime).
|
|
4
|
+
//
|
|
5
|
+
// This dummy file is used when extension is bundled with a JavaScript bundler that lacks support for externals
|
|
6
|
+
// (or when `cdeops/server` is not configured as an external module). Parcel does not support externals
|
|
7
|
+
// (https://github.com/parcel-bundler/parcel/issues/144). Webpack, Rollup, and Microbundle support externals.
|
|
8
|
+
|
|
9
|
+
// ESM named exports must be statically analyzable, so we can only reliably export the module as default.
|
|
10
|
+
// Consumers should use: import cdeopsServer from 'cdeops/server'; then access cdeopsServer.commands, etc.
|
|
11
|
+
// Or use: import cdeopsServer from 'cdeops/server'; const { commands, configuration } = cdeopsServer;
|
|
12
|
+
const cdeopsServer = globalThis.require('cdeops/server');
|
|
13
|
+
export default cdeopsServer;
|
package/src/index.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This is the module that is bundled with extensions when they use `import ... from 'cdeops'`.
|
|
2
|
+
// It delegates to the extension host's runtime implementation of this module by calling
|
|
3
|
+
// `globalThis.require` (which ensures that the extension host's `require` is called at runtime).
|
|
4
|
+
//
|
|
5
|
+
// This dummy file is used when extension is bundled with a JavaScript bundler that lacks support for externals
|
|
6
|
+
// (or when `cdeops` is not configured as an external module). Parcel does not support externals
|
|
7
|
+
// (https://github.com/parcel-bundler/parcel/issues/144). Webpack, Rollup, and Microbundle support externals.
|
|
8
|
+
|
|
9
|
+
// ESM named exports must be statically analyzable, so we can only reliably export the module as default.
|
|
10
|
+
// Consumers should use: import cdeops from 'cdeops'; then access cdeops.workspace, cdeops.commands, etc.
|
|
11
|
+
// Or use: import cdeops from 'cdeops'; const { workspace, commands } = cdeops;
|
|
12
|
+
const cdeops = globalThis.require('cdeops');
|
|
13
|
+
export default cdeops;
|