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

fetch-har

Package Overview
Dependencies
Maintainers
10
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-har - npm Package Compare versions

Comparing version 8.1.0 to 8.1.1

6

CHANGELOG.md

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

## <small>8.1.1 (2022-07-27)</small>
* fix: swapping parse-data-url for @readme/data-urls (#307) ([a2306bd](https://github.com/readmeio/fetch-har/commit/a2306bd)), closes [#307](https://github.com/readmeio/fetch-har/issues/307)
## 8.1.0 (2022-07-26)

@@ -2,0 +8,0 @@

9

dist/index.js

@@ -13,8 +13,5 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
exports.__esModule = true;
var readable_stream_1 = require("readable-stream");
var parse_data_url_1 = __importDefault(require("parse-data-url"));
var data_urls_1 = require("@readme/data-urls");
if (!globalThis.Blob) {

@@ -224,3 +221,3 @@ try {

var paramBlob = void 0;
var parsed = (0, parse_data_url_1["default"])(param.value);
var parsed = (0, data_urls_1.parse)(param.value);
if (parsed) {

@@ -280,3 +277,3 @@ // If we were able to parse out this data URL we don't need to transform its data

if (opts.files) {
var parsed = (0, parse_data_url_1["default"])(request.postData.text);
var parsed = (0, data_urls_1.parse)(request.postData.text);
if (parsed) {

@@ -283,0 +280,0 @@ if ((parsed === null || parsed === void 0 ? void 0 : parsed.name) && parsed.name in opts.files) {

{
"name": "fetch-har",
"version": "8.1.0",
"version": "8.1.1",
"description": "Make a fetch request from a HAR definition",

@@ -33,4 +33,4 @@ "main": "dist/index.js",

"dependencies": {
"@readme/data-urls": "^1.0.0",
"@types/har-format": "^1.2.8",
"parse-data-url": "^4.0.1",
"readable-stream": "^3.6.0"

@@ -50,3 +50,2 @@ },

"@types/node": "^18.0.0",
"@types/parse-data-url": "^3.0.0",
"@types/readable-stream": "^2.3.13",

@@ -53,0 +52,0 @@ "chai": "^4.3.4",

import type { Har } from 'har-format';
import type { DataURL as npmDataURL } from '@readme/data-urls';
import { Readable } from 'readable-stream';
import parseDataUrl from 'parse-data-url';
import { parse as parseDataUrl } from '@readme/data-urls';

@@ -95,3 +96,3 @@ if (!globalThis.Blob) {

type DataURL = parseDataUrl.DataUrl & {
type DataURL = npmDataURL & {
// `parse-data-url` doesn't explicitly support `name` in data URLs but if it's there it'll be

@@ -98,0 +99,0 @@ // returned back to us.

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