@x-oasis/is-ref 0.0.19 → 0.0.20
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/is-ref.cjs.development.js +1 -1
- package/dist/is-ref.cjs.development.js.map +1 -1
- package/dist/is-ref.cjs.production.min.js +1 -1
- package/dist/is-ref.cjs.production.min.js.map +1 -1
- package/dist/is-ref.esm.js +1 -1
- package/dist/is-ref.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +2 -1
|
@@ -7,7 +7,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
7
7
|
var isObject = _interopDefault(require('@x-oasis/is-object'));
|
|
8
8
|
|
|
9
9
|
var index = (function (obj) {
|
|
10
|
-
return isObject(obj) && obj
|
|
10
|
+
return isObject(obj) && Object.prototype.hasOwnProperty.call(obj, 'current');
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
exports.default = index;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-ref.cjs.development.js","sources":["../src/index.ts"],"sourcesContent":["import isObject from '@x-oasis/is-object';\n\nexport default (obj: any)
|
|
1
|
+
{"version":3,"file":"is-ref.cjs.development.js","sources":["../src/index.ts"],"sourcesContent":["import isObject from '@x-oasis/is-object';\n\nexport default (obj: any) =>\n isObject(obj) && Object.prototype.hasOwnProperty.call(obj, 'current');\n"],"names":["obj","isObject","Object","prototype","hasOwnProperty","call"],"mappings":";;;;;;;;AAEA,aAAe,UAACA,GAAQ;EAAA,OACtBC,QAAQ,CAACD,GAAG,CAAC,IAAIE,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACL,GAAG,EAAE,SAAS,CAAC;AAAA;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=(e=require("@x-oasis/is-object"))&&"object"==typeof e&&"default"in e?e.default:e;exports.default=function(e){return t(e)&&e
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=(e=require("@x-oasis/is-object"))&&"object"==typeof e&&"default"in e?e.default:e;exports.default=function(e){return t(e)&&Object.prototype.hasOwnProperty.call(e,"current")};
|
|
2
2
|
//# sourceMappingURL=is-ref.cjs.production.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-ref.cjs.production.min.js","sources":["../src/index.ts"],"sourcesContent":["import isObject from '@x-oasis/is-object';\n\nexport default (obj: any)
|
|
1
|
+
{"version":3,"file":"is-ref.cjs.production.min.js","sources":["../src/index.ts"],"sourcesContent":["import isObject from '@x-oasis/is-object';\n\nexport default (obj: any) =>\n isObject(obj) && Object.prototype.hasOwnProperty.call(obj, 'current');\n"],"names":["obj","isObject","Object","prototype","hasOwnProperty","call"],"mappings":"sLAEgBA,GAAQ,OACtBC,EAASD,IAAQE,OAAOC,UAAUC,eAAeC,KAAKL,EAAK"}
|
package/dist/is-ref.esm.js
CHANGED
package/dist/is-ref.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-ref.esm.js","sources":["../src/index.ts"],"sourcesContent":["import isObject from '@x-oasis/is-object';\n\nexport default (obj: any)
|
|
1
|
+
{"version":3,"file":"is-ref.esm.js","sources":["../src/index.ts"],"sourcesContent":["import isObject from '@x-oasis/is-object';\n\nexport default (obj: any) =>\n isObject(obj) && Object.prototype.hasOwnProperty.call(obj, 'current');\n"],"names":["obj","isObject","Object","prototype","hasOwnProperty","call"],"mappings":";;AAEA,aAAe,UAACA,GAAQ;EAAA,OACtBC,QAAQ,CAACD,GAAG,CAAC,IAAIE,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACL,GAAG,EAAE,SAAS,CAAC;AAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x-oasis/is-ref",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "is-ref function",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"tsdx": "^0.14.1"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@x-oasis/is-object": "0.0.
|
|
14
|
+
"@x-oasis/is-object": "0.0.20"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "tsdx build --tsconfig tsconfig.build.json",
|
package/src/index.ts
CHANGED