@builder.io/plugin-commercelayer 0.1.2-0 → 0.1.3-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.
package/dist/plugin.system.js
CHANGED
|
@@ -146881,7 +146881,7 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
146881
146881
|
});
|
|
146882
146882
|
|
|
146883
146883
|
var name = "@builder.io/plugin-commercelayer";
|
|
146884
|
-
var version = "0.1.
|
|
146884
|
+
var version = "0.1.2";
|
|
146885
146885
|
var description = "Commerce Layer plugin for Builder.io";
|
|
146886
146886
|
var keywords = [
|
|
146887
146887
|
];
|
|
@@ -147213,7 +147213,7 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
147213
147213
|
const resources = await searchResources(type, search, token, baseEndpoint);
|
|
147214
147214
|
return resources.map((res) => transformResource(res, type));
|
|
147215
147215
|
},
|
|
147216
|
-
getRequestObject(id) {
|
|
147216
|
+
getRequestObject(id, resource) {
|
|
147217
147217
|
const token = cachedAuth?.token || auth.accessToken;
|
|
147218
147218
|
return {
|
|
147219
147219
|
"@type": "@builder.io/core:Request",
|
|
@@ -147228,6 +147228,7 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
147228
147228
|
[type]: id,
|
|
147229
147229
|
resourceType: type,
|
|
147230
147230
|
resourceId: id,
|
|
147231
|
+
...resource?.handle && { code: resource.handle },
|
|
147231
147232
|
pluginId: pkg.name
|
|
147232
147233
|
}
|
|
147233
147234
|
};
|