Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@rexlabs/wings-node-api-client
Advanced tools
Readme
Very basic API client for node environments to deal with the wings API. It is build on top of the node-fetch
library.
const { create } = require('@rexlabs/wings-node-api-client')
const api = create({ baseUrl: 'http://wings.test/api/rex/' })
api.setAuthToken('xxx');
api('Listings::search', args).then(res => {
console.log({ res })
});
The client instance (api
in the example above) is an executable function in itself, which will trigger a post request to the given path. The second argument is an optional data object that will be used for the body, the third argument can be any options that will override the default options passed into the create
call.
The client also comes with the following extra methods:
// Set a specific header field
api.setHeader(headerKey, headerValue);
// Shortcut for `.setHeader('Authorization', 'Bearer ...')`
api.setAuthToken(token);
// Set a specific option (after creating the instance, but storing it on the instance)
api.setOption(optionKey, optionValue);
// Set multiple options
api.setOptions({ optionKey: optionValue });
// Get all records for a specific service
// It will fetch pages of 100 items (in parallel) until all are loaded!
api.searchAll('Listings', args).then(res => {
console.log({ res })
});
Install dependencies
$ yarn
Available Commands
$ yarn test # runs all units tests
$ yarn test:watch # runs unit tests when files change
Copyright (c) 2018 Rex Software All Rights Reserved.
FAQs
Wings Node Api Client
The npm package @rexlabs/wings-node-api-client receives a total of 1 weekly downloads. As such, @rexlabs/wings-node-api-client popularity was classified as not popular.
We found that @rexlabs/wings-node-api-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 27 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.