@gershy/lilac 0.0.7 → 0.0.8

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": "@gershy/lilac",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Luscious infrastructure Living as Code - an opinionated approach to IAC",
5
5
  "keywords": [
6
6
  "lilac",
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "@gershy/disk": "^0.0.10",
31
31
  "@gershy/logger": "^0.0.3",
32
- "@gershy/util-nodejs-proc": "^0.0.7",
32
+ "@gershy/util-nodejs-proc": "^0.0.8",
33
33
  "@gershy/util-phrasing": "^0.0.4"
34
34
  },
35
35
  "type": "module",
@@ -1,2 +0,0 @@
1
- declare const _default: (str: string | Buffer | Iterable<string | Buffer>, targetBase?: string) => string;
2
- export default _default;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const node_crypto_1 = require("node:crypto");
4
- const clearing_1 = require("@gershy/clearing");
5
- exports.default = (str, targetBase = String[base62]) => {
6
- // Consider moving this under the "node" directory - relies on "node:crypto'
7
- if ((0, clearing_1.isCls)(str, String) || (0, clearing_1.isCls)(str, Buffer))
8
- str = [str];
9
- const hash = (0, node_crypto_1.createHash)('sha256');
10
- for (const val of str)
11
- hash.update(val);
12
- return hash
13
- .digest('base64url')[toNum](String[base64Url])[toStr](targetBase);
14
- };
@@ -1,2 +0,0 @@
1
- declare const _default: (str: string | Buffer | Iterable<string | Buffer>, targetBase?: string) => string;
2
- export default _default;
@@ -1,12 +0,0 @@
1
- import { createHash } from 'node:crypto';
2
- import { isCls } from '@gershy/clearing';
3
- export default (str, targetBase = String[base62]) => {
4
- // Consider moving this under the "node" directory - relies on "node:crypto'
5
- if (isCls(str, String) || isCls(str, Buffer))
6
- str = [str];
7
- const hash = createHash('sha256');
8
- for (const val of str)
9
- hash.update(val);
10
- return hash
11
- .digest('base64url')[toNum](String[base64Url])[toStr](targetBase);
12
- };