New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

globalthis

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

globalthis - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

.nyc_output/126fcd06df05de6248e8330a734888e9.json

24

CHANGELOG.md

@@ -8,4 +8,26 @@ # Changelog

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
## [v1.0.2](https://github.com/es-shims/globalThis/compare/v1.0.1...v1.0.2) - 2021-02-22
### Commits
- [Tests] migrate tests to Github Actions [`a3f50f7`](https://github.com/es-shims/globalThis/commit/a3f50f77a392c0ffdaca18fb5881743b874d0a6f)
- [meta] do not publish github action workflow files [`eb5c787`](https://github.com/es-shims/globalThis/commit/eb5c7879317cd7f1fde52228660be8e779c9d4e3)
- [Tests] add `implementation` est; run `es-shim-api` in postlint; use `tape` runner [`c9dd792`](https://github.com/es-shims/globalThis/commit/c9dd792d492ec9744a5e5d5033e919b94d441bac)
- [Tests] fix native tests [`6b76dff`](https://github.com/es-shims/globalThis/commit/6b76dff3af3fe9bcd7b24d48c6ba55116169e840)
- [Tests] run `nyc` on all tests [`0407f79`](https://github.com/es-shims/globalThis/commit/0407f79f64bf9fc30111f3bf4dff7e4205331fb6)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape`, `browserify` [`b8cc020`](https://github.com/es-shims/globalThis/commit/b8cc020e5ecc2d5a5a5b4160aabc60cc42d50c03)
- [actions] add "Allow Edits" workflow [`e2854df`](https://github.com/es-shims/globalThis/commit/e2854df653667b16ff34a7a0a7b677231dfe2b02)
- [readme] remove travis badge [`262eb76`](https://github.com/es-shims/globalThis/commit/262eb76e4e0d3f2df354cc6aff1b18f50c7b147f)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`; add `safe-publish-latest` [`3c76883`](https://github.com/es-shims/globalThis/commit/3c7688325f6aa050afe3ed978e423e70974e4d3b)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`7276123`](https://github.com/es-shims/globalThis/commit/727612396262fc22275f44159ec5b39115dc359f)
- [actions] update workflows [`bcb0f42`](https://github.com/es-shims/globalThis/commit/bcb0f42c319cf19746e03a6667cf25d3e835f46e)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`5485851`](https://github.com/es-shims/globalThis/commit/548585148e874d6eb0b0463526a88e8b64e7c5eb)
- [Dev Deps] update `auto-changelog`, `tape` [`6a01da3`](https://github.com/es-shims/globalThis/commit/6a01da3f321983d1970d793711d31cf8508ef94d)
- [Dev Deps] update `@ljharb/eslint-config`, `tape` [`7a07f4e`](https://github.com/es-shims/globalThis/commit/7a07f4ebc5580933b40bbe67f357632e0f7d5586)
- [meta] only run the build script in publish [`797e492`](https://github.com/es-shims/globalThis/commit/797e492519ed0bf6270537290e69ca0456790575)
- [meta] combine duplicate `prepublish` scripts [`92bbef0`](https://github.com/es-shims/globalThis/commit/92bbef0f91f6e91163186f68b5f5f1ffd26c479d)
- [Dev Deps] update `auto-changelog`; add `aud` [`be6dbec`](https://github.com/es-shims/globalThis/commit/be6dbecefddb40493c5568a2cbe83f74e2e0385f)
- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`bfd54f8`](https://github.com/es-shims/globalThis/commit/bfd54f8388758e7dec618dc34956e7075a7c15f0)
- [Tests] only audit prod deps [`0f64b47`](https://github.com/es-shims/globalThis/commit/0f64b47acfa812affbacbe487fcb0f6c02eccc25)
## [v1.0.1](https://github.com/es-shims/globalThis/compare/v1.0.0...v1.0.1) - 2019-12-15

@@ -12,0 +34,0 @@

34

package.json
{
"name": "globalthis",
"version": "1.0.1",
"version": "1.0.2",
"author": "Jordan Harband <ljharb@gmail.com>",

@@ -15,14 +15,10 @@ "funding": {

"scripts": {
"pretest": "npm run --silent lint && es-shim-api --bound --property",
"prepublish": "safe-publish-latest && (not-in-publish || npm run --silent build)",
"pretest": "npm run lint",
"test": "npm run --silent tests-only",
"posttest": "npx aud",
"tests-only": "npm run --silent test:implementation && npm run --silent test:shim",
"test:native": "node test/native.js",
"test:shim": "node test/shimmed.js",
"test:implementation": "node test/index.js",
"coverage": "covert test/*.js",
"coverage:quiet": "covert test/*.js --quiet",
"posttest": "npx aud --production",
"tests-only": "nyc tape 'test/**/*.js'",
"lint": "eslint .",
"postlint": "es-shim-api --bound --property",
"build": "mkdir -p dist && browserify browserShim.js > dist/browser.js",
"prepublish": "npm run --silent build",
"version": "auto-changelog && git add CHANGELOG.md",

@@ -53,10 +49,13 @@ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""

"@es-shims/api": "^2.1.2",
"@ljharb/eslint-config": "^15.0.2",
"auto-changelog": "^1.16.2",
"browserify": "^16.5.0",
"covert": "^1.1.1",
"eslint": "^6.7.2",
"@ljharb/eslint-config": "^17.5.1",
"aud": "^1.1.4",
"auto-changelog": "^2.2.1",
"browserify": "^16.5.2",
"eslint": "^7.20.0",
"for-each": "^0.3.3",
"in-publish": "^2.0.1",
"is": "^3.3.0",
"tape": "^4.11.0"
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"tape": "^5.2.0"
},

@@ -89,4 +88,5 @@ "testling": {

"commitLimit": false,
"backfillLimit": false
"backfillLimit": false,
"hideCredit": true
}
}
# globalThis <sup>[![Version Badge][npm-version-svg]][npm-url]</sup>
[![Build Status][travis-svg]][travis-url]
[![dependency status][deps-svg]][deps-url]

@@ -56,5 +55,3 @@ [![dev dependency status][dev-deps-svg]][dev-deps-url]

[npm-url]: https://npmjs.org/package/globalthis
[npm-version-svg]: http://versionbadg.es/ljharb/globalThis.svg
[travis-svg]: https://travis-ci.org/ljharb/globalThis.svg
[travis-url]: https://travis-ci.org/ljharb/globalThis
[npm-version-svg]: https://versionbadg.es/ljharb/globalThis.svg
[deps-svg]: https://david-dm.org/ljharb/globalThis.svg?theme=shields.io

@@ -64,8 +61,6 @@ [deps-url]: https://david-dm.org/ljharb/globalThis

[dev-deps-url]: https://david-dm.org/ljharb/globalThis#info=devDependencies
[testling-png]: https://ci.testling.com/ljharb/globalThis.png
[testling-url]: https://ci.testling.com/ljharb/globalThis
[npm-badge-png]: https://nodei.co/npm/globalthis.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/globalthis.svg
[license-image]: https://img.shields.io/npm/l/globalthis.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/globalthis.svg
[downloads-url]: http://npm-stat.com/charts.html?package=globalthis
[downloads-image]: https://img.shields.io/npm/dm/globalthis.svg
[downloads-url]: https://npm-stat.com/charts.html?package=globalthis

@@ -7,16 +7,21 @@ 'use strict';

var missing = {};
var theGlobal = typeof globalThis === 'object' ? globalThis : missing;
var runTests = require('./tests');
test('native', function (t) {
t.equal(typeof global, 'object', 'global is an object');
t.equal(global in global, true, 'global is in global');
test('native', { todo: theGlobal === missing }, function (t) {
if (theGlobal !== missing) {
t.equal(typeof theGlobal, 'object', 'globalThis is an object');
t.equal('globalThis' in theGlobal, true, 'globalThis is in globalThis');
t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
et.equal(false, isEnumerable.call(global, 'global'), 'global is not enumerable');
et.end();
});
t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
et.equal(false, isEnumerable.call(theGlobal, 'globalThis'), 'globalThis is not enumerable');
et.end();
});
runTests(global, t);
runTests(theGlobal, t);
}
t.end();
});
'use strict';
var systemGlobal = require('../');
systemGlobal.shim();
require('../auto');

@@ -6,0 +5,0 @@ var test = require('tape');

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