@takeshape/util 8.62.0 → 8.65.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.
@@ -0,0 +1,2 @@
1
+ import { value } from './value';
2
+ export const asyncNoop = value(Promise.resolve());
package/es/common.js CHANGED
@@ -16,4 +16,5 @@ export * from './draftjs';
16
16
  export * from './templates';
17
17
  export * from './highlight-code';
18
18
  export * from './billing';
19
- export * from './timezone';
19
+ export * from './timezone';
20
+ export * from './async-noop';
@@ -0,0 +1,2 @@
1
+ export declare const asyncNoop: () => Promise<void>;
2
+ //# sourceMappingURL=async-noop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async-noop.d.ts","sourceRoot":"","sources":["../../src/async-noop.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,qBAA2B,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.asyncNoop = void 0;
7
+
8
+ var _value = require("./value");
9
+
10
+ const asyncNoop = (0, _value.value)(Promise.resolve());
11
+ exports.asyncNoop = asyncNoop;
package/lib/common.d.ts CHANGED
@@ -17,4 +17,5 @@ export * from './templates';
17
17
  export * from './highlight-code';
18
18
  export * from './billing';
19
19
  export * from './timezone';
20
+ export * from './async-noop';
20
21
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
package/lib/common.js CHANGED
@@ -249,4 +249,17 @@ Object.keys(_timezone).forEach(function (key) {
249
249
  return _timezone[key];
250
250
  }
251
251
  });
252
+ });
253
+
254
+ var _asyncNoop = require("./async-noop");
255
+
256
+ Object.keys(_asyncNoop).forEach(function (key) {
257
+ if (key === "default" || key === "__esModule") return;
258
+ if (key in exports && exports[key] === _asyncNoop[key]) return;
259
+ Object.defineProperty(exports, key, {
260
+ enumerable: true,
261
+ get: function () {
262
+ return _asyncNoop[key];
263
+ }
264
+ });
252
265
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/util",
3
- "version": "8.62.0",
3
+ "version": "8.65.0",
4
4
  "description": "Shared utilities",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
@@ -21,7 +21,7 @@
21
21
  "es"
22
22
  ],
23
23
  "dependencies": {
24
- "@takeshape/routing": "8.62.0",
24
+ "@takeshape/routing": "8.65.0",
25
25
  "@types/url-parse": "^1.4.4",
26
26
  "aws-sdk": "^2.802.0",
27
27
  "classnames": "^2.2.5",