Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apollographql/invariant-packages
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ts-invariant@0.9.0
Choose a base ref
...
head repository: apollographql/invariant-packages
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ts-invariant@0.9.1
Choose a head ref
  • 8 commits
  • 9 files changed
  • 3 contributors

Commits on Jul 16, 2021

  1. Copy the full SHA
    430e376 View commit details

Commits on Aug 3, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8d6c33a View commit details
  2. Copy the full SHA
    d9703da View commit details
  3. Copy the full SHA
    ff57e5c View commit details
  4. Copy the full SHA
    4116311 View commit details
  5. Copy the full SHA
    328169f View commit details
  6. Copy the full SHA
    f0be5f3 View commit details
  7. Publish

     - rollup-plugin-invariant@0.9.1
     - ts-invariant@0.9.1
    benjamn committed Aug 3, 2021
    Copy the full SHA
    a88a670 View commit details
54 changes: 27 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
"test": "npm run build && lerna run test"
},
"devDependencies": {
"@types/mocha": "^8.0.3",
"@types/mocha": "^9.0.0",
"@types/node": "^16.3.1",
"lerna": "^4.0.0",
"mocha": "^9.0.2",
8 changes: 4 additions & 4 deletions packages/rollup-plugin-invariant/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/rollup-plugin-invariant/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rollup-plugin-invariant",
"version": "0.9.0",
"version": "0.9.1",
"author": "Ben Newman <ben@apollographql.com>",
"description": "Rollup plugin to strip invariant(condition, message) strings in production",
"license": "MIT",
8 changes: 4 additions & 4 deletions packages/ts-invariant/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ts-invariant/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-invariant",
"version": "0.9.0",
"version": "0.9.1",
"author": "Ben Newman <ben@apollographql.com>",
"description": "TypeScript implementation of invariant(condition, message)",
"license": "MIT",
14 changes: 7 additions & 7 deletions packages/ts-invariant/process/index.js
Original file line number Diff line number Diff line change
@@ -3,19 +3,19 @@ function maybe(thunk) {
}

const safeGlobal = (
maybe(() => globalThis) ||
maybe(() => window) ||
maybe(() => self) ||
maybe(() => global) ||
maybe(() => Function("return this")())
maybe(function() { return globalThis }) ||
maybe(function() { return window }) ||
maybe(function() { return self }) ||
maybe(function() { return global }) ||
maybe(function() { return Function("return this")() })
);

let needToRemove = false;

export function install() {
if (safeGlobal &&
!maybe(() => process.env.NODE_ENV) &&
!maybe(() => process)) {
!maybe(function() { return process.env.NODE_ENV }) &&
!maybe(function() { return process })) {
Object.defineProperty(safeGlobal, "process", {
value: {
env: {
14 changes: 7 additions & 7 deletions packages/ts-invariant/process/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ts-invariant/process/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.