@x-oasis/is-object 0.0.16
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/is-object.cjs.development.js +14 -0
- package/dist/is-object.cjs.development.js.map +1 -0
- package/dist/is-object.cjs.production.min.js +2 -0
- package/dist/is-object.cjs.production.min.js.map +1 -0
- package/dist/is-object.esm.js +8 -0
- package/dist/is-object.esm.js.map +1 -0
- package/package.json +22 -0
- package/src/index.ts +3 -0
- package/test/test.spec.ts +5 -0
- package/tsconfig.build.json +11 -0
- package/tsconfig.json +7 -0
package/README.md
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
|
+
|
|
7
|
+
var toString = _interopDefault(require('@x-oasis/to-string'));
|
|
8
|
+
|
|
9
|
+
var index = (function (obj) {
|
|
10
|
+
return toString(obj) === '[object Object]';
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
exports.default = index;
|
|
14
|
+
//# sourceMappingURL=is-object.cjs.development.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-object.cjs.development.js","sources":["../src/index.ts"],"sourcesContent":["import toString from '@x-oasis/to-string';\n\nexport default (obj: any) => toString(obj) === '[object Object]';\n"],"names":["obj","toString"],"mappings":";;;;;;;;AAEA,aAAe,UAACA,GAAQ;EAAA,OAAKC,QAAQ,CAACD,GAAG,CAAC,KAAK,iBAAiB;AAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-object.cjs.production.min.js","sources":["../src/index.ts"],"sourcesContent":["import toString from '@x-oasis/to-string';\n\nexport default (obj: any) => toString(obj) === '[object Object]';\n"],"names":["obj","toString"],"mappings":"sLAEgBA,GAAQ,MAAuB,oBAAlBC,EAASD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-object.esm.js","sources":["../src/index.ts"],"sourcesContent":["import toString from '@x-oasis/to-string';\n\nexport default (obj: any) => toString(obj) === '[object Object]';\n"],"names":["obj","toString"],"mappings":";;AAEA,aAAe,UAACA,GAAQ;EAAA,OAAKC,QAAQ,CAACD,GAAG,CAAC,KAAK,iBAAiB;AAAA;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@x-oasis/is-object",
|
|
3
|
+
"version": "0.0.16",
|
|
4
|
+
"description": "is-object function",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"typings": "dist/index.d.ts",
|
|
7
|
+
"module": "dist/is-object.esm.js",
|
|
8
|
+
"author": "",
|
|
9
|
+
"license": "ISC",
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"tsdx": "^0.14.1"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@x-oasis/to-string": "^0.0.15"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsdx build --tsconfig tsconfig.build.json",
|
|
18
|
+
"clean": "rimraf ./dist",
|
|
19
|
+
"test": "vitest",
|
|
20
|
+
"compile": "tsc -p tsconfig.build.json"
|
|
21
|
+
}
|
|
22
|
+
}
|
package/src/index.ts
ADDED