Socket
Socket
Sign inDemoInstall

@alicloud/tea-util

Package Overview
Dependencies
Maintainers
5
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alicloud/tea-util - npm Package Compare versions

Comparing version 1.4.6 to 1.4.7

3

ChangeLog.txt

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

2023-06-28 Version: 1.4.7
1. Support static method `assertAsReadable()`
2023-06-26 Version: 1.4.6

@@ -2,0 +5,0 @@ 1. Support static method `assertAsInteger()`

@@ -85,2 +85,7 @@ /// <reference types="node" />

}[];
/**
* Assert a value, if it is a readable, return it, otherwise throws
* @return the readable value
*/
static assertAsReadable(value: any): Readable;
}

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

exports.RuntimeOptions = void 0;
const stream_1 = require("stream");
const $tea = __importStar(require("@alicloud/tea-typescript"));

@@ -269,4 +270,14 @@ const kitx = __importStar(require("kitx"));

}
/**
* Assert a value, if it is a readable, return it, otherwise throws
* @return the readable value
*/
static assertAsReadable(value) {
if (value instanceof stream_1.Readable) {
return value;
}
throw new Error(`The value is not a readable`);
}
}
exports.default = Client;
//# sourceMappingURL=client.js.map

2

package.json
{
"name": "@alicloud/tea-util",
"version": "1.4.6",
"version": "1.4.7",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/client.js",

@@ -305,4 +305,15 @@ import { Readable } from 'stream';

}
/**
* Assert a value, if it is a readable, return it, otherwise throws
* @return the readable value
*/
static assertAsReadable(value: any): Readable {
if (value instanceof Readable) {
return value;
}
throw new Error(`The value is not a readable`);
}
}

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