@transloadit/has-property
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -1,2 +0,1 @@ | ||
declare const _default: <K extends PropertyKey>(obj: unknown, key: K | null | undefined) => obj is Record<K, unknown>; | ||
export = _default; | ||
export declare function hasProperty<K extends PropertyKey>(obj: unknown, key: K | null | undefined): obj is Record<K, unknown>; |
"use strict"; | ||
module.exports = function hasProperty(obj, key) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.hasProperty = void 0; | ||
function hasProperty(obj, key) { | ||
return key != null && obj != null && typeof obj === 'object' && Object.hasOwn(obj, key); | ||
}; | ||
} | ||
exports.hasProperty = hasProperty; | ||
//# sourceMappingURL=has-property.js.map |
{ | ||
"name": "@transloadit/has-property", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"repository": { | ||
@@ -23,3 +23,3 @@ "type": "git", | ||
}, | ||
"gitHead": "0a3041d61326d5de201cb1728e1a1a2d7a0cd5bc" | ||
"gitHead": "412a97c914bd1a8c6d21df01c9f7e18ab19b218a" | ||
} |
@@ -5,5 +5,5 @@ { | ||
"outDir": "dist/", | ||
"rootDir": "src/", | ||
"rootDir": "src/" | ||
}, | ||
"include": ["src/"], | ||
"include": ["src/"] | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32
36766
9