New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@plasmicapp/data-sources

Package Overview
Dependencies
Maintainers
0
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plasmicapp/data-sources - npm Package Compare versions

Comparing version 0.1.173 to 0.1.174

24

./dist/index.js

@@ -265,2 +265,10 @@ "use strict";

}
function getConfig(key, defaultValue) {
var _a, _b;
if (typeof globalThis === "undefined") {
return defaultValue;
} else {
return (_b = (_a = globalThis.__PLASMIC__) == null ? void 0 : _a[key]) != null ? _b : defaultValue;
}
}

@@ -292,3 +300,3 @@ // src/executor.tsx

return __async(this, null, function* () {
const func = getConfig(
const func = getConfig2(
"__PLASMIC_EXECUTE_DATA_OP",

@@ -311,3 +319,3 @@ _executePlasmicDataOp

}
const host = getConfig("__PLASMIC_DATA_HOST", DEFAULT_HOST);
const host = getConfig2("__PLASMIC_DATA_HOST", DEFAULT_HOST);
const url = `${host}/api/v1/server-data/sources/${op.sourceId}/execute`;

@@ -334,3 +342,3 @@ const resp = yield (0, import_isomorphic_unfetch.default)(url, {

}
function getConfig(key, defaultValue) {
function getConfig2(key, defaultValue) {
var _a;

@@ -727,4 +735,12 @@ if (typeof globalThis === "undefined") {

const key = !resolvedParams || isPlasmicUndefinedDataErrorPromise(resolvedParams) ? null : makeQueryCacheKey(serverQuery.id, resolvedParams);
const wrapStudioCache = getConfig(
"EXECUTE_SERVER_QUERY",
(_, fn, ...args) => fn(...args)
);
const fetcher = (params) => {
return (0, import_query4.wrapLoadingFetcher)(serverQuery.fn)(...params);
return (0, import_query4.wrapLoadingFetcher)(wrapStudioCache)(
serverQuery.id,
serverQuery.fn,
...params
);
};

@@ -731,0 +747,0 @@ const resultMapper = (result) => {

@@ -224,2 +224,10 @@ var __defProp = Object.defineProperty;

}
function getConfig(key, defaultValue) {
var _a, _b;
if (typeof globalThis === "undefined") {
return defaultValue;
} else {
return (_b = (_a = globalThis.__PLASMIC__) == null ? void 0 : _a[key]) != null ? _b : defaultValue;
}
}

@@ -251,3 +259,3 @@ // src/executor.tsx

return __async(this, null, function* () {
const func = getConfig(
const func = getConfig2(
"__PLASMIC_EXECUTE_DATA_OP",

@@ -270,3 +278,3 @@ _executePlasmicDataOp

}
const host = getConfig("__PLASMIC_DATA_HOST", DEFAULT_HOST);
const host = getConfig2("__PLASMIC_DATA_HOST", DEFAULT_HOST);
const url = `${host}/api/v1/server-data/sources/${op.sourceId}/execute`;

@@ -293,3 +301,3 @@ const resp = yield fetch(url, {

}
function getConfig(key, defaultValue) {
function getConfig2(key, defaultValue) {
var _a;

@@ -688,4 +696,12 @@ if (typeof globalThis === "undefined") {

const key = !resolvedParams || isPlasmicUndefinedDataErrorPromise(resolvedParams) ? null : makeQueryCacheKey(serverQuery.id, resolvedParams);
const wrapStudioCache = getConfig(
"EXECUTE_SERVER_QUERY",
(_, fn, ...args) => fn(...args)
);
const fetcher = (params) => {
return wrapLoadingFetcher2(serverQuery.fn)(...params);
return wrapLoadingFetcher2(wrapStudioCache)(
serverQuery.id,
serverQuery.fn,
...params
);
};

@@ -692,0 +708,0 @@ const resultMapper = (result) => {

@@ -265,2 +265,10 @@ "use strict";

}
function getConfig(key, defaultValue) {
var _a, _b;
if (typeof globalThis === "undefined") {
return defaultValue;
} else {
return (_b = (_a = globalThis.__PLASMIC__) == null ? void 0 : _a[key]) != null ? _b : defaultValue;
}
}

@@ -292,3 +300,3 @@ // src/executor.tsx

return __async(this, null, function* () {
const func = getConfig(
const func = getConfig2(
"__PLASMIC_EXECUTE_DATA_OP",

@@ -311,3 +319,3 @@ _executePlasmicDataOp

}
const host = getConfig("__PLASMIC_DATA_HOST", DEFAULT_HOST);
const host = getConfig2("__PLASMIC_DATA_HOST", DEFAULT_HOST);
const url = `${host}/api/v1/server-data/sources/${op.sourceId}/execute`;

@@ -334,3 +342,3 @@ const resp = yield (0, import_isomorphic_unfetch.default)(url, {

}
function getConfig(key, defaultValue) {
function getConfig2(key, defaultValue) {
var _a;

@@ -727,4 +735,12 @@ if (typeof globalThis === "undefined") {

const key = !resolvedParams || isPlasmicUndefinedDataErrorPromise(resolvedParams) ? null : makeQueryCacheKey(serverQuery.id, resolvedParams);
const wrapStudioCache = getConfig(
"EXECUTE_SERVER_QUERY",
(_, fn, ...args) => fn(...args)
);
const fetcher = (params) => {
return (0, import_query4.wrapLoadingFetcher)(serverQuery.fn)(...params);
return (0, import_query4.wrapLoadingFetcher)(wrapStudioCache)(
serverQuery.id,
serverQuery.fn,
...params
);
};

@@ -731,0 +747,0 @@ const resultMapper = (result) => {

4

package.json
{
"version": "0.1.173",
"version": "0.1.174",
"license": "MIT",

@@ -58,3 +58,3 @@ "types": "./dist/index.d.ts",

},
"gitHead": "c482864587b4c85076159728edf351b79372050a"
"gitHead": "bd4d46872dbcd86b76ec817b6439c57056475fa8"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc