@permaweb/libs 0.0.63 → 0.0.65

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.
@@ -10,9 +10,8 @@ export type DependencyType = {
10
10
  };
11
11
  export type ProcessReadType = {
12
12
  processId: string;
13
- path: string;
13
+ path?: string;
14
14
  fallbackAction: string;
15
- serialize?: boolean;
16
15
  tags?: TagType[];
17
16
  };
18
17
  export type ProcessSpawnType = {
@@ -1,3 +1,4 @@
1
+ import { TagType } from './types.ts';
1
2
  export declare function checkValidAddress(address: string | null): boolean;
2
3
  export declare function formatAddress(address: string | null, wrap: boolean): string;
3
4
  export declare function getTagValue(list: {
@@ -37,3 +38,4 @@ export declare function getBootTag(key: string, value: string): {
37
38
  value: string;
38
39
  };
39
40
  export declare function isValidMediaData(data: any): any;
41
+ export declare function cleanTagValues(tags: TagType[]): TagType[];
@@ -7,7 +7,6 @@ declare function init(deps: Helpers.DependencyType): {
7
7
  createZone: (args: {
8
8
  data?: any;
9
9
  tags?: Helpers.TagType[];
10
- spawnModeration?: boolean;
11
10
  authUsers?: string[];
12
11
  }, callback?: (status: any) => void) => Promise<string | null>;
13
12
  updateZone: (args: object, zoneId: string) => Promise<string | null>;
@@ -34,6 +33,11 @@ declare function init(deps: Helpers.DependencyType): {
34
33
  zoneId: string;
35
34
  authorityId: string;
36
35
  }) => Promise<string | null>;
36
+ transferZoneOwnership: (args: {
37
+ zoneId: string;
38
+ op: "Invite" | "Accept" | "Reject" | "Cancel";
39
+ to?: string;
40
+ }) => Promise<string | null>;
37
41
  createProfile: (args: Helpers.ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
38
42
  updateProfile: (args: Helpers.ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
39
43
  updateProfileVersion: (args: {
@@ -2,7 +2,6 @@ import { DependencyType, TagType } from '../helpers/types.ts';
2
2
  export declare function createZoneWith(deps: DependencyType): (args: {
3
3
  data?: any;
4
4
  tags?: TagType[];
5
- spawnModeration?: boolean;
6
5
  authUsers?: string[];
7
6
  }, callback?: (status: any) => void) => Promise<string | null>;
8
7
  export declare function updateZoneWith(deps: DependencyType): (args: object, zoneId: string) => Promise<string | null>;
@@ -29,3 +28,8 @@ export declare function updateZoneAuthoritiesWith(deps: DependencyType): (args:
29
28
  authorityId: string;
30
29
  }) => Promise<string | null>;
31
30
  export declare function getZoneWith(deps: DependencyType): (zoneId: string) => Promise<any | null>;
31
+ export declare function transferZoneOwnershipWith(deps: DependencyType): (args: {
32
+ zoneId: string;
33
+ op: "Invite" | "Accept" | "Reject" | "Cancel";
34
+ to?: string;
35
+ }) => Promise<string | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@permaweb/libs",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -38,6 +38,7 @@
38
38
  "./node": "./dist/index.js"
39
39
  },
40
40
  "scripts": {
41
+ "prepare": "husky install",
41
42
  "clean:install": "rm -rf node_modules package-lock.json || true && npm cache clean --force && npm install",
42
43
  "format": "eslint --fix . && npx prettier --write .",
43
44
  "build": "node build.js"
@@ -60,7 +61,9 @@
60
61
  "eslint": "^8.35.0",
61
62
  "eslint-plugin-import": "^2.27.5",
62
63
  "eslint-plugin-simple-import-sort": "^10.0.0",
64
+ "husky": "^9.1.7",
63
65
  "os-browserify": "^0.3.0",
66
+ "prettier": "^3.6.2",
64
67
  "process": "^0.11.10",
65
68
  "stream-browserify": "^3.0.0",
66
69
  "tsc-alias": "^1.8.10",