This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 'use strict'; | |
| const AmqpClient = require('amqplib'); | |
| const Promise = require('bluebird'); | |
| const contentTypeJson = 'application/json'; | |
| const contentEncoding = 'utf8'; | |
| const config = { | |
| exchanges: [ | |
| { name: 'A_COMMENT_CREATED', type: 'fanout' }, | |
| { name: 'A_COMMENT_DELETED', type: 'fanout' }, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $latestRelease = Invoke-WebRequest https://github.com/pester/Pester/releases/latest -Headers @{"Accept"="application/json"} | |
| $json = $latestRelease.Content | ConvertFrom-Json | |
| $latestVersion = $json.tag_name | |
| $url = "https://github.com/pester/Pester/archive/$latestVersion.zip" | |
| $download_path = "$env:USERPROFILE\Downloads\pester-master.zip" | |
| Invoke-WebRequest -Uri $url -OutFile $download_path | |
| Get-Item $download_path | Unblock-File | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <# | |
| .SYNOPSIS | |
| Sets the system fields for a specific list/library item. | |
| .DESCRIPTION | |
| This will set the system fields (created, created by, modified, modified by) | |
| for a specific list/library item. | |
| Provide any or all of those system fields as a parameter and they will be set. | |
| If no modified date is provided, the item keeps its current modified date. |