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

util-ex

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

util-ex - npm Package Compare versions

Comparing version 2.0.0-alpha.0 to 2.0.0-alpha.1

lib/_create-function.d.ts

22

lib/defineProperty.js

@@ -6,19 +6,11 @@ "use strict";

});
var _exportNames = {};
exports.default = void 0;
var _defineProperty = _interopRequireWildcard(require("inherits-ex/lib/defineProperty"));
Object.keys(_defineProperty).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _defineProperty[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _defineProperty[key];
}
});
Object.defineProperty(exports, "defineProperty", {
enumerable: true,
get: function () {
return _defineProperty.defineProperty;
}
});
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && 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 = _defineProperty.default; // var isObject = require('./is/type/object');
var _defineProperty = require("inherits-ex/lib/defineProperty");
var _default = _defineProperty.defineProperty; // var isObject = require('./is/type/object');
// var defineProperty = Object.defineProperty;

@@ -25,0 +17,0 @@ // if (!defineProperty) {

@@ -6,16 +6,10 @@ "use strict";

});
var _exportNames = {};
exports.default = void 0;
Object.defineProperty(exports, "getNonEnumerableNames", {
enumerable: true,
get: function () {
return _getNonEnumerableNames.getNonEnumerableNames;
}
});
var _getNonEnumerableNames = _interopRequireWildcard(require("./object/get-non-enumerable-names.js"));
Object.keys(_getNonEnumerableNames).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _getNonEnumerableNames[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _getNonEnumerableNames[key];
}
});
});
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -22,0 +16,0 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && 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; }

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/snowyu/util-ex.js",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"author": {

@@ -11,3 +11,2 @@ "name": "Riceball LEE",

},
"types": "./types",
"files": [

@@ -45,3 +44,3 @@ "README.md",

"chai": "~4.3.7",
"eslint": "^8.37.0",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",

@@ -55,3 +54,3 @@ "eslint-plugin-tsdoc": "^0.2.17",

"typedoc-plugin-markdown": "^3.14.0",
"typescript": "^5.0.3"
"typescript": "^5.0.4"
},

@@ -64,6 +63,6 @@ "pre-commit": [

"build.cjs": "babel src --out-dir lib --config-file ./.babelrc",
"build.ts": "tsc",
"clean": "rm -fr web docs types lib",
"build.ts": "tsc --outDir lib",
"clean": "rm -fr web docs lib",
"clean.doc": "rm -fr web docs",
"clean.ts": "rm -fr types",
"clean.ts": "rm -fr lib/*.d.ts",
"clean.lib": "rm -fr lib",

@@ -79,5 +78,5 @@ "doc": "typedoc --plugin none --out web ./src",

"dependencies": {
"inherits-ex": "^2.1.0-alpha.1",
"inherits-ex": "^2.1.0-alpha.3",
"xtend": "^4.0.2"
}
}

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

import defineProperty from "inherits-ex/lib/defineProperty";
import {defineProperty} from "inherits-ex/lib/defineProperty";
export * from "inherits-ex/lib/defineProperty";
export {defineProperty} from "inherits-ex/lib/defineProperty";
export default defineProperty;

@@ -5,0 +5,0 @@

import getNonEnumerableNames from "./object/get-non-enumerable-names.js";
export * from "./object/get-non-enumerable-names.js";
export {getNonEnumerableNames} from "./object/get-non-enumerable-names.js";
export default getNonEnumerableNames;
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