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

@apimatic/convert-to-stream

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apimatic/convert-to-stream - npm Package Compare versions

Comparing version 0.1.0 to 0.1.2

CHANGELOG.md

11

es/convertToStream.js
function convertToStream(content) {
if (typeof content !== 'string') {
return content;
} // ref: https://stackoverflow.com/a/22085851
var rs = new (require('stream').Readable)(); // tslint:disable-next-line:no-empty
}
// ref: https://stackoverflow.com/a/22085851
var rs = new (require('stream').Readable)();
// tslint:disable-next-line:no-empty
rs._read = function () {};
rs.push(content);

@@ -15,3 +13,2 @@ rs.push(null);

}
export { convertToStream };

@@ -0,0 +0,0 @@ const { jest: lernaAliases } = require('lerna-alias');

/// <reference types="node" />
export declare function convertToStream(content: string | Blob | NodeJS.ReadableStream): Blob | NodeJS.ReadableStream;
//# sourceMappingURL=convertToBlob.d.ts.map

@@ -0,0 +0,0 @@ "use strict";

/// <reference types="node" />
export declare function convertToStream(content: string | Blob | NodeJS.ReadableStream): Blob | NodeJS.ReadableStream;
//# sourceMappingURL=convertToStream.d.ts.map

@@ -0,0 +0,0 @@ "use strict";

export * from './convertToStream';
//# sourceMappingURL=index.d.ts.map

@@ -0,0 +0,0 @@ "use strict";

{
"name": "@apimatic/convert-to-stream",
"version": "0.1.0",
"version": "0.1.2",
"description": "converts the content to stream",

@@ -28,4 +28,4 @@ "main": "lib/index.js",

"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.10.5",
"@babel/cli": "^7.21.5",
"@babel/core": "^7.22.1",
"@types/jest": "^27.4.1",

@@ -40,3 +40,4 @@ "@types/node": "^17.0.29",

"./lib/convertToStream.js": "./lib/convertToBlob.js"
}
}
},
"gitHead": "43e7ca2560f262b85c1c6d15f5f01d00c2b43b37"
}

@@ -0,0 +0,0 @@ import typescript from 'rollup-plugin-typescript2';

@@ -0,0 +0,0 @@ {

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