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

@curveball/kernel

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@curveball/kernel - npm Package Compare versions

Comparing version 0.21.2 to 1.0.0

dist/application.d.ts

23

package.json
{
"name": "@curveball/kernel",
"version": "0.21.2",
"version": "1.0.0",
"description": "Curveball is a framework writting in Typescript for Node.js",
"main": "cjs/index.js",
"type": "module",
"exports": {
"require": "./cjs/index.js",
"import": "./esm/index.js"
},
"exports": "./dist/index.js",
"scripts": {

@@ -26,4 +22,3 @@ "prepublishOnly": "make build",

"README.md",
"esm",
"cjs",
"dist",
"LICENSE",

@@ -53,11 +48,11 @@ "src"

"@types/node-fetch": "^2.5.8",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"chai": "^4.3.0",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"chai": "^5.0.0",
"eslint": "^8.6.0",
"mocha": "^10.0.0",
"node-fetch": "^2.6.7",
"node-fetch": "^3.3.2",
"nyc": "^15.1.0",
"ts-node": "^10.4.0",
"typescript": "^4.9.5"
"typescript": "^5.3.3"
},

@@ -77,3 +72,3 @@ "nyc": {

"engines": {
"node": ">=14.4"
"node": ">=18"
},

@@ -80,0 +75,0 @@ "mocha": {

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

import * as WebSocket from 'ws';
import WebSocket from 'ws';

@@ -3,0 +3,0 @@ import { Middleware } from './application.js';

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

import * as AcceptsImp from 'accepts';
import Accepts from 'accepts';
import * as http from 'node:http';

@@ -13,8 +13,2 @@ import { Readable } from 'node:stream';

/**
* We gotta do this ugly thing to make this work in CommonJS and ESM
*/
// @ts-expect-error https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/64233
const Accepts = AcceptsImp.default ?? AcceptsImp;
/**
* This interface represents an incoming server request.

@@ -157,3 +151,3 @@ */

// @ts-expect-error The types for the Accept package are probably not 100% correct for ESM.
const result = new Accepts(mockRequestObj as http.IncomingMessage).type(types) as string|false;

@@ -160,0 +154,0 @@ return result === false ? null : result;

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