Socket
Socket
Sign inDemoInstall

object.values

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object.values - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

.github/workflows/rebase.yml

11

CHANGELOG.md

@@ -0,1 +1,12 @@

1.1.1 / 2019-12-12
=================
* [Refactor] use split-up `es-abstract` (85% bundle size decrease)
* [Deps] update `es-abstract`
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `functions-have-names`, `tape`, `object-keys`
* [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops
* [Tests] use shared travis-ci configs
* [Tests] use `functions-have-names`
* [meta] add `funding` field
* [actions] add automatic rebasing / merge commit blocking
1.1.0 / 2019-01-01

@@ -2,0 +13,0 @@ =================

11

implementation.js
'use strict';
var ES = require('es-abstract/es7');
var has = require('has');
var bind = require('function-bind');
var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable);
var RequireObjectCoercible = require('es-abstract/2019/RequireObjectCoercible');
var callBound = require('es-abstract/helpers/callBound');
var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
module.exports = function values(O) {
var obj = ES.RequireObjectCoercible(O);
var obj = RequireObjectCoercible(O);
var vals = [];
for (var key in obj) {
if (has(obj, key) && isEnumerable(obj, key)) {
if (has(obj, key) && $isEnumerable(obj, key)) {
vals.push(obj[key]);

@@ -14,0 +15,0 @@ }

{
"name": "object.values",
"version": "1.1.0",
"author": "Jordan Harband",
"version": "1.1.1",
"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"description": "ES2017 spec-compliant Object.values shim.",

@@ -9,14 +12,10 @@ "license": "MIT",

"scripts": {
"pretest": "npm run --silent lint",
"test": "npm run --silent tests-only",
"posttest": "npm run audit",
"tests-only": "es-shim-api && npm run --silent test:shimmed && npm run --silent test:module",
"test:shimmed": "node test/shimmed.js",
"test:module": "node test/index.js",
"pretest": "npm run lint",
"test": "npm run tests-only",
"posttest": "npx aud",
"tests-only": "es-shim-api && npm run test:shimmed && npm run test:module",
"test:shimmed": "node test/shimmed",
"test:module": "node test/index",
"coverage": "covert test/*.js",
"coverage-quiet": "covert test/*.js --quiet",
"lint": "eslint .",
"preaudit": "npm install --package-lock --package-lock-only",
"audit": "npm audit",
"postaudit": "rm package-lock.json"
"lint": "eslint ."
},

@@ -44,3 +43,3 @@ "repository": {

"define-properties": "^1.1.3",
"es-abstract": "^1.12.0",
"es-abstract": "^1.17.0-next.1",
"function-bind": "^1.1.1",

@@ -51,8 +50,9 @@ "has": "^1.0.3"

"@es-shims/api": "^2.1.2",
"@ljharb/eslint-config": "^13.1.1",
"@ljharb/eslint-config": "^15.0.2",
"array-map": "^0.0.0",
"covert": "^1.1.1",
"eslint": "^5.11.1",
"object-keys": "^1.0.12",
"tape": "^4.9.2"
"eslint": "^6.7.2",
"functions-have-names": "^1.2.0",
"object-keys": "^1.1.1",
"tape": "^4.11.0"
},

@@ -59,0 +59,0 @@ "testling": {

@@ -9,3 +9,3 @@ 'use strict';

var isEnumerable = Object.prototype.propertyIsEnumerable;
var functionsHaveNames = function f() {}.name === 'f';
var functionsHaveNames = require('functions-have-names')();

@@ -12,0 +12,0 @@ var runTests = require('./tests');

'use strict';
/* global Symbol */
var keys = require('object-keys');

@@ -6,0 +4,0 @@ var map = require('array-map');

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