@adobe/aio-commerce-lib-core 1.1.0 → 1.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @adobe/aio-commerce-lib-core
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#470](https://github.com/adobe/aio-commerce-sdk/pull/470) [`ec2d426`](https://github.com/adobe/aio-commerce-sdk/commit/ec2d4262166bde68a434025667f38609313ad712) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Fix CJS interop for ESM-only dependencies (`camelcase`, `ky`) on Node.js 22+
8
+
3
9
  ## 1.1.0
4
10
 
5
11
  ### Minor Changes
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
- const require_error = require('../error-QC7QKZdI.cjs');
16
+ const require_error = require('../error-sJoC2Xru.cjs');
17
17
 
18
18
  exports.CommerceSdkErrorBase = require_error.CommerceSdkErrorBase;
19
19
  exports.CommerceSdkValidationError = require_error.CommerceSdkValidationError;
@@ -13,11 +13,15 @@
13
13
  */
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
- const require_error = require('../error-QC7QKZdI.cjs');
16
+ const require_error = require('../error-sJoC2Xru.cjs');
17
17
  let valibot = require("valibot");
18
18
  let camelcase = require("camelcase");
19
19
  camelcase = require_error.__toESM(camelcase, 1);
20
20
 
21
+ //#region source/headers/camelcase.ts
22
+ const camelcase$1 = camelcase.default.default ?? camelcase.default;
23
+
24
+ //#endregion
21
25
  //#region source/headers/helpers.ts
22
26
  /**
23
27
  * Extracts a header value from an object with case-insensitive lookup.
@@ -234,7 +238,7 @@ const LEADING_UNDERSCORES = /^_+/;
234
238
  * change and must land in a major release.
235
239
  */
236
240
  function toHeaderCamelKey(header) {
237
- return (0, camelcase.default)(header.replace(LEADING_UNDERSCORES, ""));
241
+ return camelcase$1(header.replace(LEADING_UNDERSCORES, ""));
238
242
  }
239
243
  /**
240
244
  * Creates a type-safe header accessor object with validated required headers.
@@ -12,7 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { r as RuntimeActionParams } from "../index-Ddzq9z7b.cjs";
15
+ import { r as RuntimeActionParams } from "../index-CkxLqyh-.cjs";
16
16
  import { CamelCase } from "type-fest";
17
17
 
18
18
  //#region source/headers/types.d.ts
@@ -12,5 +12,5 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { a as nonEmpty, i as allNonEmpty, n as HttpMethodLowercase, r as RuntimeActionParams, t as HttpMethod } from "../index-Ddzq9z7b.cjs";
15
+ import { a as nonEmpty, i as allNonEmpty, n as HttpMethodLowercase, r as RuntimeActionParams, t as HttpMethod } from "../index-CkxLqyh-.cjs";
16
16
  export { HttpMethod, HttpMethodLowercase, RuntimeActionParams, allNonEmpty, nonEmpty };
@@ -12,6 +12,6 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { n as CommerceSdkErrorBase, t as CommerceSdkValidationError } from "../error-dCuAZfGs.mjs";
15
+ import { n as CommerceSdkErrorBase, t as CommerceSdkValidationError } from "../error-WnQqveay.mjs";
16
16
 
17
17
  export { CommerceSdkErrorBase, CommerceSdkValidationError };
@@ -12,7 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { r as RuntimeActionParams } from "../index-2lCs6JZP.mjs";
15
+ import { r as RuntimeActionParams } from "../index-CkxLqyh-.mjs";
16
16
  import { CamelCase } from "type-fest";
17
17
 
18
18
  //#region source/headers/types.d.ts
@@ -12,10 +12,14 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { t as CommerceSdkValidationError } from "../error-dCuAZfGs.mjs";
15
+ import { t as CommerceSdkValidationError } from "../error-WnQqveay.mjs";
16
16
  import { literal, nonEmpty, object, pipe, rawCheck, rawTransform, record, safeParse, string, trim, undefined as undefined$1, union } from "valibot";
17
- import camelcase from "camelcase";
17
+ import * as camelcaseModule from "camelcase";
18
18
 
19
+ //#region source/headers/camelcase.ts
20
+ const camelcase = camelcaseModule.default.default ?? camelcaseModule.default;
21
+
22
+ //#endregion
19
23
  //#region source/headers/helpers.ts
20
24
  /**
21
25
  * Extracts a header value from an object with case-insensitive lookup.
@@ -12,5 +12,5 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { a as nonEmpty, i as allNonEmpty, n as HttpMethodLowercase, r as RuntimeActionParams, t as HttpMethod } from "../index-2lCs6JZP.mjs";
15
+ import { a as nonEmpty, i as allNonEmpty, n as HttpMethodLowercase, r as RuntimeActionParams, t as HttpMethod } from "../index-CkxLqyh-.mjs";
16
16
  export { HttpMethod, HttpMethodLowercase, RuntimeActionParams, allNonEmpty, nonEmpty };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@adobe/aio-commerce-lib-core",
3
3
  "type": "module",
4
4
  "author": "Adobe Inc.",
5
- "version": "1.1.0",
5
+ "version": "1.1.1",
6
6
  "private": false,
7
7
  "engines": {
8
8
  "node": ">=22 <=24"
@@ -27,6 +27,10 @@
27
27
  "url": "git+https://github.com/adobe/aio-commerce-sdk.git",
28
28
  "directory": "packages/aio-commerce-lib-core"
29
29
  },
30
+ "publishConfig": {
31
+ "registry": "https://registry.npmjs.org",
32
+ "access": "public"
33
+ },
30
34
  "exports": {
31
35
  "./*": {
32
36
  "import": {