@cloudcommerce/api 0.0.132 → 0.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,4 +1,4 @@
1
1
 
2
- > @cloudcommerce/api@0.0.131 build /home/leo/code/ecomplus/cloud-commerce/packages/api
2
+ > @cloudcommerce/api@0.0.133 build /home/leo/code/ecomplus/cloud-commerce/packages/api
3
3
  > sh ../../scripts/build-lib.sh && cp -r src/types lib/
4
4
 
@@ -1,13 +1,13 @@
1
1
 
2
- > @cloudcommerce/api@0.0.131 test /home/leo/code/ecomplus/cloud-commerce/packages/api
2
+ > @cloudcommerce/api@0.0.133 test /home/leo/code/ecomplus/cloud-commerce/packages/api
3
3
  > tsc -p ../../tsconfig.test.json && vitest run
4
4
 
5
5
 
6
- RUN v0.25.7 /home/leo/code/ecomplus/cloud-commerce/packages/api
6
+ RUN v0.26.0 /home/leo/code/ecomplus/cloud-commerce/packages/api
7
7
 
8
+ (node:19990) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
9
+ (Use `node --trace-warnings ...` to show where the warning was created)
8
10
  ✓ tests/index.test.ts > Read product and typecheck SKU
9
- (node:39319) [https://github.com/node-fetch/node-fetch/issues/1000 (response)] DeprecationWarning: data doesn't exist, use json(), text(), arrayBuffer(), or body instead
10
- (Use `node --trace-deprecation ...` to show where the warning was created)
11
11
  ✓ tests/index.test.ts > 404 with different Store ID from env
12
12
  ✓ tests/index.test.ts > List categories and typecheck result
13
13
  ✓ tests/index.test.ts > 401 trying to list API events
@@ -15,6 +15,6 @@
15
15
 
16
16
  Test Files 1 passed (1)
17
17
  Tests 5 passed (5)
18
- Start at 22:21:44
19
- Duration 2.20s (transform 780ms, setup 0ms, collect 141ms, tests 672ms)
18
+ Start at 14:19:30
19
+ Duration 2.05s (transform 663ms, setup 0ms, collect 98ms, tests 619ms)
20
20
 
package/fetch-polyfill.js CHANGED
@@ -1,4 +1,4 @@
1
- /* eslint-disable import/no-extraneous-dependencies, no-unused-vars */
1
+ /* eslint-disable */
2
2
 
3
3
  import fetch, {
4
4
  Blob,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/api",
3
3
  "type": "module",
4
- "version": "0.0.132",
4
+ "version": "0.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce APIs client/adapter",
6
6
  "main": "lib/api.js",
7
7
  "types": "lib/api.d.ts",
@@ -1,7 +1,6 @@
1
1
  /* eslint-disable no-console, import/no-extraneous-dependencies */
2
2
 
3
3
  import { test, expect } from 'vitest';
4
- import '../fetch-polyfill';
5
4
  import api, { ApiError } from '../src/api';
6
5
 
7
6
  const productId = '618041aa239b7206d3fc06de';