Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

@builder.io/sdk

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@builder.io/sdk - npm Package Compare versions

Comparing version 0.0.35 to 0.0.36

@@ -324,2 +324,6 @@ "use strict";

// }
var cachebust = exports.isIframe;
if (cachebust) {
queryParams.cachebuster = Date.now().toString();
}
var hasParams = Object.keys(queryParams).length > 0;

@@ -421,4 +425,4 @@ var host = this.getLocation().host === 'localhost:4205' ? 'http://localhost:5000' : 'https://builder.io';

// TODO: cachebust if bd.noCache in request, also perhaps if in iframe
if (options.cachebust) {
queryParams.t = Date.now().toString();
if (options.cachebust || exports.isIframe) {
queryParams.cachebuster = Date.now().toString();
}

@@ -425,0 +429,0 @@ var hasParams = Object.keys(queryParams).length > 0;

{
"name": "@builder.io/sdk",
"version": "0.0.35",
"version": "0.0.36",
"main": "dist/clients/js/index.js",

@@ -13,5 +13,2 @@ "types": "dist/clients/js/index.d.ts",

"@types/axios": "^0.14.0",
"@types/js-cookie": "^2.1.0",
"@types/json-stable-stringify": "^1.0.32",
"@types/node-fetch": "^1.6.7",
"@types/query-string": "^5.0.1",

@@ -30,2 +27,5 @@ "@types/ua-parser-js": "^0.7.32",

"devDependencies": {
"@types/js-cookie": "^2.1.0",
"@types/json-stable-stringify": "^1.0.32",
"@types/node-fetch": "^1.6.7",
"@types/lodash": "^4.14.99",

@@ -32,0 +32,0 @@ "@types/node": "^9.4.6",

@@ -440,2 +440,7 @@ import { sortBy, kebabCase, capitalize, omit, throttle } from 'lodash';

const cachebust = isIframe;
if (cachebust) {
queryParams.cachebuster = Date.now().toString();
}
const hasParams = Object.keys(queryParams).length > 0;

@@ -556,4 +561,4 @@

// TODO: cachebust if bd.noCache in request, also perhaps if in iframe
if (options.cachebust) {
queryParams.t = Date.now().toString();
if (options.cachebust || isIframe) {
queryParams.cachebuster = Date.now().toString();
}

@@ -560,0 +565,0 @@