Skip to content

Commit 2810211

Browse files
Releasing version 2.70.2
Releasing version 2.70.2
2 parents ff26c00 + 40cf749 commit 2810211

File tree

222 files changed

+2391
-370
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+2391
-370
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions

examples/typescript/objectstorage.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import common = require("oci-common");
2020
import st = require("stream");
2121
import { createReadStream, statSync } from "fs";
2222
import { NodeFSBlob } from "oci-objectstorage";
23+
// If using Node JS version >= 18, import the following package for working with streams
24+
// import consumers from 'stream/consumers';
2325

2426
const provider: common.ConfigFileAuthenticationDetailsProvider = new common.ConfigFileAuthenticationDetailsProvider();
2527
const args = process.argv.slice(2);
@@ -114,13 +116,20 @@ const client = new os.ObjectStorageClient({ authenticationDetailsProvider: provi
114116
}
115117
})();
116118

117-
function compareStreams(stream1: st.Readable, stream2: st.Readable): boolean {
119+
function compareStreams(stream1: any, stream2: any): boolean {
118120
return streamToString(stream1) === streamToString(stream2);
119121
}
122+
// When using NodeJS version >= 18, use the following definition for the function
123+
/*
124+
async function streamToString(stream: any) {
125+
const data = await consumers.buffer(getObjectResponse.value as NodeJS.ReadableStream).toString("utf8");
126+
return data;
127+
}
128+
*/
120129

121-
function streamToString(stream: st.Readable) {
130+
function streamToString(stream: any) {
122131
let output = "";
123-
stream.on("data", function(data) {
132+
stream.on("data", function(data: any) {
124133
output += data.toString();
125134
});
126135
stream.on("end", function() {

lib/accessgovernancecp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-accessgovernancecp",
3-
"version": "2.70.1",
3+
"version": "2.70.2",
44
"description": "OCI NodeJS client for Access Governance Cp Service",
55
"repository": {
66
"type": "git",

lib/adm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-adm",
3-
"version": "2.70.1",
3+
"version": "2.70.2",
44
"description": "OCI NodeJS client for Adm Service",
55
"repository": {
66
"type": "git",

lib/aianomalydetection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-aianomalydetection",
3-
"version": "2.70.1",
3+
"version": "2.70.2",
44
"description": "OCI NodeJS client for Ai Anomaly Detection Service",
55
"repository": {
66
"type": "git",

lib/aidocument/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-aidocument",
3-
"version": "2.70.1",
3+
"version": "2.70.2",
44
"description": "OCI NodeJS client for Ai Document Service",
55
"repository": {
66
"type": "git",

lib/ailanguage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-ailanguage",
3-
"version": "2.70.1",
3+
"version": "2.70.2",
44
"description": "OCI NodeJS client for Ai Language Service",
55
"repository": {
66
"type": "git",

lib/aispeech/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-aispeech",
3-
"version": "2.70.1",
3+
"version": "2.70.2",
44
"description": "OCI NodeJS client for Ai Speech Service",
55
"repository": {
66
"type": "git",

lib/aivision/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-aivision",
3-
"version": "2.70.1",
3+
"version": "2.70.2",
44
"description": "OCI NodeJS client for Ai Vision Service",
55
"repository": {
66
"type": "git",

lib/analytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-analytics",
3-
"version": "2.70.1",
3+
"version": "2.70.2",
44
"description": "OCI NodeJS client for Analytics Service",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)