@koralabs/kora-labs-common 2.0.7 → 2.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.
@@ -56,9 +56,9 @@ export interface ICreatorDefaults extends ISharedPzDesigner {
56
56
  bg_border_colors?: HexStringOrEmpty[];
57
57
  pfp_border_colors?: HexStringOrEmpty[];
58
58
  font_shadow_colors?: HexStringOrEmpty[];
59
- require_pfp_collections?: HexStringOrEmpty[];
60
- require_pfp_attributes?: string[];
61
- require_pfp_displayed?: BoolInt;
59
+ require_asset_collections?: HexStringOrEmpty[];
60
+ require_asset_attributes?: string[];
61
+ require_asset_displayed?: BoolInt;
62
62
  price?: number;
63
63
  force_creator_settings?: BoolInt;
64
64
  custom_dollar_symbol?: BoolInt;
@@ -10,7 +10,7 @@ const checkHandlePattern = (handle, root) => {
10
10
  message: constants_1.RESPONSE_UNAVAILABLE_LEGENDARY
11
11
  };
12
12
  }
13
- if (!handle.match(constants_1.REGEX_SUB_HANDLE) && (root ? handle.endsWith(`@${root}`) : true)) {
13
+ if (!handle.match(constants_1.REGEX_SUB_HANDLE) && root ? handle.endsWith(`@${root}`) : true) {
14
14
  return {
15
15
  valid: false,
16
16
  message: constants_1.RESPONSE_INVALID_HANDLE_FORMAT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koralabs/kora-labs-common",
3
- "version": "2.0.7",
3
+ "version": "2.2.0",
4
4
  "description": "Kora Labs Common Utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -16,7 +16,8 @@
16
16
  ],
17
17
  "scripts": {
18
18
  "test": "node --experimental-vm-modules node_modules/.bin/jest",
19
- "build": "tsc"
19
+ "build": "tsc",
20
+ "npm:publish": "yarn build && yarn publish"
20
21
  },
21
22
  "author": "",
22
23
  "license": "ISC",