Socket
Socket
Sign inDemoInstall

dynamic-gcloud

Package Overview
Dependencies
198
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.27.0 to 0.27.1

39

lib/bigquery/table.js

@@ -841,3 +841,42 @@ /*!

};
Table.prototype.insertAll = function(rows, callback) {
var body = {
rows: arrify(rows).map(function(row) {
var rowObject = {};
// Use the stringified contents of the row as a unique insert ID.
var md5 = crypto.createHash('md5');
md5.update(JSON.stringify(row));
//rowObject.insertId = md5.digest('hex');
rowObject.json = row;
return rowObject;
})
};
this.request({
method: 'POST',
uri: '/insertAll',
json: body
}, function(err, resp) {
if (err) {
callback(err, null, resp);
return;
}
var failedToInsert = (resp.insertErrors || []).map(function(insertError) {
return {
errors: insertError.errors.map(function(error) {
return {
message: error.message,
reason: error.reason
};
}),
row: body.rows[insertError.index].json
};
});
callback(null, failedToInsert, resp);
});
};
/**

@@ -844,0 +883,0 @@ * Stream data into BigQuery one record at a time without running a load job.

2

package.json
{
"name": "dynamic-gcloud",
"version": "0.27.0",
"version": "0.27.1",
"author": "Google Inc.",

@@ -5,0 +5,0 @@ "description": "Google Cloud APIs Client Library for Node.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc