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

unenv

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unenv - npm Package Compare versions

Comparing version

to
0.2.3

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.2.3](https://github.com/unjs/unev/compare/v0.2.2...v0.2.3) (2021-04-23)
### Bug Fixes
* dual exports for node index ([e28374c](https://github.com/unjs/unev/commit/e28374c9b41bf33fd1651bffda8b7a747bf67c90))
### [0.2.2](https://github.com/unjs/unev/compare/v0.2.1...v0.2.2) (2021-04-21)

@@ -7,0 +14,0 @@

2

package.json
{
"name": "unenv",
"version": "0.2.2",
"version": "0.2.3",
"description": "",

@@ -5,0 +5,0 @@ "repository": "unjs/unev",

@@ -1,3 +0,76 @@

export { METHODS, STATUS_CODES } from './consts';
export { IncomingMessage } from './request';
export { ServerResponse } from './response';
import * as request from './request';
import * as response from './response';
export * from './consts';
export * from './request';
export * from './response';
declare const _default: {
ServerResponse: typeof response.ServerResponse;
IncomingMessage: typeof request.IncomingMessage;
METHODS: string[];
STATUS_CODES: {
100: string;
101: string;
102: string;
103: string;
200: string;
201: string;
202: string;
203: string;
204: string;
205: string;
206: string;
207: string;
208: string;
226: string;
300: string;
301: string;
302: string;
303: string;
304: string;
305: string;
307: string;
308: string;
400: string;
401: string;
402: string;
403: string;
404: string;
405: string;
406: string;
407: string;
408: string;
409: string;
410: string;
411: string;
412: string;
413: string;
414: string;
415: string;
416: string;
417: string;
418: string;
421: string;
422: string;
423: string;
424: string;
425: string;
426: string;
428: string;
429: string;
431: string;
451: string;
500: string;
501: string;
502: string;
503: string;
504: string;
505: string;
506: string;
507: string;
508: string;
509: string;
510: string;
511: string;
};
};
export default _default;

@@ -6,31 +6,55 @@ "use strict";

});
Object.defineProperty(exports, "METHODS", {
enumerable: true,
get: function () {
return _consts.METHODS;
}
var _exportNames = {};
exports.default = void 0;
var consts = _interopRequireWildcard(require("./consts"));
Object.keys(consts).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === consts[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return consts[key];
}
});
});
Object.defineProperty(exports, "STATUS_CODES", {
enumerable: true,
get: function () {
return _consts.STATUS_CODES;
}
var request = _interopRequireWildcard(require("./request"));
Object.keys(request).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === request[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return request[key];
}
});
});
Object.defineProperty(exports, "IncomingMessage", {
enumerable: true,
get: function () {
return _request.IncomingMessage;
}
var response = _interopRequireWildcard(require("./response"));
Object.keys(response).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === response[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return response[key];
}
});
});
Object.defineProperty(exports, "ServerResponse", {
enumerable: true,
get: function () {
return _response.ServerResponse;
}
});
var _consts = require("./consts");
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
var _request = require("./request");
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var _response = require("./response");
var _default = { ...consts,
...request,
...response
};
exports.default = _default;

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

export { Socket } from './socket';
import * as socket from './socket';
export * from './socket';
declare const _default: {
Socket: typeof socket.Socket;
};
export default _default;

@@ -6,9 +6,25 @@ "use strict";

});
Object.defineProperty(exports, "Socket", {
enumerable: true,
get: function () {
return _socket.Socket;
}
var _exportNames = {};
exports.default = void 0;
var socket = _interopRequireWildcard(require("./socket"));
Object.keys(socket).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === socket[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return socket[key];
}
});
});
var _socket = require("./socket");
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var _default = { ...socket
};
exports.default = _default;

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

export { Readable } from './readable';
export { Writable } from './writable';
import * as readable from './readable';
import * as writable from './writable';
export * from './readable';
export * from './writable';
declare const _default: {
Writable: typeof writable.Writable;
Readable: typeof readable.Readable;
};
export default _default;

@@ -6,17 +6,40 @@ "use strict";

});
Object.defineProperty(exports, "Readable", {
enumerable: true,
get: function () {
return _readable.Readable;
}
var _exportNames = {};
exports.default = void 0;
var readable = _interopRequireWildcard(require("./readable"));
Object.keys(readable).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === readable[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return readable[key];
}
});
});
Object.defineProperty(exports, "Writable", {
enumerable: true,
get: function () {
return _writable.Writable;
}
var writable = _interopRequireWildcard(require("./writable"));
Object.keys(writable).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === writable[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return writable[key];
}
});
});
var _readable = require("./readable");
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
var _writable = require("./writable");
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var _default = { ...readable,
...writable
};
exports.default = _default;

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