@jobber/hooks 2.8.1-pre.25 → 2.8.1-pre.26
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.
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.useAssert = void 0;
|
|
7
|
+
const process_1 = __importDefault(require("process"));
|
|
4
8
|
function useAssert(shouldShow, message, options) {
|
|
5
|
-
|
|
6
|
-
if (env && shouldShow) {
|
|
9
|
+
var _a;
|
|
10
|
+
if (((_a = process_1.default === null || process_1.default === void 0 ? void 0 : process_1.default.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) !== "production" && shouldShow) {
|
|
7
11
|
if (options === null || options === void 0 ? void 0 : options.warn) {
|
|
8
12
|
console.warn(message);
|
|
9
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/hooks",
|
|
3
|
-
"version": "2.8.1-pre.
|
|
3
|
+
"version": "2.8.1-pre.26+e7035fef",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"@apollo/client": "^3.0.0",
|
|
45
45
|
"react": "^18"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "e7035fef32a5e9c392a7134086d6d628595c6690"
|
|
48
48
|
}
|