pax_global_header00006660000000000000000000000064152420155240014512gustar00rootroot0000000000000052 comment=5095eb3cd1de505ef4ba6924a2d3cef4908902e6 jonschlinkert-isobject-5095eb3/000077500000000000000000000000001524201552400165255ustar00rootroot00000000000000jonschlinkert-isobject-5095eb3/.editorconfig000066400000000000000000000004051524201552400212010ustar00rootroot00000000000000root = true [*] indent_style = space end_of_line = lf charset = utf-8 indent_size = 2 trim_trailing_whitespace = true insert_final_newline = true [{**/{actual,fixtures,expected,templates}/**,*.md}] trim_trailing_whitespace = false insert_final_newline = falsejonschlinkert-isobject-5095eb3/.gitattributes000066400000000000000000000002001524201552400214100ustar00rootroot00000000000000# Enforce Unix newlines * text eol=lf # binaries *.ai binary *.psd binary *.jpg binary *.gif binary *.png binary *.jpeg binary jonschlinkert-isobject-5095eb3/.github/000077500000000000000000000000001524201552400200655ustar00rootroot00000000000000jonschlinkert-isobject-5095eb3/.github/FUNDING.yml000066400000000000000000000000271524201552400217010ustar00rootroot00000000000000github: jonschlinkert jonschlinkert-isobject-5095eb3/.github/workflows/000077500000000000000000000000001524201552400221225ustar00rootroot00000000000000jonschlinkert-isobject-5095eb3/.github/workflows/ci.yml000066400000000000000000000034371524201552400232470ustar00rootroot00000000000000name: CI on: push: branches: [master] pull_request: permissions: contents: read jobs: build: name: Build and test source runs-on: ubuntu-latest steps: - name: Check out repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up Node.js uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: 20.x - name: Install dependencies run: npm install --ignore-scripts - name: Build and test run: npm run build && npm test - name: Upload CommonJS build uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: commonjs-build path: index.cjs.js compatibility: name: Node.js ${{ matrix.node-version }} needs: build runs-on: ubuntu-latest strategy: fail-fast: false matrix: node-version: ['0.10', '0.12', 20.x, 22.x, 24.x] steps: - name: Check out repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Download CommonJS build uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: commonjs-build - name: Set up Node.js for dependency installation uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: 20.x - name: Install dependencies run: npm install --ignore-scripts - name: Set up test Node.js uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: ${{ matrix.node-version }} - name: Test published entry point run: npm test jonschlinkert-isobject-5095eb3/.github/workflows/release.yml000066400000000000000000000015031524201552400242640ustar00rootroot00000000000000name: Release on: release: types: [published] permissions: contents: read id-token: write jobs: publish: name: Publish to npm runs-on: ubuntu-latest steps: - name: Check out repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up Node.js uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: 26.7.0 registry-url: https://registry.npmjs.org - name: Install dependencies run: npm install --ignore-scripts - name: Build and test run: npm run build && npm test - name: Update npm for trusted publishing run: npm install --global npm@12.0.2 - name: Publish package run: npm publish --access public --provenance jonschlinkert-isobject-5095eb3/.gitignore000066400000000000000000000004671524201552400205240ustar00rootroot00000000000000# always ignore files *.DS_Store *.sublime-* # test related, or directories generated by tests test/actual actual coverage .nyc* # npm node_modules npm-debug.log # yarn yarn.lock yarn-error.log # misc _gh_pages _draft _drafts bower_components vendor temp tmp TODO.md package-lock.json # build index.cjs.js jonschlinkert-isobject-5095eb3/LICENSE000066400000000000000000000020771524201552400175400ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) 2014-2017, Jon Schlinkert. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.jonschlinkert-isobject-5095eb3/README.md000066400000000000000000000037111524201552400200060ustar00rootroot00000000000000# isobject [![npm version](https://img.shields.io/npm/v/isobject.svg)](https://www.npmjs.com/package/isobject) [![npm downloads](https://img.shields.io/npm/dm/isobject.svg)](https://www.npmjs.com/package/isobject) [![CI](https://github.com/jonschlinkert/isobject/actions/workflows/ci.yml/badge.svg)](https://github.com/jonschlinkert/isobject/actions/workflows/ci.yml) > Returns `true` if a value is an object and not an array or `null`. Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and starring the project to show your ❤️ and support. Use [is-plain-object](https://github.com/jonschlinkert/is-plain-object) if you only want objects created by the `Object` constructor. ## Install ```sh npm install isobject ``` ## Usage ```js const isObject = require('isobject'); isObject({}); // true isObject(Object.create(null)); // true isObject(new Date()); // true isObject(/foo/); // true isObject(); // false isObject(null); // false isObject([]); // false isObject(() => {}); // false isObject('foo'); // false ``` ## API ### `isObject(value)` Returns `true` when `value` is a non-null object and is not an array. Functions return `false`. ## Development Install dependencies, build the CommonJS bundle, and run the tests: ```sh npm install npm run build npm test ``` ## Related projects - [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects. - [is-plain-object](https://www.npmjs.com/package/is-plain-object): Check if an object was created by the `Object` constructor. - [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. - [merge-deep](https://www.npmjs.com/package/merge-deep): Recursively merge values in an object. ## License [MIT](LICENSE) © Jon Schlinkert jonschlinkert-isobject-5095eb3/SECURITY.md000066400000000000000000000002011524201552400203070ustar00rootroot00000000000000# Security Policy Please report security vulnerabilities to maintainer: [opensource@trysound.io](mailto:opensource@trysound.io) jonschlinkert-isobject-5095eb3/index.d.ts000066400000000000000000000001421524201552400204230ustar00rootroot00000000000000declare function isObject(val: any): val is { [key: string]: unknown }; export default isObject; jonschlinkert-isobject-5095eb3/index.js000066400000000000000000000004171524201552400201740ustar00rootroot00000000000000/*! * isobject * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ export default function isObject(val) { return val != null && typeof val === 'object' && Array.isArray(val) === false; }; jonschlinkert-isobject-5095eb3/package.json000066400000000000000000000024261524201552400210170ustar00rootroot00000000000000{ "name": "isobject", "description": "Returns true if the value is an object and not an array or null.", "version": "4.1.1", "homepage": "https://github.com/jonschlinkert/isobject", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", "contributors": [ "(https://github.com/LeSuisse)", "Bogdan Chadkin (https://github.com/TrySound)", "Brian Woodward (https://twitter.com/doowb)", "Jon Schlinkert (http://twitter.com/jonschlinkert)", "Magnús Dæhlen (https://github.com/magnudae)", "Tom MacWright (https://macwright.org)" ], "repository": "jonschlinkert/isobject", "bugs": { "url": "https://github.com/jonschlinkert/isobject/issues" }, "license": "MIT", "main": "index.cjs.js", "module": "index.js", "types": "index.d.ts", "files": [ "index.d.ts", "index.cjs.js", "index.js" ], "engines": { "node": ">=0.10.0" }, "scripts": { "build": "rollup -i index.js -o index.cjs.js -f cjs", "test": "node test.js", "prepublish": "npm run build" }, "dependencies": {}, "devDependencies": { "rollup": "^4.62.4" }, "keywords": [ "check", "is", "is-object", "isobject", "kind", "kind-of", "kindof", "native", "object", "type", "typeof", "value" ] } jonschlinkert-isobject-5095eb3/test.js000066400000000000000000000010121524201552400200340ustar00rootroot00000000000000'use strict'; var assert = require('assert'); var isObject = require('./'); assert(isObject({})); assert(isObject(Object.create({}))); assert(isObject(Object.create(Object.prototype))); assert(isObject(Object.create(null))); assert(isObject(/foo/)); function Foo() {} assert(isObject(new Foo())); assert(!isObject('whatever')); assert(!isObject(1)); assert(!isObject(function() {})); assert(!isObject([])); assert(!isObject(['foo', 'bar'])); assert(!isObject()); assert(!isObject(undefined)); assert(!isObject(null));