mobx 6.9.0 → 6.9.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobx",
3
- "version": "6.9.0",
3
+ "version": "6.9.1",
4
4
  "description": "Simple, scalable state management.",
5
5
  "source": "src/mobx.ts",
6
6
  "main": "dist/index.js",
@@ -75,6 +75,6 @@
75
75
  "test:coverage": "yarn test -i --coverage",
76
76
  "test:size": "yarn import-size --report . observable computed autorun action",
77
77
  "test:check": "yarn test:types",
78
- "prepublish": "node ./scripts/prepublish.js && yarn build --target publish"
78
+ "prepublishOnly": "node ./scripts/prepublish.js && yarn build --target publish"
79
79
  }
80
80
  }
package/src/api/trace.ts CHANGED
@@ -5,7 +5,7 @@ export function trace(thing?: any, enterBreakPoint?: boolean): void
5
5
  export function trace(enterBreakPoint?: boolean): void
6
6
  export function trace(...args: any[]): void {
7
7
  if (!__DEV__) {
8
- die(`trace() is not available in production builds`)
8
+ return
9
9
  }
10
10
  let enterBreakPoint = false
11
11
  if (typeof args[args.length - 1] === "boolean") {