@effection/fetch
Advanced tools
Comparing version 0.0.1-a07181e to 0.0.1-a24314c
import { Operation } from 'effection'; | ||
import { AbortController, RequestInfo, RequestInit, Response } from './native-fetch'; | ||
export { AbortController, RequestInfo, RequestInit, Response }; | ||
export declare function fetch(resource: RequestInfo, init?: RequestInit): Operation<Response>; |
@@ -1,1 +0,2 @@ | ||
export { AbortController, RequestInfo, RequestInit, Response, fetch } from './fetch'; | ||
export { AbortController } from 'abort-controller'; | ||
export { fetch } from './fetch'; |
@@ -1,7 +0,8 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var fetch_1 = require("./fetch"); | ||
Object.defineProperty(exports, "AbortController", { enumerable: true, get: function () { return fetch_1.AbortController; } }); | ||
Object.defineProperty(exports, "Response", { enumerable: true, get: function () { return fetch_1.Response; } }); | ||
Object.defineProperty(exports, "fetch", { enumerable: true, get: function () { return fetch_1.fetch; } }); | ||
//# sourceMappingURL=index.js.map | ||
'use strict' | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./fetch.cjs.production.min.js') | ||
} else { | ||
module.exports = require('./fetch.cjs.development.js') | ||
} |
{ | ||
"name": "@effection/fetch", | ||
"version": "0.0.1-a07181e", | ||
"version": "0.0.1-a24314c", | ||
"description": "Fetch operation for Effection", | ||
@@ -12,13 +12,19 @@ "main": "dist/index.js", | ||
"dist/*", | ||
"README.md" | ||
"README.md", | ||
"src" | ||
], | ||
"scripts": { | ||
"lint": "eslint '{src,test}/**/*.ts'", | ||
"prepack": "tsc --outdir dist --declaration --sourcemap" | ||
"prepack": "tsdx build --tsconfig tsconfig.dist.json", | ||
"test": "mocha -r ts-node/register test/**/*.test.ts", | ||
"mocha": "mocha -r ts-node/register" | ||
}, | ||
"devDependencies": { | ||
"@frontside/tsconfig": "^0.0.1", | ||
"@types/express": "4.17.6", | ||
"@types/node": "^13.13.4", | ||
"expect": "^25.4.0", | ||
"mocha": "^7.1.1" | ||
"express": "4.17.1", | ||
"mocha": "7.2.0", | ||
"ts-node": "8.10.2", | ||
"tsdx": "0.13.2" | ||
}, | ||
@@ -25,0 +31,0 @@ "peerDependencies": { |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
6304
13
67
7
3
2