@apimatic/convert-to-stream
Advanced tools
Comparing version 0.1.0 to 0.1.2
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
31314
27
1
121