
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@keg-hub/appetite
Advanced tools
A node-js wrapper around the appetize api
const { upsert } = require('@keg-hub/appetite')
// Updates an existing build if one is found, otherwise uploads a new one
const response = await upsert({
// appetize api token
token: '123456',
// upload or update a build using these parameters
url: 'some.url.to.simulator.build.com'
platform: 'ios',
meta: {
branch: 'my-branch',
},
...*: <any other update/upload field (see the Appetize docs)>,
// searches for a build where platform=ios and note='{"branch":"my-branch"}'
search: {
platform: 'ios',
meta: {
branch: 'my-branch',
}
}
})
yarn add @keg-hub/appetite
const { upload } = require('@keg-hub/appetite')
// set either url or filePath, not both
const response = await upload({
url: <url to your simulator build>
filePath: <system file path to your simulator build>,
platform: <ios or android>,
token: <your appetize api token>
note: <note field>,
meta: <object to be stringified for the note field, unless "note" param was defined>,
....rest: <any other fields to include in the post form>
})
const { update } = require('@keg-hub/appetite')
// set either url or filePath, not both
const response = await update({
publicKey: <public key of app build to update>,
url: <url to your simulator build>
filePath: <system file path to your simulator build>,
platform: <ios or android>,
token: <your appetize api token>
note: <note field>,
meta: <object to be stringified for the note field, unless "note" param was defined>,
....rest: <any other fields to include in the post form>
})
const { upsert } = require('@keg-hub/appetite')
// set either url or filePath, not both
const response = await upsert({
token: <your appetize api token>,
search: <fields to search for existing builds. Same as `search`>
...*: <fields used for uploading/updating a build. Same params as `upload`>
})
const { search } = require('@keg-hub/appetite')
// searches for all builds matching the parameters
const builds = await search({
note: <note field of an existing app build to search by>,
meta: <note fields of an existing app build to search by>,
platform: <ios or android>,
token: <your appetize api token>
})
const { get } = require('@keg-hub/appetite')
// set either url or filePath, not both
const response = await get({
publicKey: <public key of app build to get>,
token: <your appetize api token>
})
const { remove } = require('@keg-hub/appetite')
// set either url or filePath, not both
const response = await remove({
publicKey: <public key of app build to delete>,
token: <your appetize api token>
})
search
accept an optional meta
parametersearch
will look for an existing build whose "note" value is a json object string containing the fields included in meta
upload
and update
will stringify the meta
object and set that as the value of the "note" field in the uploaded/updated buildyarn test
yarn test:e2e
.env
file in the repo's root directoryexample.env
file for the expected variables to put thereFAQs
appetize.io api wrapper
We found that @keg-hub/appetite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.