@guanghechen/invariant 6.0.3 → 6.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <header>
2
2
  <h1 align="center">
3
- <a href="https://github.com/guanghechen/sora/tree/@guanghechen/invariant@6.0.3/packages/invariant#readme">@guanghechen/invariant</a>
3
+ <a href="https://github.com/guanghechen/sora/tree/@guanghechen/invariant@6.0.5/packages/invariant#readme">@guanghechen/invariant</a>
4
4
  </h1>
5
5
  <div align="center">
6
6
  <a href="https://www.npmjs.com/package/@guanghechen/invariant">
@@ -84,5 +84,5 @@ and throw an error when the given condition fails.
84
84
 
85
85
  ## Related
86
86
 
87
- [homepage]: https://github.com/guanghechen/sora/tree/@guanghechen/invariant@6.0.3/packages/invariant#readme
87
+ [homepage]: https://github.com/guanghechen/sora/tree/@guanghechen/invariant@6.0.5/packages/invariant#readme
88
88
  [tiny-invariant]: https://github.com/alexreardon/tiny-invariant
package/lib/cjs/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const isProduction = process.env['NODE_ENV'] === 'production';
5
+ const isProduction = process.env.NODE_ENV === 'production';
6
6
  const prefix = 'Invariant failed';
7
7
  function invariant(condition, message) {
8
8
  if (condition)
@@ -16,4 +16,3 @@ function invariant(condition, message) {
16
16
 
17
17
  exports.default = invariant;
18
18
  exports.invariant = invariant;
19
- //# sourceMappingURL=index.cjs.map
package/lib/esm/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const isProduction = process.env['NODE_ENV'] === 'production';
1
+ const isProduction = process.env.NODE_ENV === 'production';
2
2
  const prefix = 'Invariant failed';
3
3
  function invariant(condition, message) {
4
4
  if (condition)
@@ -11,4 +11,3 @@ function invariant(condition, message) {
11
11
  }
12
12
 
13
13
  export { invariant as default, invariant };
14
- //# sourceMappingURL=index.mjs.map
@@ -8,4 +8,3 @@
8
8
  declare function invariant(condition: boolean, message?: (() => string) | string | null): asserts condition;
9
9
 
10
10
  export { invariant as default, invariant };
11
- //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guanghechen/invariant",
3
- "version": "6.0.3",
3
+ "version": "6.0.5",
4
4
  "description": "A simple invariant function",
5
5
  "author": {
6
6
  "name": "guanghechen",
@@ -8,10 +8,10 @@
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/guanghechen/sora/tree/@guanghechen/invariant@6.0.2",
11
+ "url": "https://github.com/guanghechen/sora/tree/@guanghechen/invariant@6.0.4",
12
12
  "directory": "packages/invariant"
13
13
  },
14
- "homepage": "https://github.com/guanghechen/sora/tree/@guanghechen/invariant@6.0.2/packages/invariant#readme",
14
+ "homepage": "https://github.com/guanghechen/sora/tree/@guanghechen/invariant@6.0.4/packages/invariant#readme",
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
@@ -37,5 +37,5 @@
37
37
  "LICENSE",
38
38
  "README.md"
39
39
  ],
40
- "gitHead": "4d896054ffb818e22b520d50cb4030ec09abc277"
40
+ "gitHead": "163ec00ff9d6f2d26673bccd3b6f6f31db195d7a"
41
41
  }