paragma 0.3.1 → 0.3.2
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/SHA256SUMS +6 -6
- package/install.js +6 -3
- package/package.json +1 -1
package/SHA256SUMS
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
a134291669ba5227ce6255d9306e57435976d614b91d49dbb0a59ea90fc5c1e6 pg-darwin-arm64
|
|
2
|
+
8f675646da031ca721beb9ab9093b85f5726e8019d764df15dd15701979669a4 pg-darwin-x64
|
|
3
|
+
fee8a1f377609ef234a07645cb0717c839c00f6b9444f21bc38abc3d801dca79 pg-linux-arm64
|
|
4
|
+
2ca49924a6d2cf676b7761d4071745edd246c4bba7f3f9e36c8497ececa0ace5 pg-linux-x64
|
|
5
|
+
41466ebb5a6b003ffc4b1c51ac33e6295ae50a9da16be618ce3075f3704a036e pg-windows-arm64.exe
|
|
6
|
+
04d11a528fed464ea4d8667571e914173578578532332604a4f5f2b80b3570b3 pg-windows-x64.exe
|
package/install.js
CHANGED
|
@@ -145,15 +145,18 @@ function shims(exe) {
|
|
|
145
145
|
"#!/usr/bin/env pwsh",
|
|
146
146
|
`# ${MARK}`,
|
|
147
147
|
"$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent",
|
|
148
|
+
"# --done 1,3 is an array here: passed on as 1,3 (as PowerShell passes it",
|
|
149
|
+
"# to a program it runs itself), not as \"1 3\"",
|
|
150
|
+
"$a=@(foreach ($x in $args) { if ($x -is [array]) { $x -join ',' } else { $x } })",
|
|
148
151
|
`if (-not (Test-Path "$basedir/${slash(exe)}")) {`,
|
|
149
152
|
" # the binary is gone (an update): Node's launcher downloads it again",
|
|
150
|
-
` & node "$basedir/${slash(launcher)}"
|
|
153
|
+
` & node "$basedir/${slash(launcher)}" @a`,
|
|
151
154
|
" exit $LASTEXITCODE",
|
|
152
155
|
"}",
|
|
153
156
|
"if ($MyInvocation.ExpectingInput) {",
|
|
154
|
-
` $input | & "$basedir/${slash(exe)}"
|
|
157
|
+
` $input | & "$basedir/${slash(exe)}" @a`,
|
|
155
158
|
"} else {",
|
|
156
|
-
` & "$basedir/${slash(exe)}"
|
|
159
|
+
` & "$basedir/${slash(exe)}" @a`,
|
|
157
160
|
"}",
|
|
158
161
|
"exit $LASTEXITCODE",
|
|
159
162
|
"",
|
package/package.json
CHANGED