@salesforce/packaging 1.2.1 → 1.2.3

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.
@@ -136,6 +136,18 @@ export declare class SubscriberPackageVersion {
136
136
  force?: boolean;
137
137
  includeHighCostFields?: boolean;
138
138
  }): Promise<PackagingSObjects.SubscriberPackageVersion>;
139
+ /**
140
+ * Wait for the subscriber package version to be replicated across instances and available to be queried against
141
+ *
142
+ * @param options.publishFrequency - how often to check for the package version to be published
143
+ * @param options.publishTimeout - how long to wait for the package version to be published
144
+ * @param options.installationKey - the installation key for the package version
145
+ */
146
+ waitForPublish(options?: {
147
+ publishFrequency: Duration;
148
+ publishTimeout: Duration;
149
+ installationKey?: string;
150
+ }): Promise<void>;
139
151
  /**
140
152
  * Installs a package version in a subscriber org.
141
153
  *
@@ -307,6 +307,16 @@ class SubscriberPackageVersion {
307
307
  }
308
308
  return this.data;
309
309
  }
310
+ /**
311
+ * Wait for the subscriber package version to be replicated across instances and available to be queried against
312
+ *
313
+ * @param options.publishFrequency - how often to check for the package version to be published
314
+ * @param options.publishTimeout - how long to wait for the package version to be published
315
+ * @param options.installationKey - the installation key for the package version
316
+ */
317
+ async waitForPublish(options = { publishFrequency: kit_1.Duration.seconds(5), publishTimeout: kit_1.Duration.minutes(5) }) {
318
+ await (0, packageInstall_1.waitForPublish)(this.connection, await this.getId(), options.publishFrequency, options.publishTimeout, options.installationKey);
319
+ }
310
320
  /**
311
321
  * Installs a package version in a subscriber org.
312
322
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/packaging",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Packaging library for the Salesforce packaging platform",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",
@@ -42,7 +42,7 @@
42
42
  "@salesforce/core": "^3.32.11",
43
43
  "@salesforce/kit": "^1.8.3",
44
44
  "@salesforce/schemas": "^1.5.0",
45
- "@salesforce/source-deploy-retrieve": "^7.5.19",
45
+ "@salesforce/source-deploy-retrieve": "^7.7.5",
46
46
  "@salesforce/ts-types": "^1.7.1",
47
47
  "@xmldom/xmldom": "^0.8.6",
48
48
  "debug": "^4.3.4",
@@ -68,13 +68,13 @@
68
68
  "@types/jszip": "^3.4.1",
69
69
  "@types/xml2js": "^0.4.11",
70
70
  "@typescript-eslint/eslint-plugin": "^5.40.1",
71
- "@typescript-eslint/parser": "5.48.1",
71
+ "@typescript-eslint/parser": "5.49.0",
72
72
  "chai": "^4.3.7",
73
73
  "commitizen": "^4.2.6",
74
74
  "eslint": "^8.31.0",
75
75
  "eslint-config-prettier": "^8.6.0",
76
76
  "eslint-config-salesforce": "^1.1.0",
77
- "eslint-config-salesforce-license": "^0.1.6",
77
+ "eslint-config-salesforce-license": "^0.2.0",
78
78
  "eslint-config-salesforce-typescript": "^1.1.1",
79
79
  "eslint-plugin-header": "3.1.1",
80
80
  "eslint-plugin-import": "^2.27.5",