uawdijnntqw1x1x1
IP : 216.73.216.110
Hostname : 6.87.74.97.host.secureserver.net
Kernel : Linux 6.87.74.97.host.secureserver.net 4.18.0-553.83.1.el8_10.x86_64 #1 SMP Mon Nov 10 04:22:44 EST 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
emeraadmin
/
.caldav
/
.
/
..
/
public_html
/
node_modules
/
..
/
4d695
/
has-proto.tar
/
/
package.json000064400000005635151676730060007056 0ustar00{ "_from": "has-proto@^1.0.1", "_id": "has-proto@1.0.3", "_inBundle": false, "_integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", "_location": "/has-proto", "_phantomChildren": {}, "_requested": { "type": "range", "registry": true, "raw": "has-proto@^1.0.1", "name": "has-proto", "escapedName": "has-proto", "rawSpec": "^1.0.1", "saveSpec": null, "fetchSpec": "^1.0.1" }, "_requiredBy": [ "/get-intrinsic" ], "_resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", "_shasum": "b31ddfe9b0e6e9914536a6ab286426d0214f77fd", "_spec": "has-proto@^1.0.1", "_where": "C:\\xampp\\htdocs\\emeraltd\\node_modules\\get-intrinsic", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com" }, "auto-changelog": { "output": "CHANGELOG.md", "template": "keepachangelog", "unreleased": false, "commitLimit": false, "backfillLimit": false, "hideCredit": true }, "bugs": { "url": "https://github.com/inspect-js/has-proto/issues" }, "bundleDependencies": false, "deprecated": false, "description": "Does this environment have the ability to get the [[Prototype]] of an object on creation with `__proto__`?", "devDependencies": { "@ljharb/eslint-config": "^21.1.0", "@types/tape": "^5.6.4", "aud": "^2.0.4", "auto-changelog": "^2.4.0", "eslint": "=8.8.0", "in-publish": "^2.0.1", "npmignore": "^0.3.1", "safe-publish-latest": "^2.0.0", "tape": "^5.7.5", "typescript": "next" }, "engines": { "node": ">= 0.4" }, "exports": { ".": "./index.js", "./package.json": "./package.json" }, "funding": { "url": "https://github.com/sponsors/ljharb" }, "homepage": "https://github.com/inspect-js/has-proto#readme", "keywords": [ "prototype", "proto", "set", "get", "__proto__", "getPrototypeOf", "setPrototypeOf", "has" ], "license": "MIT", "main": "index.js", "name": "has-proto", "publishConfig": { "ignore": [ ".github/workflows" ] }, "repository": { "type": "git", "url": "git+https://github.com/inspect-js/has-proto.git" }, "scripts": { "lint": "eslint --ext=js,mjs .", "postlint": "tsc -p .", "posttest": "aud --production", "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", "prepack": "npmignore --auto --commentLines=autogenerated", "prepublish": "not-in-publish || npm run prepublishOnly", "prepublishOnly": "safe-publish-latest", "pretest": "npm run lint", "test": "npm run tests-only", "tests-only": "tape 'test/**/*.js'", "version": "auto-changelog && git add CHANGELOG.md" }, "sideEffects": false, "testling": { "files": "test/index.js" }, "version": "1.0.3" } test/index.js000064400000000735151676730060007210 0ustar00'use strict'; var test = require('tape'); var hasProto = require('../'); test('hasProto', function (t) { var result = hasProto(); t.equal(typeof result, 'boolean', 'returns a boolean (' + result + ')'); var obj = { __proto__: null }; if (result) { t.notOk('toString' in obj, 'null object lacks toString'); } else { t.ok('toString' in obj, 'without proto, null object has toString'); t.equal(obj.__proto__, null); // eslint-disable-line no-proto } t.end(); }); LICENSE000064400000002053151676730060005564 0ustar00MIT License Copyright (c) 2022 Inspect JS 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. .eslintrc000064400000000053151676730060006401 0ustar00{ "root": true, "extends": "@ljharb", } index.js000064400000000456151676730060006231 0ustar00'use strict'; var test = { __proto__: null, foo: {} }; var $Object = Object; /** @type {import('.')} */ module.exports = function hasProto() { // @ts-expect-error: TS errors on an inherited property for some reason return { __proto__: test }.foo === test.foo && !(test instanceof $Object); }; README.md000064400000003127151676730060006041 0ustar00# has-proto <sup>[![Version Badge][npm-version-svg]][package-url]</sup> [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [![npm badge][npm-badge-png]][package-url] Does this environment have the ability to set the [[Prototype]] of an object on creation with `__proto__`? ## Example ```js var hasProto = require('has-proto'); var assert = require('assert'); assert.equal(typeof hasProto(), 'boolean'); ``` ## Tests Simply clone the repo, `npm install`, and run `npm test` [package-url]: https://npmjs.org/package/has-proto [npm-version-svg]: https://versionbadg.es/inspect-js/has-proto.svg [deps-svg]: https://david-dm.org/inspect-js/has-proto.svg [deps-url]: https://david-dm.org/inspect-js/has-proto [dev-deps-svg]: https://david-dm.org/inspect-js/has-proto/dev-status.svg [dev-deps-url]: https://david-dm.org/inspect-js/has-proto#info=devDependencies [npm-badge-png]: https://nodei.co/npm/has-proto.png?downloads=true&stars=true [license-image]: https://img.shields.io/npm/l/has-proto.svg [license-url]: LICENSE [downloads-image]: https://img.shields.io/npm/dm/has-proto.svg [downloads-url]: https://npm-stat.com/charts.html?package=has-proto [codecov-image]: https://codecov.io/gh/inspect-js/has-proto/branch/main/graphs/badge.svg [codecov-url]: https://app.codecov.io/gh/inspect-js/has-proto/ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-proto [actions-url]: https://github.com/inspect-js/has-proto/actions index.d.ts000064400000000071151676730060006456 0ustar00declare function hasProto(): boolean; export = hasProto;tsconfig.json000064400000007033151676730060007271 0ustar00{ "compilerOptions": { /* Visit https://aka.ms/tsconfig to read more about this file */ /* Projects */ /* Language and Environment */ "target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */ "resolveJsonModule": true, /* Enable importing .json files. */ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ /* JavaScript Support */ "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ "maxNodeModuleJsDepth": 0, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ /* Emit */ "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ "declarationMap": true, /* Create sourcemaps for d.ts files. */ "noEmit": true, /* Disable emitting files from a compilation. */ /* Interop Constraints */ "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ /* Type Checking */ "strict": true, /* Enable all strict type-checking options. */ /* Completeness */ //"skipLibCheck": true /* Skip type checking all .d.ts files. */ }, "exclude": [ "coverage" ] } CHANGELOG.md000064400000004230151676730060006367 0ustar00# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [v1.0.3](https://github.com/inspect-js/has-proto/compare/v1.0.2...v1.0.3) - 2024-02-19 ### Commits - [types] add missing declaration file [`26ecade`](https://github.com/inspect-js/has-proto/commit/26ecade05d253bb5dc376945ee3186d1fbe334f8) ## [v1.0.2](https://github.com/inspect-js/has-proto/compare/v1.0.1...v1.0.2) - 2024-02-19 ### Commits - add types [`6435262`](https://github.com/inspect-js/has-proto/commit/64352626cf511c0276d5f4bb6be770a0bf0f8524) - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `npmignore`, `tape` [`f16a5e4`](https://github.com/inspect-js/has-proto/commit/f16a5e4121651e551271419f9d60fdd3561fd82c) - [Refactor] tiny cleanup [`d1f1a4b`](https://github.com/inspect-js/has-proto/commit/d1f1a4bdc135f115a10f148ce302676224534702) - [meta] add `sideEffects` flag [`e7ab1a6`](https://github.com/inspect-js/has-proto/commit/e7ab1a6f153b3e80dee68d1748b71e46767a0531) ## [v1.0.1](https://github.com/inspect-js/has-proto/compare/v1.0.0...v1.0.1) - 2022-12-21 ### Commits - [meta] correct URLs and description [`ef34483`](https://github.com/inspect-js/has-proto/commit/ef34483ca0d35680f271b6b96e35526151b25dfc) - [patch] add an additional criteria [`e81959e`](https://github.com/inspect-js/has-proto/commit/e81959ed7c7a77fbf459f00cb4ef824f1099497f) - [Dev Deps] update `aud` [`2bec2c4`](https://github.com/inspect-js/has-proto/commit/2bec2c47b072b122ff5443fba0263f6dc649531f) ## v1.0.0 - 2022-12-12 ### Commits - Initial implementation, tests, readme [`6886fea`](https://github.com/inspect-js/has-proto/commit/6886fea578f67daf69a7920b2eb7637ea6ebb0bc) - Initial commit [`99129c8`](https://github.com/inspect-js/has-proto/commit/99129c8f42471ac89cb681ba9cb9d52a583eb94f) - npm init [`2844ad8`](https://github.com/inspect-js/has-proto/commit/2844ad8e75b84d66a46765b3bab9d2e8ea692e10) - Only apps should have lockfiles [`c65bc5e`](https://github.com/inspect-js/has-proto/commit/c65bc5e40b9004463f7336d47c67245fb139a36a) .github/FUNDING.yml000064400000001104151676730060007730 0ustar00# These are supported funding model platforms github: [ljharb] patreon: # Replace with a single Patreon username open_collective: # Replace with a single Open Collective username ko_fi: # Replace with a single Ko-fi username tidelift: npm/has-proto community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry liberapay: # Replace with a single Liberapay username issuehunt: # Replace with a single IssueHunt username otechie: # Replace with a single Otechie username custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
/home/emeraadmin/.caldav/./../public_html/node_modules/../4d695/has-proto.tar