@x-oasis/own-keys 0.1.11
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/README.md +19 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -0
- package/dist/own-keys.cjs.development.js +10 -0
- package/dist/own-keys.cjs.development.js.map +1 -0
- package/dist/own-keys.cjs.production.min.js +2 -0
- package/dist/own-keys.cjs.production.min.js.map +1 -0
- package/dist/own-keys.esm.js +6 -0
- package/dist/own-keys.esm.js.map +1 -0
- package/package.json +24 -0
- package/src/index.ts +8 -0
package/README.md
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var index = (function (o) {
|
|
6
|
+
return typeof Reflect !== 'undefined' && Reflect.ownKeys ? Reflect.ownKeys(o) : typeof Object.getOwnPropertySymbols !== 'undefined' ? Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o)) : Object.getOwnPropertyNames(o);
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
exports.default = index;
|
|
10
|
+
//# sourceMappingURL=own-keys.cjs.development.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"own-keys.cjs.development.js","sources":["../src/index.ts"],"sourcesContent":["export default (o: any) =>\n typeof Reflect !== 'undefined' && Reflect.ownKeys\n ? Reflect.ownKeys(o)\n : typeof Object.getOwnPropertySymbols !== 'undefined'\n ? Object.getOwnPropertyNames(o).concat(\n Object.getOwnPropertySymbols(o) as any\n )\n : Object.getOwnPropertyNames(o);\n"],"names":["o","Reflect","ownKeys","Object","getOwnPropertySymbols","getOwnPropertyNames","concat"],"mappings":";;;;AAAA,aAAe,UAACA,CAAM;EAAA,OACpB,OAAOC,OAAO,KAAK,WAAW,IAAIA,OAAO,CAACC,OAAO,GAC7CD,OAAO,CAACC,OAAO,CAACF,CAAC,CAAC,GAClB,OAAOG,MAAM,CAACC,qBAAqB,KAAK,WAAW,GACnDD,MAAM,CAACE,mBAAmB,CAACL,CAAC,CAAC,CAACM,MAAM,CAClCH,MAAM,CAACC,qBAAqB,CAACJ,CAAC,CAAQ,CACvC,GACDG,MAAM,CAACE,mBAAmB,CAACL,CAAC,CAAC;AAAA;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return"undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys(e):void 0!==Object.getOwnPropertySymbols?Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)):Object.getOwnPropertyNames(e)};
|
|
2
|
+
//# sourceMappingURL=own-keys.cjs.production.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"own-keys.cjs.production.min.js","sources":["../src/index.ts"],"sourcesContent":["export default (o: any) =>\n typeof Reflect !== 'undefined' && Reflect.ownKeys\n ? Reflect.ownKeys(o)\n : typeof Object.getOwnPropertySymbols !== 'undefined'\n ? Object.getOwnPropertyNames(o).concat(\n Object.getOwnPropertySymbols(o) as any\n )\n : Object.getOwnPropertyNames(o);\n"],"names":["o","Reflect","ownKeys","Object","getOwnPropertySymbols","getOwnPropertyNames","concat"],"mappings":"6FAAgBA,GAAM,MACD,oBAAZC,SAA2BA,QAAQC,QACtCD,QAAQC,QAAQF,QACwB,IAAjCG,OAAOC,sBACdD,OAAOE,oBAAoBL,GAAGM,OAC5BH,OAAOC,sBAAsBJ,IAE/BG,OAAOE,oBAAoBL"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var index = (function (o) {
|
|
2
|
+
return typeof Reflect !== 'undefined' && Reflect.ownKeys ? Reflect.ownKeys(o) : typeof Object.getOwnPropertySymbols !== 'undefined' ? Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o)) : Object.getOwnPropertyNames(o);
|
|
3
|
+
});
|
|
4
|
+
|
|
5
|
+
export default index;
|
|
6
|
+
//# sourceMappingURL=own-keys.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"own-keys.esm.js","sources":["../src/index.ts"],"sourcesContent":["export default (o: any) =>\n typeof Reflect !== 'undefined' && Reflect.ownKeys\n ? Reflect.ownKeys(o)\n : typeof Object.getOwnPropertySymbols !== 'undefined'\n ? Object.getOwnPropertyNames(o).concat(\n Object.getOwnPropertySymbols(o) as any\n )\n : Object.getOwnPropertyNames(o);\n"],"names":["o","Reflect","ownKeys","Object","getOwnPropertySymbols","getOwnPropertyNames","concat"],"mappings":"AAAA,aAAe,UAACA,CAAM;EAAA,OACpB,OAAOC,OAAO,KAAK,WAAW,IAAIA,OAAO,CAACC,OAAO,GAC7CD,OAAO,CAACC,OAAO,CAACF,CAAC,CAAC,GAClB,OAAOG,MAAM,CAACC,qBAAqB,KAAK,WAAW,GACnDD,MAAM,CAACE,mBAAmB,CAACL,CAAC,CAAC,CAACM,MAAM,CAClCH,MAAM,CAACC,qBAAqB,CAACJ,CAAC,CAAQ,CACvC,GACDG,MAAM,CAACE,mBAAmB,CAACL,CAAC,CAAC;AAAA;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@x-oasis/own-keys",
|
|
3
|
+
"version": "0.1.11",
|
|
4
|
+
"description": "own-keys function",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"typings": "dist/index.d.ts",
|
|
7
|
+
"module": "dist/own-keys.esm.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"index.ts",
|
|
11
|
+
"src"
|
|
12
|
+
],
|
|
13
|
+
"author": "",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"tsdx": "^0.14.1"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsdx build --tsconfig tsconfig.build.json",
|
|
20
|
+
"clean": "rimraf ./dist",
|
|
21
|
+
"test": "vitest",
|
|
22
|
+
"compile": "tsc -p tsconfig.build.json"
|
|
23
|
+
}
|
|
24
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default (o: any) =>
|
|
2
|
+
typeof Reflect !== 'undefined' && Reflect.ownKeys
|
|
3
|
+
? Reflect.ownKeys(o)
|
|
4
|
+
: typeof Object.getOwnPropertySymbols !== 'undefined'
|
|
5
|
+
? Object.getOwnPropertyNames(o).concat(
|
|
6
|
+
Object.getOwnPropertySymbols(o) as any
|
|
7
|
+
)
|
|
8
|
+
: Object.getOwnPropertyNames(o);
|