integreat 1.1.0-rc.1 → 1.1.0

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.
@@ -1,2 +1,2 @@
1
- declare const _default: (elements: unknown) => unknown;
1
+ declare const _default: (value: unknown) => unknown;
2
2
  export default _default;
@@ -1,8 +1,9 @@
1
1
  import mapAny from 'map-any';
2
2
  import { isObject } from './is.js';
3
- export default mapAny(function unwrapValue(value) {
3
+ function unwrapValue(value) {
4
4
  return isObject(value) && value.hasOwnProperty('$value')
5
5
  ? value.$value
6
6
  : value;
7
- });
7
+ }
8
+ export default (value) => mapAny(unwrapValue, value);
8
9
  //# sourceMappingURL=unwrapValue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"unwrapValue.js","sourceRoot":"","sources":["../../src/utils/unwrapValue.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAElC,eAAe,MAAM,CAAC,SAAS,WAAW,CAAC,KAAc;IACvD,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC;QACtD,CAAC,CAAC,KAAK,CAAC,MAAM;QACd,CAAC,CAAC,KAAK,CAAA;AACX,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"unwrapValue.js","sourceRoot":"","sources":["../../src/utils/unwrapValue.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAElC,SAAS,WAAW,CAAC,KAAc;IACjC,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC;QACtD,CAAC,CAAC,KAAK,CAAC,MAAM;QACd,CAAC,CAAC,KAAK,CAAA;AACX,CAAC;AAED,eAAe,CAAC,KAAc,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "integreat",
3
- "version": "1.1.0-rc.1",
3
+ "version": "1.1.0",
4
4
  "description": "Node.js integration layer",
5
5
  "author": "Kjell-Morten Bratsberg Thorsen <kjellmorten@integreat.io> (https://integreat.io/)",
6
6
  "license": "ISC",
@@ -44,7 +44,7 @@
44
44
  "ajv": "^8.12.0",
45
45
  "cron-parser": "^4.8.1",
46
46
  "debug": "^4.3.4",
47
- "map-any": "^0.3.1",
47
+ "map-any": "^1.0.0",
48
48
  "map-transform": "^0.5.6",
49
49
  "ms": "^2.1.3",
50
50
  "nanoid": "^4.0.2",
@@ -59,7 +59,7 @@
59
59
  "integreat-adapter-json": "^1.0.0",
60
60
  "integreat-adapter-uri": "^1.0.0",
61
61
  "integreat-transformers": "^1.0.0",
62
- "integreat-transporter-http": "1.0.0",
62
+ "integreat-transporter-http": "1.1.0",
63
63
  "nock": "^13.3.2",
64
64
  "sinon": "^15.2.0"
65
65
  }