@uniformdev/canvas-commercetools
Advanced tools
Comparing version 12.2.1-alpha.59 to 12.2.1-alpha.107
@@ -1,1 +0,1 @@ | ||
import{createLimitPolicy as C}from"@uniformdev/canvas";var c={expand:"masterData.current.categories[*]"},v=Object.freeze(["commercetoolsProduct","commercetoolsProductList"]);function L({apiRoot:e,projectKey:u,createQueryArgs:s,limitPolicy:r}){return{enhanceOne:async({parameter:t,parameterName:p,component:l,context:d})=>{var a;let o=[];if(i(t)?o.push(t.value):y(t)&&o.push(...t.value),o.length)try{let n=s&&(a=s({parameter:t,parameterName:p,component:l,defaultQueryArgs:c,context:d}))!=null?a:c,m=await e.withProjectKey({projectKey:u}).products().get({queryArgs:{where:"id in :ids","var.ids":o,...n}}).execute();return i(t)?m.body.results[0]:m.body.results}catch(n){throw new Error(`Failed loading commercetools entries ${t.value} ${n.toString()}`)}},limitPolicy:r!=null?r:C({throttle:!1})}}function i(e){return e.type==="commercetoolsProduct"&&typeof e.value=="string"}function y(e){return e.type==="commercetoolsProductList"&&Array.isArray(e.value)}export{v as CANVAS_COMMERCETOOLS_PARAMETER_TYPES,L as createCommercetoolsEnhancer}; | ||
import{createLimitPolicy as P}from"@uniformdev/canvas";var c={expand:"masterData.current.categories[*]"},O=Object.freeze(["commercetoolsProduct","commercetoolsProductList"]);function R({apiRoot:e,projectKey:u,createQueryArgs:s,limitPolicy:r}){return{enhanceOne:async({parameter:t,parameterName:p,component:l,context:d})=>{var a;let o=[];if(i(t)?o.push(t.value):f(t)&&o.push(...t.value),o.length)try{let n=s&&(a=s({parameter:t,parameterName:p,component:l,defaultQueryArgs:c,context:d}))!=null?a:c,m=await e.withProjectKey({projectKey:u}).products().get({queryArgs:{where:"id in :ids","var.ids":o,...n}}).execute();return i(t)?m.body.results[0]:m.body.results}catch(n){throw new Error(`Failed loading commercetools entries ${t.value} ${n.toString()}`)}},limitPolicy:r!=null?r:P({throttle:!1})}}function i(e){return e.type==="commercetoolsProduct"&&typeof e.value=="string"}function f(e){return e.type==="commercetoolsProductList"&&Array.isArray(e.value)}export{O as CANVAS_COMMERCETOOLS_PARAMETER_TYPES,R as createCommercetoolsEnhancer}; |
© 2021 Uniform Systems, Inc. All Rights Reserved. | ||
See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula |
{ | ||
"name": "@uniformdev/canvas-commercetools", | ||
"version": "12.2.1-alpha.59+ee5a4745", | ||
"version": "12.2.1-alpha.107+b30768d5", | ||
"description": "commercetools data enhancers for Uniform Canvas", | ||
@@ -28,3 +28,3 @@ "license": "SEE LICENSE IN LICENSE.txt", | ||
"dependencies": { | ||
"@uniformdev/canvas": "^12.2.1-alpha.59+ee5a4745" | ||
"@uniformdev/canvas": "^12.2.1-alpha.107+b30768d5" | ||
}, | ||
@@ -36,15 +36,15 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@commercetools/platform-sdk": "1.19.0", | ||
"@commercetools/platform-sdk": "1.20.0", | ||
"@commercetools/sdk-client": "2.1.2", | ||
"@commercetools/sdk-middleware-auth": "6.1.4", | ||
"@commercetools/sdk-middleware-auth": "6.2.0", | ||
"@types/jest": "27.0.3", | ||
"@types/node": "16.7.1", | ||
"eslint": "7.32.0", | ||
"@types/node": "16.11.18", | ||
"eslint": "8.4.1", | ||
"eslint-plugin-react": "7.27.1", | ||
"eslint-plugin-react-hooks": "4.3.0", | ||
"jest": "27.3.1", | ||
"jest": "27.4.5", | ||
"npm-run-all": "4.1.5", | ||
"rimraf": "3.0.2", | ||
"ts-jest": "27.0.7", | ||
"tsup": "5.7.2" | ||
"ts-jest": "27.1.1", | ||
"tsup": "5.11.10" | ||
}, | ||
@@ -57,3 +57,3 @@ "files": [ | ||
}, | ||
"gitHead": "ee5a4745535ac342d62ba2472e2a681c9867255b" | ||
"gitHead": "b30768d5d58d4c75b390274042724d50c1ee1041" | ||
} |
commercetools data enhancers for Uniform Canvas | ||
part of the [Uniform Platform](https://uniform.app). See our [documentation](https://docs.uniform.app) for more details. |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
6801