diff --git a/node_modules/hasown/index.js b/node_modules/hasown/index.js index 3b91618323842..34e6059134967 100644 --- a/node_modules/hasown/index.js +++ b/node_modules/hasown/index.js @@ -4,5 +4,5 @@ var call = Function.prototype.call; var $hasOwn = Object.prototype.hasOwnProperty; var bind = require('function-bind'); -/** @type {(o: {}, p: PropertyKey) => p is keyof o} */ +/** @type {import('.')} */ module.exports = bind.call(call, $hasOwn); diff --git a/node_modules/hasown/package.json b/node_modules/hasown/package.json index 954500640223c..1b03e9d3018bd 100644 --- a/node_modules/hasown/package.json +++ b/node_modules/hasown/package.json @@ -1,21 +1,21 @@ { "name": "hasown", - "version": "2.0.0", + "version": "2.0.1", "description": "A robust, ES3 compatible, \"has own property\" predicate.", "main": "index.js", "exports": { ".": "./index.js", "./package.json": "./package.json" }, + "types": "index.d.ts", + "sideEffects": false, "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated && npm run emit-types", + "prepack": "npmignore --auto --commentLines=autogenerated", "prepublish": "not-in-publish || npm run prepublishOnly", "prepublishOnly": "safe-publish-latest", "prelint": "evalmd README.md", "lint": "eslint --ext=js,mjs .", "postlint": "npm run tsc", - "preemit-types": "rm -f *.ts *.ts.map test/*.ts test/*.ts.map", - "emit-types": "npm run tsc -- --noEmit false --emitDeclarationOnly", "pretest": "npm run lint", "tsc": "tsc -p .", "tests-only": "nyc tape 'test/**/*.js'", @@ -51,20 +51,20 @@ }, "devDependencies": { "@ljharb/eslint-config": "^21.1.0", - "@types/function-bind": "^1.1.9", - "@types/mock-property": "^1.0.1", - "@types/tape": "^5.6.3", - "aud": "^2.0.3", + "@types/function-bind": "^1.1.10", + "@types/mock-property": "^1.0.2", + "@types/tape": "^5.6.4", + "aud": "^2.0.4", "auto-changelog": "^2.4.0", "eslint": "=8.8.0", "evalmd": "^0.0.19", "in-publish": "^2.0.1", - "mock-property": "^1.0.2", - "npmignore": "^0.3.0", + "mock-property": "^1.0.3", + "npmignore": "^0.3.1", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", - "tape": "^5.7.1", - "typescript": "^5.3.0-dev.20231019" + "tape": "^5.7.4", + "typescript": "next" }, "engines": { "node": ">= 0.4" @@ -83,9 +83,7 @@ "publishConfig": { "ignore": [ ".github/workflows", - "test", - "!*.d.ts", - "!*.d.ts.map" + "test" ] } } diff --git a/package-lock.json b/package-lock.json index c5489cf5e6b76..9e80aa72f1c49 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5989,9 +5989,9 @@ } }, "node_modules/hasown": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", - "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz", + "integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==", "inBundle": true, "dependencies": { "function-bind": "^1.1.2"