@streamflow/common 7.3.2 → 7.4.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.
@@ -2,6 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.pk = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
+ /**
6
+ * Converts a string or PublicKey to a PublicKey object.
7
+ * @param address - The input address as a string or PublicKey.
8
+ * @returns The PublicKey object.
9
+ */
5
10
  const pk = (address) => {
6
11
  return typeof address === "string" ? new web3_js_1.PublicKey(address) : address;
7
12
  };
@@ -1,2 +1,7 @@
1
1
  import { PublicKey } from "@solana/web3.js";
2
+ /**
3
+ * Converts a string or PublicKey to a PublicKey object.
4
+ * @param address - The input address as a string or PublicKey.
5
+ * @returns The PublicKey object.
6
+ */
2
7
  export declare const pk: (address: string | PublicKey) => PublicKey;
@@ -1,4 +1,9 @@
1
1
  import { PublicKey } from "@solana/web3.js";
2
+ /**
3
+ * Converts a string or PublicKey to a PublicKey object.
4
+ * @param address - The input address as a string or PublicKey.
5
+ * @returns The PublicKey object.
6
+ */
2
7
  export const pk = (address) => {
3
8
  return typeof address === "string" ? new PublicKey(address) : address;
4
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamflow/common",
3
- "version": "7.3.2",
3
+ "version": "7.4.0",
4
4
  "description": "Common utilities and types used by streamflow packages.",
5
5
  "homepage": "https://github.com/streamflow-finance/js-sdk/",
6
6
  "main": "./dist/esm/index.js",
@@ -27,9 +27,9 @@
27
27
  "lint-config": "eslint --print-config",
28
28
  "prepublishOnly": "npm run lint && npm run build"
29
29
  },
30
- "gitHead": "f124c062b751ea955dc18caeb1ccee5e6e7b0301",
30
+ "gitHead": "7c307d2f70d9af073ceab20597865394295a459b",
31
31
  "devDependencies": {
32
- "@streamflow/eslint-config": "7.3.2",
32
+ "@streamflow/eslint-config": "7.4.0",
33
33
  "@types/bn.js": "5.1.1",
34
34
  "date-fns": "2.28.0",
35
35
  "typescript": "^5.6.3"