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

sipware

Package Overview
Dependencies
Maintainers
1
Versions
263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sipware - npm Package Compare versions

Comparing version 0.6.38 to 0.7.0

index.ts

126

index.js

@@ -1,35 +0,93 @@

const Router = require('./lib/router')
const Ua = require('./lib/ua')
const Server = require('./lib/server')
const Client = require('./lib/client')
const Protocol = require('./lib/protocol')
const Headers = require('./lib/headers')
const Transaction = require('./lib/transaction')
const Utils = require('./lib/utils')
module.exports = {
createRouter: (...opts) => {
return new Router(...opts);
},
createUa: (...opts) => {
return new Ua(...opts);
},
createServer: (...opts) => {
return new Server(...opts);
},
createClient: (...opts) => {
var arr = [...opts];
return new Client(...opts);
},
getProtocol: (...opts) => {
return new Protocol(...opts);
},
utils: Utils,
Router: Router,
Server: Server,
Client: Client,
Headers: Headers,
Protocol: Protocol,
Transaction: Transaction,
Ua: Ua,
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
var Router = __importStar(require("./lib/router"));
var Ua = __importStar(require("./lib/ua"));
var Server = __importStar(require("./lib/server"));
var Client = __importStar(require("./lib/client"));
var Protocol = __importStar(require("./lib/protocol"));
var Headers = __importStar(require("./lib/headers"));
var Transaction = __importStar(require("./lib/transaction"));
var Utils = __importStar(require("./lib/utils"));
function createRouter() {
var opts = [];
for (var _i = 0; _i < arguments.length; _i++) {
opts[_i] = arguments[_i];
}
return new (Router.bind.apply(Router, __spreadArray([void 0], opts, false)))();
}
function createUa() {
var opts = [];
for (var _i = 0; _i < arguments.length; _i++) {
opts[_i] = arguments[_i];
}
return new (Ua.bind.apply(Ua, __spreadArray([void 0], opts, false)))();
}
function createServer() {
var opts = [];
for (var _i = 0; _i < arguments.length; _i++) {
opts[_i] = arguments[_i];
}
return new (Server.bind.apply(Server, __spreadArray([void 0], opts, false)))();
}
function createClient() {
var opts = [];
for (var _i = 0; _i < arguments.length; _i++) {
opts[_i] = arguments[_i];
}
var arr = __spreadArray([], opts, true);
return new (Client.bind.apply(Client, __spreadArray([void 0], opts, false)))();
}
function getProtocol() {
var opts = [];
for (var _i = 0; _i < arguments.length; _i++) {
opts[_i] = arguments[_i];
}
return new (Protocol.bind.apply(Protocol, __spreadArray([void 0], opts, false)))();
}
exports.default = {
Ua: Ua,
Router: Router,
Server: Server,
Client: Client,
Headers: Headers,
Protocol: Protocol,
Transaction: Transaction,
createRouter: createRouter,
createUa: createUa,
createServer: createServer,
createClient: createClient,
getProtocol: getProtocol,
Utils: Utils,
};

@@ -38,10 +38,8 @@ {

"author": "Ivan Popovski",
"bundleDependencies": false,
"bundleDependencies": [],
"dependencies": {
"debug": "*",
"pino": "*",
"wakefile": "*",
"email-addresses": "*",
"mailparser": "0.x.x",
"libmime": "*"
"libmime": "*",
"mailparser": "0.x.x"
},

@@ -59,2 +57,3 @@ "deprecated": false,

"index.js",
"index.ts",
"LICENSE",

@@ -68,4 +67,3 @@ "lib/",

"name": "sipware",
"optionalDependencies": {},
"version": "0.6.38",
"version": "0.7.0",
"directories": {

@@ -72,0 +70,0 @@ "lib": "lib"

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