@alwatr/has-own 6.0.2 → 9.1.0

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/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
- /* 📦 @alwatr/has-own v6.0.2 */
1
+ /* 📦 @alwatr/has-own v9.1.0 */
2
2
  var e=Object.hasOwn??Object.call.bind(Object.prototype.hasOwnProperty);export{e as hasOwn};
3
3
 
4
- //# debugId=B7FE0E1B3DA8EBC864756E2164756E21
4
+ //# debugId=39DAF7D5AE5B5FCA64756E2164756E21
5
5
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -5,6 +5,6 @@
5
5
  "/**\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"
6
6
  ],
7
7
  "mappings": ";AAMO,IAAM,EAAS,OAAO,QAAU,OAAO,KAAK,KAAK,OAAO,UAAU,cAAc",
8
- "debugId": "B7FE0E1B3DA8EBC864756E2164756E21",
8
+ "debugId": "39DAF7D5AE5B5FCA64756E2164756E21",
9
9
  "names": []
10
10
  }
package/package.json CHANGED
@@ -1,28 +1,29 @@
1
1
  {
2
2
  "name": "@alwatr/has-own",
3
- "version": "6.0.2",
3
+ "version": "9.1.0",
4
4
  "description": "A side-effect-free polyfill/replacement for `Object.hasOwn` that supports all browsers.",
5
5
  "license": "MPL-2.0",
6
- "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
+ "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com> (https://ali.mihandoost.com)",
7
7
  "type": "module",
8
8
  "repository": {
9
- "directory": "packages/has-own",
10
9
  "type": "git",
11
- "url": "https://github.com/Alwatr/nanolib"
10
+ "url": "https://github.com/Alwatr/alwatr",
11
+ "directory": "pkg/nanolib/has-own"
12
12
  },
13
- "homepage": "https://github.com/Alwatr/nanolib/tree/next/packages/has-own#readme",
14
- "bugs": "https://github.com/Alwatr/nanolib/issues",
13
+ "homepage": "https://github.com/Alwatr/alwatr/tree/main/pkg/nanolib/has-own#readme",
14
+ "bugs": "https://github.com/Alwatr/alwatr/issues",
15
15
  "exports": {
16
16
  ".": {
17
17
  "types": "./dist/main.d.ts",
18
+ "import": "./dist/main.js",
18
19
  "default": "./dist/main.js"
19
20
  }
20
21
  },
21
22
  "sideEffects": false,
22
23
  "devDependencies": {
23
- "@alwatr/nano-build": "7.0.1",
24
- "@alwatr/prettier-config": "7.0.1",
25
- "@alwatr/tsconfig-base": "8.0.0",
24
+ "@alwatr/nano-build": "9.1.0",
25
+ "@alwatr/tsconfig-base": "9.1.0",
26
+ "@alwatr/type-helper": "9.1.0",
26
27
  "typescript": "^6.0.2"
27
28
  },
28
29
  "scripts": {
@@ -30,21 +31,23 @@
30
31
  "build": "bun run build:ts && bun run build:es",
31
32
  "build:es": "nano-build --preset=module src/main.ts",
32
33
  "build:ts": "tsc --build",
33
- "c": "bun run clean",
34
- "cb": "bun run clean && bun run build",
34
+ "cl": "bun run clean",
35
35
  "clean": "rm -rfv dist *.tsbuildinfo",
36
- "d": "bun run build:es && bun",
36
+ "format": "prettier --write \"src/**/*.ts\"",
37
+ "lint": "eslint src/ --ext .ts",
38
+ "t": "bun run test",
39
+ "test": "ALWATR_DEBUG=0 bun test",
37
40
  "w": "bun run watch",
38
41
  "watch": "bun run watch:ts & bun run watch:es",
39
42
  "watch:es": "bun run build:es --watch",
40
43
  "watch:ts": "bun run build:ts --watch --preserveWatchOutput"
41
44
  },
42
45
  "files": [
43
- "**/*.{js,mjs,cjs,ts,map,d.ts,html,LEGAL.txt}",
46
+ "dist",
47
+ "src/**/*.ts",
48
+ "!src/**/*.test.ts",
44
49
  "README.md",
45
- "LICENSE",
46
- "!demo/**/*",
47
- "!**/*.test.js"
50
+ "LICENSE"
48
51
  ],
49
52
  "publishConfig": {
50
53
  "access": "public"
@@ -55,7 +58,6 @@
55
58
  "ECMAScript",
56
59
  "esm",
57
60
  "has-own",
58
- "has-own",
59
61
  "has-own-property",
60
62
  "has-own-property-polyfill",
61
63
  "javascript",
@@ -69,6 +71,5 @@
69
71
  "utility",
70
72
  "utils"
71
73
  ],
72
- "prettier": "@alwatr/prettier-config",
73
- "gitHead": "95bb13efd0a5f485c6b09f1a911b99492017aed1"
74
+ "gitHead": "4a25cd3e0499cf61dd761e87d3711abf9b0cd208"
74
75
  }