Skip to content

Commit 74e45ec

Browse files
committed
chore: add arch property check
1 parent dff849a commit 74e45ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/utils.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const la = require('lazy-ass')
44
// to install multiple packages, use comma-separated list
55
const isNpmInstall = is.schema({
66
platform: is.maybe.unemptyString,
7+
arch: is.maybe.unemptyString,
78
env: is.maybe.object,
89
packages: is.unemptyString
910
})
@@ -12,7 +13,7 @@ const isNpmInstall = is.schema({
1213
* Returns given string surrounded by ```json + ``` quotes
1314
* @param {string} s
1415
*/
15-
const toJsonCodeBlock = (s) => {
16+
const toJsonCodeBlock = s => {
1617
const start = '```json'
1718
const finish = '```'
1819

@@ -23,7 +24,7 @@ const toJsonCodeBlock = (s) => {
2324
* Converts given JSON object into markdown text block
2425
* @param {object} object
2526
*/
26-
const toMarkdownJsonBlock = (object) => {
27+
const toMarkdownJsonBlock = object => {
2728
la(object, 'expected an object to convert to JSON', object)
2829
const str = JSON.stringify(object, null, 2)
2930

0 commit comments

Comments
 (0)