New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

simplehttp2server

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplehttp2server - npm Package Compare versions

Comparing version 4.0.1 to 5.0.0

5

index.js

@@ -1,2 +0,3 @@

'use strict';
module.exports = require('./lib').path();
import lib from './lib/index.js';
export default lib.path();

16

lib/index.js

@@ -1,5 +0,6 @@

'use strict';
const path = require('path');
const BinWrapper = require('bin-wrapper');
const suffix = require('./suffix.js');
import path from 'node:path';
import process from 'node:process';
import {fileURLToPath} from 'node:url';
import BinWrapper from 'bin-wrapper';
import suffix from './suffix.js';

@@ -9,6 +10,9 @@ const url = 'https://github.com/GoogleChromeLabs/simplehttp2server/releases/download/3.1.3/';

const filename = `simplehttp2server${suffix()}${extension}`;
const currentDirectory = path.dirname(fileURLToPath(import.meta.url));
module.exports = new BinWrapper()
const index = new BinWrapper()
.src(`${url}${filename}`)
.dest(path.resolve(__dirname, '../vendor/'))
.dest(path.resolve(currentDirectory, '..', 'vendor'))
.use(filename);
export default index;

@@ -1,2 +0,3 @@

'use strict';
require('.').findExisting();
import index from './index.js';
index.findExisting();

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

module.exports = () => {
import process from 'node:process';
export default function suffix() {
switch (process.platform) {

@@ -20,2 +22,2 @@ case 'darwin':

}
};
}
{
"name": "simplehttp2server",
"version": "4.0.1",
"version": "5.0.0",
"description": "simplehttp2server wrapper that makes it seamlessly available as a local dependency",

@@ -13,4 +13,5 @@ "license": "MIT",

"engines": {
"node": ">=10"
"node": ">=12.20"
},
"type": "module",
"scripts": {

@@ -38,6 +39,6 @@ "postinstall": "node lib/install.js",

"devDependencies": {
"ava": "^3.8.0",
"execa": "^4.0.0",
"tempy": "^0.5.0",
"xo": "^0.30.0"
"ava": "^3.15.0",
"execa": "^5.1.1",
"tempy": "^2.0.0",
"xo": "^0.44.0"
},

@@ -44,0 +45,0 @@ "xo": {

@@ -1,2 +0,2 @@

# simplehttp2server [![Build Status](https://travis-ci.org/1000ch/simplehttp2server.svg?branch=master)](https://travis-ci.org/1000ch/simplehttp2server)
# simplehttp2server ![GitHub Actions Status](https://github.com/1000ch/simplehttp2server/workflows/test/badge.svg?branch=master)

@@ -16,4 +16,4 @@ > [simplehttp2server](https://github.com/GoogleChromeLabs/simplehttp2server) serves the current directory on an HTTP/2.0 capable server. This server is for development purposes only.

```js
const {execFile} = require('child_process');
const simplehttp2server = require('simplehttp2server');
import {execFile} from 'child_process';
import simplehttp2server from 'simplehttp2server';

@@ -20,0 +20,0 @@ execFile(simplehttp2server, err => {

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