screenright-client 0.9.11 → 0.9.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ const errorOccurred = (message) => {
22
22
  deploymentId = null;
23
23
  };
24
24
  export const initializeScreenwright = (diagramId) => __awaiter(void 0, void 0, void 0, function* () {
25
- const _diagramId = process.env.SCREENRIGHT_DIAGRAM_ID;
25
+ const _diagramId = diagramId || process.env.SCREENRIGHT_DIAGRAM_ID;
26
26
  if (!_diagramId || !deploymentToken) {
27
27
  errorOccurred('Not set require environments.');
28
28
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screenright-client",
3
- "version": "0.9.11",
3
+ "version": "0.9.12",
4
4
  "description": "screenright's nodejs client library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",