@alwatr/has-own 5.6.6 → 5.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/main.cjs +1 -2
- package/dist/main.cjs.map +1 -1
- package/dist/main.mjs +1 -2
- package/dist/main.mjs.map +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.6.8](https://github.com/Alwatr/nanolib/compare/@alwatr/has-own@5.6.7...@alwatr/has-own@5.6.8) (2026-03-16)
|
|
7
|
+
|
|
8
|
+
### 🔨 Code Refactoring
|
|
9
|
+
|
|
10
|
+
* migrate build scripts from yarn to bun across multiple packages ([d90e962](https://github.com/Alwatr/nanolib/commit/d90e962f15e5c951e191d5f02341279b6472abc3))
|
|
11
|
+
|
|
12
|
+
## [5.6.7](https://github.com/Alwatr/nanolib/compare/@alwatr/has-own@5.6.6...@alwatr/has-own@5.6.7) (2026-02-18)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @alwatr/has-own
|
|
15
|
+
|
|
6
16
|
## [5.6.6](https://github.com/Alwatr/nanolib/compare/@alwatr/has-own@5.6.5...@alwatr/has-own@5.6.6) (2025-12-23)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @alwatr/has-own
|
package/dist/main.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/** 📦 @alwatr/has-own v5.6.
|
|
2
|
-
__dev_mode__: console.debug("📦 @alwatr/has-own v5.6.6");
|
|
1
|
+
/** 📦 @alwatr/has-own v5.6.8 */
|
|
3
2
|
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var main_exports={};__export(main_exports,{hasOwn:()=>hasOwn});module.exports=__toCommonJS(main_exports);var hasOwn=Object.hasOwn??Object.call.bind(Object.prototype.hasOwnProperty);0&&(module.exports={hasOwn});
|
|
4
3
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.cjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/main.ts"],
|
|
4
4
|
"sourcesContent": ["/**\n * Determines whether an object has a property with the specified name.\n * @param {object} obj An object.\n * @param {PropertyKey} prop A property name.\n * @returns {boolean} True if the property exists, otherwise false.\n */\nexport const hasOwn = Object.hasOwn ?? Object.call.bind(Object.prototype.hasOwnProperty);\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";qqBAAA,yGAMO,IAAM,OAAS,OAAO,QAAU,OAAO,KAAK,KAAK,OAAO,UAAU,cAAc",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/main.mjs
CHANGED
package/dist/main.mjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/main.ts"],
|
|
4
4
|
"sourcesContent": ["/**\n * Determines whether an object has a property with the specified name.\n * @param {object} obj An object.\n * @param {PropertyKey} prop A property name.\n * @returns {boolean} True if the property exists, otherwise false.\n */\nexport const hasOwn = Object.hasOwn ?? Object.call.bind(Object.prototype.hasOwnProperty);\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";AAMO,IAAM,OAAS,OAAO,QAAU,OAAO,KAAK,KAAK,OAAO,UAAU,cAAc",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/has-own",
|
|
3
3
|
"description": "A side-effect-free polyfill/replacement for `Object.hasOwn` that supports all browsers.",
|
|
4
|
-
"version": "5.6.
|
|
4
|
+
"version": "5.6.8",
|
|
5
5
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
6
|
"bugs": "https://github.com/Alwatr/nanolib/issues",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@alwatr/nano-build": "6.4.
|
|
9
|
-
"@alwatr/prettier-config": "6.0.
|
|
8
|
+
"@alwatr/nano-build": "6.4.2",
|
|
9
|
+
"@alwatr/prettier-config": "6.0.2",
|
|
10
10
|
"@alwatr/tsconfig-base": "6.0.4",
|
|
11
11
|
"typescript": "^5.9.3"
|
|
12
12
|
},
|
|
@@ -57,21 +57,21 @@
|
|
|
57
57
|
"directory": "packages/has-own"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
|
-
"b": "
|
|
61
|
-
"build": "
|
|
60
|
+
"b": "bun run build",
|
|
61
|
+
"build": "bun run build:ts && bun run build:es",
|
|
62
62
|
"build:es": "nano-build --preset=module",
|
|
63
63
|
"build:ts": "tsc --build",
|
|
64
|
-
"c": "
|
|
65
|
-
"cb": "
|
|
64
|
+
"c": "bun run clean",
|
|
65
|
+
"cb": "bun run clean && bun run build",
|
|
66
66
|
"clean": "rm -rfv dist *.tsbuildinfo",
|
|
67
|
-
"d": "
|
|
68
|
-
"w": "
|
|
69
|
-
"watch": "
|
|
70
|
-
"watch:es": "
|
|
71
|
-
"watch:ts": "
|
|
67
|
+
"d": "bun run build:es && bun --enable-source-maps --trace-warnings",
|
|
68
|
+
"w": "bun run watch",
|
|
69
|
+
"watch": "bun run watch:ts & bun run watch:es",
|
|
70
|
+
"watch:es": "bun run build:es --watch",
|
|
71
|
+
"watch:ts": "bun run build:ts --watch --preserveWatchOutput"
|
|
72
72
|
},
|
|
73
73
|
"sideEffects": false,
|
|
74
74
|
"type": "module",
|
|
75
75
|
"types": "./dist/main.d.ts",
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "c3889e3756b0a0f9b935a1b702a1373ac52cb379"
|
|
77
77
|
}
|