Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@swimlane/cosign

Package Overview
Dependencies
Maintainers
54
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swimlane/cosign - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

renovate.json

11

lib/cosign-runner.js

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

const archiver_1 = require("archiver");
const node_zlib_1 = require("node:zlib");
const binName = "cosign";

@@ -53,12 +52,10 @@ const modulePath = node_path_1.default.resolve(__dirname);

}
const archive = (0, archiver_1.create)("tar");
const gzip = (0, node_zlib_1.createGzip)();
const archive = (0, archiver_1.create)("tar", { gzip: true });
archive.glob("**", {
cwd: tempDir
});
archive
.pipe(gzip)
.pipe(writable)
.on("finish", resolve)
.on("error", reject);
archive.glob("**/*.*", {
cwd: tempDir
});
await archive.finalize();

@@ -65,0 +62,0 @@ });

{
"name": "@swimlane/cosign",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -26,2 +26,5 @@ "main": "./lib/index.js",

},
"publishConfig": {
"access": "public"
},
"bin": {

@@ -28,0 +31,0 @@ "cosign": "./node-modules/.bin/cosign"

@@ -45,3 +45,3 @@ const fs = require("fs-extra");

const binPath = path.join(modulePath, "..", "..", "node_modules", ".bin");
const binPath = path.join(modulePath, "..", "node_modules", ".bin");
const binFile = path.join(binPath, binName);

@@ -48,0 +48,0 @@

@@ -5,3 +5,2 @@ import path, { join, resolve } from "node:path";

import { create } from "archiver";
import { createGzip } from "node:zlib";
import { Writable } from "node:stream";

@@ -37,8 +36,9 @@

// const output = fs.createWriteStream(tarPath)
const archive = create("tar");
const gzip = createGzip();
const archive = create("tar", { gzip: true });
archive.glob("**", {
cwd: tempDir
});
archive
.pipe(gzip)
.pipe(writable)

@@ -48,9 +48,5 @@ .on("finish", resolve)

archive.glob("**/*.*", {
cwd: tempDir
});
await archive.finalize();
});
};

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