@cardcore/util
Advanced tools
Comparing version 0.0.1-4a0572cd to 0.0.1-5d08a14a
@@ -6,2 +6,3 @@ "use strict"; | ||
}); | ||
exports.hashState = exports.Box = undefined; | ||
@@ -73,4 +74,17 @@ var _targetHelper = require("./target-helper"); | ||
}); | ||
exports.serverFetch = serverFetch; | ||
var _isomorphicFetch = require("isomorphic-fetch"); | ||
var _isomorphicFetch2 = _interopRequireDefault(_isomorphicFetch); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function serverFetch(url) { | ||
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
args[_key - 1] = arguments[_key]; | ||
} | ||
return _isomorphicFetch2.default.apply(undefined, ["" + url].concat(args)); | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@cardcore/util", | ||
"version": "0.0.1-4a0572cd", | ||
"version": "0.0.1-5d08a14a", | ||
"description": "various streamcards utilities", | ||
@@ -14,5 +14,7 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@streamplace/ssb-keys": "^7.0.16" | ||
"@streamplace/ssb-keys": "7.0.20", | ||
"isomorphic-fetch": "^2.2.1", | ||
"json-stable-stringify": "^1.0.1" | ||
}, | ||
"gitHead": "4a0572cd286ae86d011a80c5b81ac8fcfe50072b" | ||
"gitHead": "5d08a14a0991da4337e23f394863ba0ba271d235" | ||
} |
@@ -7,1 +7,6 @@ export * from "./target-helper"; | ||
export { default as hashState } from "./hash-state"; | ||
import fetch from "isomorphic-fetch"; | ||
export function serverFetch(url, ...args) { | ||
return fetch(`${url}`, ...args); | ||
} |
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
45791
797
3
1
+ Addedisomorphic-fetch@^2.2.1
+ Addedjson-stable-stringify@^1.0.1
+ Added@streamplace/ssb-keys@7.0.20(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisomorphic-fetch@2.2.1(transitive)
+ Addednode-fetch@1.7.3(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)
- Removed@streamplace/ssb-keys@7.0.21(transitive)
Updated@streamplace/ssb-keys@7.0.20