@openfn/language-msupply 1.0.16 → 1.0.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/dist/index.cjs CHANGED
@@ -73,6 +73,7 @@ __export(Adaptor_exports, {
73
73
  upsertOutboundShipment: () => upsertOutboundShipment,
74
74
  util: () => import_language_common2.util
75
75
  });
76
+ var import_node_crypto = __toESM(require("crypto"), 1);
76
77
  var import_util2 = require("@openfn/language-common/util");
77
78
 
78
79
  // src/Utils.js
@@ -519,7 +520,6 @@ var upsertOutboundShipmentQuery = `mutation upsertOutboundShipment($storeId: Str
519
520
  }`;
520
521
 
521
522
  // src/Adaptor.js
522
- var import_uuid = require("uuid");
523
523
  var import_language_common2 = require("@openfn/language-common");
524
524
  function getItemsWithStats(variables) {
525
525
  return async (state) => {
@@ -541,7 +541,7 @@ function insertOutboundShipment(variables) {
541
541
  body: {
542
542
  query: insertOutboundShipmentQuery,
543
543
  variables: {
544
- id: (0, import_uuid.v4)(),
544
+ id: import_node_crypto.default.randomUUID(),
545
545
  ...resolvedVariables
546
546
  }
547
547
  }
@@ -565,16 +565,17 @@ function upsertOutboundShipment(variables) {
565
565
  }
566
566
  function query(query2, variables = {}) {
567
567
  return async (state) => {
568
- const [resolvedQuery, resolvedVariables] = (0, import_util2.expandReferences)(state, query2, variables);
569
- const response = await request(
568
+ const [resolvedQuery, resolvedVariables] = (0, import_util2.expandReferences)(
570
569
  state,
571
- {
572
- body: {
573
- query: resolvedQuery,
574
- variables: resolvedVariables
575
- }
576
- }
570
+ query2,
571
+ variables
577
572
  );
573
+ const response = await request(state, {
574
+ body: {
575
+ query: resolvedQuery,
576
+ variables: resolvedVariables
577
+ }
578
+ });
578
579
  return prepareNextState(state, response);
579
580
  };
580
581
  }
package/dist/index.js CHANGED
@@ -28,6 +28,7 @@ __export(Adaptor_exports, {
28
28
  upsertOutboundShipment: () => upsertOutboundShipment,
29
29
  util: () => util
30
30
  });
31
+ import crypto from "crypto";
31
32
  import { expandReferences } from "@openfn/language-common/util";
32
33
 
33
34
  // src/Utils.js
@@ -476,7 +477,6 @@ var upsertOutboundShipmentQuery = `mutation upsertOutboundShipment($storeId: Str
476
477
  }`;
477
478
 
478
479
  // src/Adaptor.js
479
- import { v4 as uuidv4 } from "uuid";
480
480
  import {
481
481
  combine,
482
482
  cursor,
@@ -515,7 +515,7 @@ function insertOutboundShipment(variables) {
515
515
  body: {
516
516
  query: insertOutboundShipmentQuery,
517
517
  variables: {
518
- id: uuidv4(),
518
+ id: crypto.randomUUID(),
519
519
  ...resolvedVariables
520
520
  }
521
521
  }
@@ -539,16 +539,17 @@ function upsertOutboundShipment(variables) {
539
539
  }
540
540
  function query(query2, variables = {}) {
541
541
  return async (state) => {
542
- const [resolvedQuery, resolvedVariables] = expandReferences(state, query2, variables);
543
- const response = await request(
542
+ const [resolvedQuery, resolvedVariables] = expandReferences(
544
543
  state,
545
- {
546
- body: {
547
- query: resolvedQuery,
548
- variables: resolvedVariables
549
- }
550
- }
544
+ query2,
545
+ variables
551
546
  );
547
+ const response = await request(state, {
548
+ body: {
549
+ query: resolvedQuery,
550
+ variables: resolvedVariables
551
+ }
552
+ });
552
553
  return prepareNextState(state, response);
553
554
  };
554
555
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-msupply",
3
3
  "label": "mSupply",
4
- "version": "1.0.16",
4
+ "version": "1.0.17",
5
5
  "description": "OpenFn adaptor for mSupply",
6
6
  "type": "module",
7
7
  "exports": {
@@ -21,7 +21,6 @@
21
21
  "configuration-schema.json"
22
22
  ],
23
23
  "dependencies": {
24
- "uuid": "^11.1.0",
25
24
  "@openfn/language-common": "3.3.1"
26
25
  },
27
26
  "devDependencies": {