Comparing version 0.6.38 to 0.7.0
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" |
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 2 instances in 1 package
130046
4
51
3171
5
- Removedpino@*
- Removedwakefile@*
- Removedatomic-sleep@1.0.0(transitive)
- Removedfast-redact@3.5.0(transitive)
- Removedon-exit-leak-free@2.1.2(transitive)
- Removedpino@9.6.0(transitive)
- Removedpino-abstract-transport@2.0.0(transitive)
- Removedpino-std-serializers@7.0.0(transitive)
- Removedprocess-warning@4.0.1(transitive)
- Removedquick-format-unescaped@4.0.4(transitive)
- Removedreal-require@0.2.0(transitive)
- Removedsafe-stable-stringify@2.5.0(transitive)
- Removedsonic-boom@4.2.0(transitive)
- Removedsplit2@4.2.0(transitive)
- Removedthread-stream@3.1.0(transitive)
- Removedwakefile@0.5.1(transitive)