Socket
Socket
Sign inDemoInstall

aws-crt

Package Overview
Dependencies
Maintainers
4
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-crt - npm Package Compare versions

Comparing version 1.9.7 to 1.9.8

1

dist/native/mqtt.js

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

catch (e) {
this.close();
reject(e);

@@ -278,0 +277,0 @@ }

10

package.json
{
"name": "aws-crt",
"version": "1.9.7",
"version": "1.9.8",
"description": "NodeJS/browser bindings to the aws-c-* libraries",

@@ -28,3 +28,3 @@ "homepage": "https://github.com/awslabs/aws-crt-nodejs",

"@types/crypto-js": "^3.1.43",
"@types/jest": "^26.0.20",
"@types/jest": "^27.0.1",
"@types/node": "^10.17.54",

@@ -35,7 +35,7 @@ "@types/puppeteer": "^5.4.3",

"aws-sdk": "^2.848.0",
"jest": "^26.6.3",
"jest": "^27.2.1",
"jest-puppeteer": "^5.0.4",
"jest-runtime": "^26.6.3",
"jest-runtime": "^27.2.1",
"puppeteer": "^3.3.0",
"ts-jest": "^26.5.1",
"ts-jest": "^27.0.5",
"typedoc": "^0.17.8",

@@ -42,0 +42,0 @@ "typescript": "^3.9.9",

@@ -14,2 +14,26 @@ /**

const tar = require('tar');
function rmRecursive(rmPath) {
let rmBasePath = path.basename(rmPath);
if (rmBasePath == "." || rmBasePath == "..") {
throw new Error("\".\" and \"..\" may not be removed");
}
var files = [];
if (fs.existsSync(rmPath)) {
if (fs.lstatSync(rmPath).isDirectory()) {
files = fs.readdirSync(rmPath);
files.forEach(function (file,) {
var curPath = rmPath + "/" + file;
if (fs.lstatSync(curPath).isDirectory()) {
rmRecursive(curPath);
} else {
fs.unlinkSync(curPath);
}
});
fs.rmdirSync(rmPath);
}
else {
fs.unlinkSync(rmPath);
}
}
};

@@ -108,3 +132,3 @@ function downloadFile(fileUrl, outputLocationPath) {

//teardown the local source code
fs.rmdirSync(nativeSourceDir, { recursive: true });
rmRecursive(nativeSourceDir);
}

@@ -124,7 +148,7 @@ fs.mkdirSync(tmpPath);

// Clean up temp directory
fs.rmdirSync(tmpPath, { recursive: true });
rmRecursive(tmpPath);
// Kick off local build
await buildLocally();
// Local build finished successfully, we don't need source anymore.
fs.rmdirSync(nativeSourceDir, { recursive: true });
rmRecursive(nativeSourceDir);
}

@@ -151,4 +175,4 @@

// teardown tmpPath and source directory on failure
fs.rmdirSync(tmpPath, { recursive: true });
fs.rmdirSync(nativeSourceDir, { recursive: true });
rmRecursive(tmpPath);
rmRecursive(nativeSourceDir);
throw err;

@@ -155,0 +179,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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