@knime/scripting-editor 0.0.57 → 0.0.58
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/dist/main.js +14373 -8208
- package/dist/src/scripting-service.d.ts +14 -17
- package/package.json +1 -1
- package/dist/scripting-service-Bc8su0xD.js +0 -6143
- package/dist/scripting-service-instance.d.ts +0 -1
- package/dist/scripting-service-instance.js +0 -5
- package/dist/src/scripting-service-instance.d.ts +0 -13
|
@@ -28,24 +28,21 @@ export type ScriptingServiceType = typeof scriptingService;
|
|
|
28
28
|
*
|
|
29
29
|
* @returns the scripting service instance
|
|
30
30
|
* @example
|
|
31
|
-
* // Provide a custom scripting service instance in a browser development environment
|
|
32
|
-
* // vite.config.ts
|
|
33
|
-
* resolve: {
|
|
34
|
-
* alias: {
|
|
35
|
-
* "./scripting-service-instance.js":
|
|
36
|
-
* process.env.APP_ENV === "browser"
|
|
37
|
-
* ? <path to scripting-service-instance-browser.ts>,
|
|
38
|
-
* : "./scripting-service-instance.js",
|
|
39
|
-
* },
|
|
40
|
-
* },
|
|
41
|
-
*
|
|
42
|
-
* // scripting-service-instance-browser.ts
|
|
43
31
|
* import { createScriptingServiceMock } from "@knime/scripting-editor/scripting-service-browser-mock";
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
32
|
+
* import { getScriptingService } from "@knime/scripting-editor";
|
|
33
|
+
*
|
|
34
|
+
* if (import.meta.env.MODE === "development.browser") {
|
|
35
|
+
* const scriptingService = createScriptingServiceMock({
|
|
36
|
+
* sendToServiceMockResponses: {
|
|
37
|
+
* myBackendFunction: (options) => {
|
|
38
|
+
* consola.log("called my backend function with", options);
|
|
39
|
+
* return Promise.resolve();
|
|
40
|
+
* },
|
|
41
|
+
* },
|
|
42
|
+
* });
|
|
43
|
+
*
|
|
44
|
+
* Object.assign(getScriptingService(), scriptingService);
|
|
45
|
+
* }
|
|
49
46
|
*/
|
|
50
47
|
export declare const getScriptingService: () => ScriptingServiceType;
|
|
51
48
|
export declare const initConsoleEventHandler: () => void;
|
package/package.json
CHANGED