@jobber/hooks 2.14.0 → 2.15.0

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
@@ -4,7 +4,6 @@ Shared hooks for components in Atlantis.
4
4
 
5
5
  ## Hooks
6
6
 
7
- - [useAssert](../?path=/docs/hooks-useassert--docs)
8
7
  - [useCallbackRef](../?path=/docs/hooks-usecallbackref--docs)
9
8
  - [useBool](../?path=/docs/hooks-usebool--docs)
10
9
  - [useCollectionQuery](../?path=/docs/hooks-usecollectionquery--docs)
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export * from "./useAssert";
2
1
  export * from "./useBool";
3
2
  export * from "./useBreakpoints";
4
3
  export * from "./useCallbackRef";
package/dist/index.js CHANGED
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./useAssert"), exports);
18
17
  __exportStar(require("./useBool"), exports);
19
18
  __exportStar(require("./useBreakpoints"), exports);
20
19
  __exportStar(require("./useCallbackRef"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/hooks",
3
- "version": "2.14.0",
3
+ "version": "2.15.0",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",
@@ -38,5 +38,5 @@
38
38
  "@apollo/client": "^3.0.0",
39
39
  "react": "^18.2.0"
40
40
  },
41
- "gitHead": "05abc863b320dcb1f5f8e3fc9e950fb17a5d2ae3"
41
+ "gitHead": "065748b88086d7e331a152db5e2db163c8f26f42"
42
42
  }
@@ -1 +0,0 @@
1
- export { useAssert } from "./useAssert";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useAssert = void 0;
4
- var useAssert_1 = require("./useAssert");
5
- Object.defineProperty(exports, "useAssert", { enumerable: true, get: function () { return useAssert_1.useAssert; } });
@@ -1,5 +0,0 @@
1
- interface Options {
2
- readonly warn: boolean;
3
- }
4
- export declare function useAssert(shouldShow: boolean, message: string, options?: Options): void;
5
- export {};
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.useAssert = useAssert;
7
- const process_1 = __importDefault(require("process"));
8
- function useAssert(shouldShow, message, options) {
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) {
11
- if (options === null || options === void 0 ? void 0 : options.warn) {
12
- console.warn(message);
13
- }
14
- else {
15
- throw new Error(message);
16
- }
17
- }
18
- }
package/useAssert.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./dist/useAssert";
package/useAssert.js DELETED
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true,
5
- });
6
-
7
- var useAssert = require("./dist/useAssert");
8
-
9
- Object.keys(useAssert).forEach(function(key) {
10
- if (key === "default" || key === "__esModule") return;
11
- Object.defineProperty(exports, key, {
12
- enumerable: true,
13
- get: function get() {
14
- return useAssert[key];
15
- },
16
- });
17
- });