cacheability
Advanced tools
Comparing version 0.0.46 to 0.0.47
@@ -1,2 +0,1 @@ | ||
import "isomorphic-fetch"; | ||
import { CacheControl, CacheHeaders, Metadata } from "./types"; | ||
@@ -3,0 +2,0 @@ export declare type CacheabilityCacheControl = CacheControl; |
@@ -17,6 +17,8 @@ "use strict"; | ||
require("isomorphic-fetch"); | ||
const lodash_1 = require("lodash"); | ||
if (!process.env.WEB_ENV) { | ||
require("isomorphic-fetch"); | ||
} | ||
let Cacheability = class Cacheability { | ||
@@ -23,0 +25,0 @@ static _getDirectives(cacheControl) { |
@@ -15,3 +15,6 @@ import "core-js/modules/es6.symbol"; | ||
import "isomorphic-fetch"; | ||
if (!process.env.WEB_ENV) { | ||
require("isomorphic-fetch"); | ||
} | ||
let Cacheability = class Cacheability { | ||
@@ -18,0 +21,0 @@ static _getDirectives(cacheControl) { |
{ | ||
"name": "cacheability", | ||
"version": "0.0.46", | ||
"version": "0.0.47", | ||
"description": "A utility class to parse, store and print http cache headers.", | ||
@@ -28,9 +28,10 @@ "author": "Dylan Aubrey <dylanaubrey@gmail.com>", | ||
"scripts": { | ||
"analyze:bundle": "webpack-bundle-analyzer bundle/stats.json --mode static --report bundle/report.html --no-open", | ||
"analyze:bundle": "webpack-bundle-analyzer bundle/stats.json lib/umd --mode static --report bundle/report.html --no-open", | ||
"build": "npm run clean && npm run test && npm run compile && npm run analyze:bundle", | ||
"clean": "gulp clean", | ||
"compile": "npm run compile:main && npm run compile:module && npm run compile:browser", | ||
"compile": "npm run compile:main && npm run compile:module && npm run compile:browser && npm run compile:umd", | ||
"compile:browser": "cross-env BABEL_ENV=browser gulp browser", | ||
"compile:main": "cross-env BABEL_ENV=main gulp main", | ||
"compile:module": "cross-env BABEL_ENV=module gulp module", | ||
"compile:umd": "cross-env BABEL_ENV=browser gulp umd", | ||
"debug:web": "cross-env BABEL_ENV=debug karma start --no-single-run --browsers Chrome", | ||
@@ -37,0 +38,0 @@ "lint": "gulp lint", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
469419
15
220
2760
3
2