@cloudcommerce/api 0.0.133 → 0.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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @cloudcommerce/api@0.0.132 build /home/leo/code/ecomplus/cloud-commerce/packages/api
2
+ > @cloudcommerce/api@0.1.0 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.132 test /home/leo/code/ecomplus/cloud-commerce/packages/api
2
+ > @cloudcommerce/api@0.1.0 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:63618) 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:33868) [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 16:05:46
19
- Duration 2.51s (transform 877ms, setup 0ms, collect 158ms, tests 824ms)
18
+ Start at 00:49:00
19
+ Duration 2.24s (transform 728ms, setup 1ms, collect 100ms, tests 753ms)
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.133",
4
+ "version": "0.1.1",
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';