fix: release
This commit is contained in:
@@ -8,12 +8,14 @@
|
||||
"dist/**/*"
|
||||
],
|
||||
"scripts": {
|
||||
"prepare": "cross-env NODE_ENV=production npm run build",
|
||||
"build": "tsc --build",
|
||||
"test": "jest --config jestconfig.json"
|
||||
},
|
||||
"author": "Oliver Juhl",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@medusajs/medusa": "^1.1.54",
|
||||
"axios": "^0.21.0",
|
||||
"retry-axios": "^2.6.0"
|
||||
},
|
||||
@@ -26,6 +28,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^26.0.19",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.2.0",
|
||||
"jest": "^26.6.3",
|
||||
"prettier": "^2.2.1",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {
|
||||
StoreCartsCartRes,
|
||||
StoreCartsRes,
|
||||
StoreCartsDeleteRes,
|
||||
StorePostCartsCartLineItemsItemReq,
|
||||
StorePostCartsCartLineItemsReq,
|
||||
@@ -17,7 +17,7 @@ class LineItemsResource extends BaseResource {
|
||||
create(
|
||||
cart_id: string,
|
||||
payload: StorePostCartsCartLineItemsReq
|
||||
): AxiosPromise<StoreCartsCartRes> {
|
||||
): AxiosPromise<StoreCartsRes> {
|
||||
const path = `/store/carts/${cart_id}/line-items`
|
||||
return this.client.request("POST", path, payload)
|
||||
}
|
||||
@@ -34,7 +34,7 @@ class LineItemsResource extends BaseResource {
|
||||
cart_id: string,
|
||||
line_id: string,
|
||||
payload: StorePostCartsCartLineItemsItemReq
|
||||
): AxiosPromise<StoreCartsCartRes> {
|
||||
): AxiosPromise<StoreCartsRes> {
|
||||
const path = `/store/carts/${cart_id}/line-items/${line_id}`
|
||||
return this.client.request("POST", path, payload)
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ class OrdersResource extends BaseResource {
|
||||
val = value.join(",")
|
||||
}
|
||||
|
||||
return `${key}=${encodeURIComponent(val)}`
|
||||
return `${key}=${encodeURIComponent(val as string)}`
|
||||
})
|
||||
path = `/store/orders?${queryString.join("&")}`
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
0
packages/medusa/cli.js
Normal file → Executable file
0
packages/medusa/cli.js
Normal file → Executable file
Reference in New Issue
Block a user