@stemy/ngx-utils 19.5.5 → 19.5.6

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.
@@ -7,3 +7,10 @@ export declare class StringUtils {
7
7
  static isObjectId(id: string): boolean;
8
8
  static parseDomain(baseUrl: string): string;
9
9
  }
10
+ /**
11
+ * Returns a hash code from a string
12
+ * @param {String} str The string to hash.
13
+ * @return {Number} A 32bit integer
14
+ * @see http://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/
15
+ */
16
+ export declare function hashCode(str: string): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "19.5.5",
3
+ "version": "19.5.6",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",
package/public_api.d.ts CHANGED
@@ -21,7 +21,7 @@ export { checkTransitions, getComponentDef, parseSelector, selectorMatchesList,
21
21
  export { ObjectUtils } from "./ngx-utils/utils/object.utils";
22
22
  export { ObservableUtils, ISubscriberInfo } from "./ngx-utils/utils/observable.utils";
23
23
  export { CancelablePromise, cancelablePromise, impatientPromise } from "./ngx-utils/utils/promise.utils";
24
- export { StringUtils } from "./ngx-utils/utils/string.utils";
24
+ export { StringUtils, hashCode } from "./ngx-utils/utils/string.utils";
25
25
  export { SetUtils } from "./ngx-utils/utils/set.utils";
26
26
  export { SocketFactory, SocketData, SocketDataValue, SocketDataObj, SocketClient } from "./ngx-utils/utils/socket-client";
27
27
  export { TimerUtils } from "./ngx-utils/utils/timer.utils";