Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reflect.ownkeys

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reflect.ownkeys - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

index.mjs

19

CHANGELOG.md

@@ -8,2 +8,21 @@ # Changelog

## [v1.1.0](https://github.com/es-shims/Reflect.ownKeys/compare/v1.0.2...v1.1.0) - 2021-10-04
### Commits
- [New] add main ESM entry point [`a4eda1e`](https://github.com/es-shims/Reflect.ownKeys/commit/a4eda1e847f70a2a842776595fcfe92be8aebd77)
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`b4d419e`](https://github.com/es-shims/Reflect.ownKeys/commit/b4d419e229fcd892dcce2a9ba371d9fdaf84fd6a)
- [Fix] shim `Reflect[Symbol.toStringTag]` when needed [`c5952eb`](https://github.com/es-shims/Reflect.ownKeys/commit/c5952ebcec0fda7e17533b6106e8efc7294d5800)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `auto-changelog`, `tape` [`de6abd1`](https://github.com/es-shims/Reflect.ownKeys/commit/de6abd1afb7d4ed2a3e986276f1d5c6086e5045b)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `call-bind`, `tape` [`49bbcd3`](https://github.com/es-shims/Reflect.ownKeys/commit/49bbcd35024a54dfdbb2522a6fd0f7e4576f23a4)
- [readme] add github actions/codecov badges [`422dfdd`](https://github.com/es-shims/Reflect.ownKeys/commit/422dfddbca9734957ea2b6a44d9a5939c5bccd87)
- [Dev Deps] update `eslint`, `has-symbols`, `tape` [`6c3825d`](https://github.com/es-shims/Reflect.ownKeys/commit/6c3825dde83e23222b4daf55738d0e578b77a82d)
- [Deps] update `es-abstract`, `globalthis` [`eca0e12`](https://github.com/es-shims/Reflect.ownKeys/commit/eca0e12ee821f27ef56c492c6741c12a97109f93)
- [actions] update workflows [`ee73576`](https://github.com/es-shims/Reflect.ownKeys/commit/ee73576034928654629bca2b01cde1eddfd84432)
- [meta] use `prepublishOnly` script for npm 7+ [`f470670`](https://github.com/es-shims/Reflect.ownKeys/commit/f470670341fc906241bd0d7558b451ebb10167f3)
- [actions] update workflows [`a6e7274`](https://github.com/es-shims/Reflect.ownKeys/commit/a6e7274616c28abbe9ee293e54184071c4fd8faf)
- [Deps] update `es-abstract` [`ec32dd8`](https://github.com/es-shims/Reflect.ownKeys/commit/ec32dd8e2d27b44d87dcb65ad49ba84d18741761)
- [Fix] move `call-bind` to prod deps [`4056614`](https://github.com/es-shims/Reflect.ownKeys/commit/40566140f6172128b3247b48ec2218710adbc1ae)
- [Deps] update `es-abstract` [`93bbc28`](https://github.com/es-shims/Reflect.ownKeys/commit/93bbc285db06dc3dde366f4944a724b624eb03b1)
## [v1.0.2](https://github.com/es-shims/Reflect.ownKeys/compare/v1.0.1...v1.0.2) - 2020-12-24

@@ -10,0 +29,0 @@

58

package.json
{
"name": "reflect.ownkeys",
"version": "1.0.2",
"version": "1.1.0",
"description": "ES2015 spec-compliant shim for Reflect.ownKeys",

@@ -9,2 +9,4 @@ "main": "index.js",

{
"import": "./index.mjs",
"require": "./index.js",
"default": "./index.js"

@@ -14,26 +16,6 @@ },

],
"./auto": [
{
"default": "./auto.js"
},
"./auto.js"
],
"./shim": [
{
"default": "./shim.js"
},
"./shim.js"
],
"./polyfill": [
{
"default": "./polyfill.js"
},
"./polyfill.js"
],
"./implementation": [
{
"default": "./implementation.js"
},
"./implementation.js"
],
"./auto": "./auto.js",
"./shim": "./shim.js",
"./polyfill": "./polyfill.js",
"./implementation": "./implementation.js",
"./package": "./package.json",

@@ -43,3 +25,4 @@ "./package.json": "./package.json"

"scripts": {
"prepublish": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"lint": "eslint .",

@@ -49,3 +32,4 @@ "postlint": "es-shim-api --bound",

"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"tests-esm": "nyc node test/index.mjs",
"test": "npm run tests-only && npm run tests-esm",
"posttest": "aud --production",

@@ -81,14 +65,13 @@ "version": "auto-changelog && git add CHANGELOG.md",

"devDependencies": {
"@es-shims/api": "^2.1.2",
"@ljharb/eslint-config": "^17.3.0",
"aud": "^1.1.3",
"auto-changelog": "^2.2.1",
"call-bind": "^1.0.0",
"eslint": "^7.16.0",
"@es-shims/api": "^2.2.2",
"@ljharb/eslint-config": "^18.0.0",
"aud": "^1.1.5",
"auto-changelog": "^2.3.0",
"eslint": "^7.32.0",
"functions-have-names": "^1.2.2",
"has-strict-mode": "^1.0.1",
"has-symbols": "^1.0.1",
"has-symbols": "^1.0.2",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.1"
"tape": "^5.3.1"
},

@@ -104,6 +87,7 @@ "auto-changelog": {

"dependencies": {
"call-bind": "^1.0.2",
"define-properties": "^1.1.3",
"es-abstract": "^1.18.0-next.1",
"globalthis": "^1.0.1"
"es-abstract": "^1.19.1",
"globalthis": "^1.0.2"
}
}
# reflect.ownkeys <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]

@@ -53,1 +55,5 @@ [![dev dependency status][dev-deps-svg]][dev-deps-url]

[downloads-url]: https://npm-stat.com/charts.html?package=reflect.ownkeys
[codecov-image]: https://codecov.io/gh/es-shims/Reflect.ownKeys/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/es-shims/Reflect.ownKeys/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Reflect.ownKeys
[actions-url]: https://github.com/es-shims/Reflect.ownKeys/actions
'use strict';
var getPolyfill = require('./polyfill');
var define = require('define-properties');
var CreateMethodProperty = require('es-abstract/2021/CreateMethodProperty');
var DefinePropertyOrThrow = require('es-abstract/2021/DefinePropertyOrThrow');
var globalThis = require('globalthis')();
var getPolyfill = require('./polyfill');
module.exports = function shimReflectOwnKeys() {
var polyfill = getPolyfill();
if (typeof Reflect === 'undefined') {
define(globalThis, {
Reflect: {}
});
var R = {};
if (typeof Symbol === 'function' && Symbol.toStringTag) {
DefinePropertyOrThrow(R, Symbol.toStringTag, {
'[[Configurable]]': true,
'[[Enumerable]]': false,
'[[Value]]': 'Reflect',
'[[Writable]]': false
});
}
CreateMethodProperty(globalThis, 'Reflect', R);
}
define(Reflect, { ownKeys: polyfill }, {
values: function testReflectOwnKeys() {
return Reflect.ownKeys !== polyfill;
}
});
var polyfill = getPolyfill();
if (polyfill !== Reflect.ownKeys) {
CreateMethodProperty(Reflect, 'ownKeys', polyfill);
}
return polyfill;
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc