@progress/sitefinity-webservices-sdk 1.0.0 → 1.0.4

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.
@@ -194,26 +194,26 @@ jobs:
194
194
  inputs:
195
195
  path: version.txt
196
196
  artifactName: commit-data-drop-version
197
- # - task: PowerShell@2
198
- # displayName: Tag sitefinity-webservices-sdk repo
199
- # condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
200
- # inputs:
201
- # targetType: inline
202
- # script: |
203
- # $releaseBranches = ConvertFrom-Json -InputObject "$(SitefinitySdkReleaseBranches)"
204
-
205
- # if ($releaseBranches -contains "$(Build.SourceBranch)") {
206
- # $token = "$(VstsRestApiToken)"
207
- # Write-Host "##vso[task.logissue type=warning;] Releasing Sitefinity webservices sdk - "$(ReleaseVersion)""
208
-
209
- # $postParams = @{name="$(ReleaseVersion)";taggedObject=@{objectId="$(Build.SourceVersion)"};message='Sitefinity webservices sdk release'}
210
- # $json = $postParams | ConvertTo-Json
211
-
212
- # $headers = @{'Content-Type'='application/json'; 'Authorization'="Basic $token"}
213
- # $tagUrl = "https://prgs-sitefinity.visualstudio.com/sitefinity/_apis/git/repositories/sitefinity-webservices-sdk/annotatedtags?api-version=4.1-preview.1"
214
-
215
- # Invoke-WebRequest -Uri $tagUrl -Method POST -Body $json -Headers $headers
216
- # } else {
217
- # Write-Error "Cannot tag the branch with the new release since it is missing from the list with release branches. Please review the whitelisted branches"
218
- # exit 1
219
- # }
197
+ - task: PowerShell@2
198
+ displayName: Tag sitefinity-webservices-sdk repo
199
+ condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
200
+ inputs:
201
+ targetType: inline
202
+ script: |
203
+ $releaseBranches = ConvertFrom-Json -InputObject "$(SitefinitySdkReleaseBranches)"
204
+
205
+ if ($releaseBranches -contains "$(Build.SourceBranch)") {
206
+ $token = "$(VstsRestApiToken)"
207
+ Write-Host "##vso[task.logissue type=warning;] Releasing Sitefinity webservices sdk - "$(ReleaseVersion)""
208
+
209
+ $postParams = @{name="$(ReleaseVersion)";taggedObject=@{objectId="$(Build.SourceVersion)"};message='Sitefinity webservices sdk release'}
210
+ $json = $postParams | ConvertTo-Json
211
+
212
+ $headers = @{'Content-Type'='application/json'; 'Authorization'="Basic $token"}
213
+ $tagUrl = "https://prgs-sitefinity.visualstudio.com/sitefinity/_apis/git/repositories/sitefinity-webservices-sdk/annotatedtags?api-version=4.1-preview.1"
214
+
215
+ Invoke-WebRequest -Uri $tagUrl -Method POST -Body $json -Headers $headers
216
+ } else {
217
+ Write-Error "Cannot tag the branch with the new release since it is missing from the list with release branches. Please review the whitelisted branches"
218
+ exit 1
219
+ }
@@ -15,7 +15,8 @@ module.exports = function(options) {
15
15
  filename: "sitefinity-webservices-sdk.js",
16
16
  chunkFilename: "sitefinity-webservices-sdk.js",
17
17
  libraryTarget: "umd",
18
- library: "Sitefinity"
18
+ library: "Sitefinity",
19
+ globalObject: "this"
19
20
  },
20
21
  plugins: [
21
22
  //Skipping the error emitting phase (and recording phase) during compilation, so there are no assets emitted that include errors