@salesforce/packaging 0.0.14 → 0.0.15

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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.15](https://github.com/forcedotcom/packaging/compare/v0.0.14...v0.0.15) (2022-08-08)
6
+
7
+ ### Bug Fixes
8
+
9
+ - better callCount expectation ([b009e67](https://github.com/forcedotcom/packaging/commit/b009e67445a6e00990fd19fbd048d87008ee49ab))
10
+ - better timeout number for test ([3240911](https://github.com/forcedotcom/packaging/commit/3240911ef5b58ea6179290de066471f9e87ebda5))
11
+ - higher polling timeout for windows ([e6ce60c](https://github.com/forcedotcom/packaging/commit/e6ce60c0583e0b5b92be5b9b86b78de7603dfa77))
12
+ - unit tests and type updates ([23d8648](https://github.com/forcedotcom/packaging/commit/23d8648f570f326873b6e1ff1149067aba07e015))
13
+
5
14
  ### [0.0.14](https://github.com/forcedotcom/packaging/compare/v0.0.13...v0.0.14) (2022-08-05)
6
15
 
7
16
  ### Bug Fixes
@@ -198,14 +198,19 @@ export declare namespace PackagingSObjects {
198
198
  type SubscriberPackageProfileMappings = {
199
199
  profileMappings: SubscriberPackageProfileMapping[];
200
200
  };
201
+ type Attributes = {
202
+ type: string;
203
+ url: string;
204
+ };
201
205
  type PackageInstallRequest = {
206
+ attributes: Attributes;
202
207
  Id: string;
203
208
  IsDeleted: boolean;
204
- CreatedDate: number;
209
+ CreatedDate: string;
205
210
  CreatedById: string;
206
- LastModifiedDate: number;
211
+ LastModifiedDate: string;
207
212
  LastModifiedById: string;
208
- SystemModstamp: number;
213
+ SystemModstamp: string;
209
214
  SubscriberPackageVersionKey: string;
210
215
  NameConflictResolution: 'Block' | 'RenameMetadata';
211
216
  SecurityType: 'Custom' | 'Full' | 'None';
@@ -27,7 +27,7 @@ async function installPackage(connection, pkgInstallCreateRequest, options) {
27
27
  EnableRss: false,
28
28
  NameConflictResolution: 'Block',
29
29
  PackageInstallSource: 'U',
30
- SecurityType: 'none',
30
+ SecurityType: 'None',
31
31
  UpgradeType: 'mixed-mode',
32
32
  };
33
33
  const request = Object.assign({}, defaults, pkgInstallCreateRequest);
@@ -75,11 +75,11 @@ exports.installPackage = installPackage;
75
75
  * @returns an array of RSS and CSP site URLs, or undefined if the package doesn't have any.
76
76
  */
77
77
  async function getExternalSites(connection, subscriberPackageVersionId, installationKey) {
78
- const installKey = (0, packageUtils_1.escapeInstallationKey)(installationKey);
79
78
  const queryNoKey = `SELECT RemoteSiteSettings, CspTrustedSites FROM SubscriberPackageVersion WHERE Id ='${subscriberPackageVersionId}'`;
80
- const queryWithKey = `SELECT RemoteSiteSettings, CspTrustedSites FROM SubscriberPackageVersion WHERE Id ='${subscriberPackageVersionId}' AND InstallationKey ='${installKey}'`;
81
79
  let queryResult;
82
80
  try {
81
+ const escapedInstallationKey = installationKey ? (0, packageUtils_1.escapeInstallationKey)(installationKey) : null;
82
+ const queryWithKey = `${queryNoKey} AND InstallationKey ='${escapedInstallationKey}'`;
83
83
  getLogger().debug(`Checking package: [${subscriberPackageVersionId}] for external sites`);
84
84
  queryResult = await connection.tooling.query(queryWithKey);
85
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/packaging",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "packing libraries to Salesforce packaging platform",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",