screenright-client 0.9.10 → 0.9.12

Sign up to get free protection for your applications and to get access to all the features.
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.10",
3
+ "version": "0.9.12",
4
4
  "description": "screenright's nodejs client library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -33,7 +33,7 @@ const errorOccurred = (message: string) => {
33
33
 
34
34
  export const initializeScreenwright = async (diagramId?: string) => {
35
35
 
36
- const _diagramId = process.env.SCREENRIGHT_DIAGRAM_ID
36
+ const _diagramId = diagramId || process.env.SCREENRIGHT_DIAGRAM_ID
37
37
  if (!_diagramId || !deploymentToken) {
38
38
  errorOccurred('Not set require environments.')
39
39
  return