@solana-mobile/dapp-store-publishing-tools 0.13.1 → 0.14.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/lib/CoreUtils.js CHANGED
@@ -180,7 +180,7 @@ export var Constants = function Constants() {
180
180
  "use strict";
181
181
  _class_call_check(this, Constants);
182
182
  };
183
- _define_property(Constants, "PUBLISHING_SCHEMA_VER", "0.3.0");
183
+ _define_property(Constants, "PUBLISHING_SCHEMA_VER", "0.4.0");
184
184
  export var truncateAddress = function(address) {
185
185
  return "".concat(address.slice(0, 4), "...").concat(address.slice(address.length - 4, address.length));
186
186
  };
@@ -362,7 +362,7 @@ var getMediaMetadata = function(item) {
362
362
  export var createReleaseJson = function(param, publisherAddress) {
363
363
  var releaseDetails = param.releaseDetails, appDetails = param.appDetails, publisherDetails = param.publisherDetails;
364
364
  return _async_to_generator(function() {
365
- var media, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, item, _, err, files, _iteratorAbruptCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, _value1, item1, _1, err1, releaseIcon, imgUri, tmpMedia, _2, releaseMetadata, _iteratorNormalCompletion, _didIteratorError2, _iteratorError2, _iterator2, _step2, _step_value, locale, strings, _strings_saga_features;
365
+ var media, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, item, _, err, files, _iteratorAbruptCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, _value1, item1, _1, err1, releaseIcon, imgUri, tmpMedia, _2, _publisherDetails_support_email, releaseMetadata, _iteratorNormalCompletion, _didIteratorError2, _iteratorError2, _iterator2, _step2, _step_value, locale, strings, _strings_saga_features;
366
366
  return _ts_generator(this, function(_state) {
367
367
  switch(_state.label){
368
368
  case 0:
@@ -602,7 +602,8 @@ export var createReleaseJson = function(param, publisherAddress) {
602
602
  publisher_details: {
603
603
  name: publisherDetails.name,
604
604
  website: publisherDetails.website,
605
- contact: publisherDetails.email
605
+ contact: publisherDetails.email,
606
+ support_email: (_publisherDetails_support_email = publisherDetails.support_email) !== null && _publisherDetails_support_email !== void 0 ? _publisherDetails_support_email : publisherDetails.email
606
607
  },
607
608
  release_details: {
608
609
  updated_on: new Date().toISOString(),
@@ -53,9 +53,13 @@
53
53
  "contact": {
54
54
  "type": "string",
55
55
  "pattern": "^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
56
+ },
57
+ "support_email": {
58
+ "type": "string",
59
+ "pattern": "^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
56
60
  }
57
61
  },
58
- "required": ["name", "website", "contact"]
62
+ "required": ["name", "website", "contact", "support_email"]
59
63
  },
60
64
  "release_details": {
61
65
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana-mobile/dapp-store-publishing-tools",
3
- "version": "0.13.1",
3
+ "version": "0.14.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
package/src/CoreUtils.ts CHANGED
@@ -8,7 +8,7 @@ import type {
8
8
  import { ComputeBudgetProgram } from "@solana/web3.js";
9
9
 
10
10
  export class Constants {
11
- static PUBLISHING_SCHEMA_VER = "0.3.0";
11
+ static PUBLISHING_SCHEMA_VER = "0.4.0";
12
12
  }
13
13
  export const truncateAddress = (address: string) => {
14
14
  return `${address.slice(0, 4)}...${address.slice(
@@ -130,6 +130,7 @@ export const createReleaseJson = async (
130
130
  name: publisherDetails.name,
131
131
  website: publisherDetails.website,
132
132
  contact: publisherDetails.email,
133
+ support_email: publisherDetails.support_email ?? publisherDetails.email,
133
134
  },
134
135
  release_details: {
135
136
  updated_on: new Date().toISOString(),
@@ -24,6 +24,7 @@ export interface ReleaseJsonMetadata {
24
24
  name: string;
25
25
  website: string;
26
26
  contact: string;
27
+ support_email: string;
27
28
  [k: string]: unknown;
28
29
  };
29
30
  release_details: {
@@ -53,9 +53,13 @@
53
53
  "contact": {
54
54
  "type": "string",
55
55
  "pattern": "^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
56
+ },
57
+ "support_email": {
58
+ "type": "string",
59
+ "pattern": "^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
56
60
  }
57
61
  },
58
- "required": ["name", "website", "contact"]
62
+ "required": ["name", "website", "contact", "support_email"]
59
63
  },
60
64
  "release_details": {
61
65
  "type": "object",
package/src/types.ts CHANGED
@@ -43,6 +43,7 @@ export type Publisher = {
43
43
  name: string;
44
44
  website: string;
45
45
  email: string;
46
+ support_email?: string;
46
47
  };
47
48
 
48
49
  export type App = {