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

@contactlab/appy

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contactlab/appy - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

_es6/response.js

3

_es6/combinators/decoder.js

@@ -11,2 +11,3 @@ /**

import { toResponseError } from '../request';
import { cloneResponse } from '../response';
import { withHeaders } from './headers';

@@ -24,3 +25,3 @@ /**

export function withDecoder(decoder) {
return req => pipe(req, withHeaders({ Accept: 'application/json' }), RTE.chain(resp => RTE.fromEither(pipe(parseResponse(resp), E.chain(decoder), E.bimap((e) => toResponseError(e, resp.response), data => (Object.assign(Object.assign({}, resp), { data })))))));
return req => pipe(req, withHeaders({ Accept: 'application/json' }), RTE.chain(resp => RTE.fromEither(pipe(parseResponse(resp), E.chain(decoder), E.bimap((e) => toResponseError(e, cloneResponse(resp.response, resp.data)), data => (Object.assign(Object.assign({}, resp), { data })))))));
}

@@ -27,0 +28,0 @@ /**

# Changelog
## [4.0.1](https://github.com/contactlab/appy/releases/tag/4.0.1)
**Bug Fix:**
- `[internal]` Response in ResponseError of withDecoder combinator cannot be consumed ([#360](https://github.com/contactlab/appy/issues/360))
**Dependencies:**
- [Security] Bump node-notifier from 8.0.0 to 8.0.1 (#347)
## [4.0.0](https://github.com/contactlab/appy/releases/tag/4.0.0)

@@ -4,0 +14,0 @@

@@ -44,2 +44,3 @@ "use strict";

var request_1 = require("../request");
var response_1 = require("../response");
var headers_1 = require("./headers");

@@ -59,3 +60,5 @@ /**

return function_1.pipe(req, headers_1.withHeaders({ Accept: 'application/json' }), RTE.chain(function (resp) {
return RTE.fromEither(function_1.pipe(parseResponse(resp), E.chain(decoder), E.bimap(function (e) { return request_1.toResponseError(e, resp.response); }, function (data) { return (__assign(__assign({}, resp), { data: data })); })));
return RTE.fromEither(function_1.pipe(parseResponse(resp), E.chain(decoder), E.bimap(function (e) {
return request_1.toResponseError(e, response_1.cloneResponse(resp.response, resp.data));
}, function (data) { return (__assign(__assign({}, resp), { data: data })); })));
}));

@@ -62,0 +65,0 @@ };

@@ -1,1 +0,1 @@

{"name":"@contactlab/appy","version":"4.0.0","description":"A functional wrapper around Fetch API","main":"./index.js","module":"./_es6/index.js","typings":"./index.d.ts","sideEffects":false,"author":"Contactlab","license":"Apache-2.0","homepage":"https://contactlab.github.io/appy","bugs":"https://github.com/contactlab/appy/issues","repository":"contactlab/appy","keywords":["contactlab","appy","fetch","fp","fp-ts","typescript"],"engines":{"node":">= 12.0","npm":">= 6.0"},"peerDependencies":{"fp-ts":"^2.8.0"},"devDependencies":{"@types/fetch-mock":"^7.3.3","@types/jest":"^26.0.18","@types/node":"^12.19.8","abort-controller":"^3.0.0","cross-fetch":"^3.0.6","docs-ts":"^0.5.3","eslint":"^7.15.0","eslint-config-contactlab":"^6.0.0","eslint-config-prettier":"^7.0.0","fetch-mock":"^9.11.0","fp-ts":"^2.8.0","husky":"^4.3.5","io-ts":"^2.2.13","jest":"^26.6.3","prettier":"^2.2.1","pretty-quick":"^3.1.0","ts-jest":"^26.4.4","ts-node":"^9.1.1","typescript":"^4.1.2"}}
{"name":"@contactlab/appy","version":"4.0.1","description":"A functional wrapper around Fetch API","main":"./index.js","module":"./_es6/index.js","typings":"./index.d.ts","sideEffects":false,"author":"Contactlab","license":"Apache-2.0","homepage":"https://contactlab.github.io/appy","bugs":"https://github.com/contactlab/appy/issues","repository":"contactlab/appy","keywords":["contactlab","appy","fetch","fp","fp-ts","typescript"],"engines":{"node":">= 12.0","npm":">= 6.0"},"peerDependencies":{"fp-ts":"^2.8.0"},"devDependencies":{"@types/fetch-mock":"^7.3.3","@types/jest":"^26.0.18","@types/node":"^12.19.8","abort-controller":"^3.0.0","cross-fetch":"^3.0.6","docs-ts":"^0.5.3","eslint":"^7.15.0","eslint-config-contactlab":"^6.0.0","eslint-config-prettier":"^7.0.0","fetch-mock":"^9.11.0","fp-ts":"^2.8.0","husky":"^4.3.5","io-ts":"^2.2.13","jest":"^26.6.3","prettier":"^2.2.1","pretty-quick":"^3.1.0","ts-jest":"^26.4.4","ts-node":"^9.1.1","typescript":"^4.1.2"}}

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