@stryke/convert 0.1.5 → 0.2.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
@@ -22,7 +22,7 @@ This package is part of Storm Software's **đŸŒŠī¸ Stryke** monorepo. Stryke pac
22
22
 
23
23
  <h3 align="center">đŸ’ģ Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
24
24
 
25
- [![Version](https://img.shields.io/badge/version-0.1.4-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/stryke/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
+ [![Version](https://img.shields.io/badge/version-0.1.5-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/stryke/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
26
26
 
27
27
  > [!IMPORTANT] This repository, and the apps, libraries, and tools contained
28
28
  > within, is still in it's initial development phase. As a result, bugs and
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.bufferToString = void 0;
7
- const bufferToString = t => t.toString("utf8");
7
+ const bufferToString = f => f.toString("utf8");
8
8
  exports.bufferToString = bufferToString;
@@ -1 +1,8 @@
1
+ import type { Buffer } from "node:buffer";
2
+ /**
3
+ * Converts a buffer to a string.
4
+ *
5
+ * @param buf - The buffer to convert.
6
+ * @returns The converted string.
7
+ */
1
8
  export declare const bufferToString: (buf: Buffer) => string;
@@ -1 +1 @@
1
- export const bufferToString=t=>t.toString("utf8");
1
+ export const bufferToString=f=>f.toString("utf8");
@@ -4,5 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.uint8ArrayToString = void 0;
7
- const uint8ArrayToString = r => decodeURIComponent(Buffer.from(r).toString("utf8"));
7
+ var _nodeBuffer = require("node:buffer");
8
+ const uint8ArrayToString = r => decodeURIComponent(_nodeBuffer.Buffer.from(r).toString("utf8"));
8
9
  exports.uint8ArrayToString = uint8ArrayToString;
@@ -7,7 +7,7 @@
7
7
  * @credits https://stackoverflow.com/a/41798356/1465919
8
8
  * @credits https://stackoverflow.com/a/36949791/1465919
9
9
  *
10
- * @param array - Utf-8 Array
10
+ * @param arr - Utf-8 Array
11
11
  * @returns The converted string
12
12
  */
13
13
  export declare const uint8ArrayToString: (arr: Uint8Array) => string;
@@ -1 +1 @@
1
- export const uint8ArrayToString=r=>decodeURIComponent(Buffer.from(r).toString("utf8"));
1
+ import{Buffer as t}from"node:buffer";export const uint8ArrayToString=r=>decodeURIComponent(t.from(r).toString("utf8"));
@@ -7,7 +7,7 @@
7
7
  * @credits https://stackoverflow.com/a/41798356/1465919
8
8
  * @credits https://stackoverflow.com/a/36949791/1465919
9
9
  *
10
- * @param array - Utf-8 Array
10
+ * @param arr - Utf-8 Array
11
11
  * @returns The converted string
12
12
  */
13
- export declare const utf8ArrayToString: (array: Uint8Array) => string;
13
+ export declare const utf8ArrayToString: (arr: Uint8Array) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/convert",
3
- "version": "0.1.5",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "A utility package that helps convert between different data types.",
6
6
  "repository": {
@@ -9,12 +9,12 @@
9
9
  "directory": "packages/convert"
10
10
  },
11
11
  "private": false,
12
+ "devDependencies": { "@types/node": "^22.14.0" },
12
13
  "publishConfig": { "access": "public" },
13
14
  "dependencies": {
14
- "@stryke/type-checks": "^0.3.1",
15
- "@stryke/types": "^0.8.1"
15
+ "@stryke/type-checks": "^0.3.3",
16
+ "@stryke/types": "^0.8.3"
16
17
  },
17
- "devDependencies": {},
18
18
  "sideEffects": false,
19
19
  "files": ["dist/**/*"],
20
20
  "homepage": "https://stormsoftware.com",