@blocklet/launcher-util 2.3.65 → 2.3.66

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/es/util.js CHANGED
@@ -128,6 +128,7 @@ const getBlockletUrlOnStore = ({ did, baseUrl }) => {
128
128
  return "";
129
129
  }
130
130
  };
131
+ const getDefaultTrialEnd = () => moment().add(1, "years").unix();
131
132
  const getProductFreeTrial = ({ typeName, freeTrialProducts, currencyId }) => {
132
133
  if (!Array.isArray(freeTrialProducts)) {
133
134
  return null;
@@ -158,6 +159,7 @@ const util = {
158
159
  getRegistryUrlFromBlockletMetaUrl,
159
160
  getBlockletLogoUrl,
160
161
  getBlockletUrlOnStore,
162
+ getDefaultTrialEnd,
161
163
  getProductFreeTrial
162
164
  };
163
165
  export {
@@ -171,6 +173,7 @@ export {
171
173
  getBlockletMetaUrlFromQuery,
172
174
  getBlockletUrlOnStore,
173
175
  getContinueLaunchURL,
176
+ getDefaultTrialEnd,
174
177
  getExplorerUrl,
175
178
  getProductFreeTrial,
176
179
  getRegistryUrlFromBlockletMetaUrl,
package/lib/util.js CHANGED
@@ -130,6 +130,7 @@ const getBlockletUrlOnStore = ({ did, baseUrl }) => {
130
130
  return "";
131
131
  }
132
132
  };
133
+ const getDefaultTrialEnd = () => moment().add(1, "years").unix();
133
134
  const getProductFreeTrial = ({ typeName, freeTrialProducts, currencyId }) => {
134
135
  if (!Array.isArray(freeTrialProducts)) {
135
136
  return null;
@@ -160,6 +161,7 @@ const util = {
160
161
  getRegistryUrlFromBlockletMetaUrl,
161
162
  getBlockletLogoUrl,
162
163
  getBlockletUrlOnStore,
164
+ getDefaultTrialEnd,
163
165
  getProductFreeTrial
164
166
  };
165
167
  exports.default = util;
@@ -172,6 +174,7 @@ exports.getBlockletLogoUrl = getBlockletLogoUrl;
172
174
  exports.getBlockletMetaUrlFromQuery = getBlockletMetaUrlFromQuery;
173
175
  exports.getBlockletUrlOnStore = getBlockletUrlOnStore;
174
176
  exports.getContinueLaunchURL = getContinueLaunchURL;
177
+ exports.getDefaultTrialEnd = getDefaultTrialEnd;
175
178
  exports.getExplorerUrl = getExplorerUrl;
176
179
  exports.getProductFreeTrial = getProductFreeTrial;
177
180
  exports.getRegistryUrlFromBlockletMetaUrl = getRegistryUrlFromBlockletMetaUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-util",
3
- "version": "2.3.65",
3
+ "version": "2.3.66",
4
4
  "description": "Common constants",
5
5
  "keywords": [
6
6
  "constant"
@@ -49,5 +49,5 @@
49
49
  "vite": "^5.4.8",
50
50
  "vite-plugin-build": "^0.10.0"
51
51
  },
52
- "gitHead": "fd9d8f05cc456803d3b15c9435a907d963efc061"
52
+ "gitHead": "9c8e82bc7ea6b00fc26421d443977b2b1e40106a"
53
53
  }