New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@axway/amplify-cli-utils

Package Overview
Dependencies
Maintainers
14
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axway/amplify-cli-utils - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# v4.1.0 (Nov 10, 2020)
* feat: Added API for checking if update is available.
([CLI-22](https://jira.axway.com/browse/CLI-22))
* chore: Updated dependencies.
# v4.0.0 (Oct 21, 2020)

@@ -2,0 +8,0 @@

109

dist/index.js

@@ -7,2 +7,3 @@ "use strict";

exports.buildParams = exports.buildAuthParams = buildAuthParams;
exports.checkForUpdate = checkForUpdate;
exports.createNPMRequestArgs = createNPMRequestArgs;

@@ -13,3 +14,2 @@ exports.createRequestClient = createRequestClient;

exports.initSDK = initSDK;
exports.loadConfig = loadConfig;
Object.defineProperty(exports, "AmplifySDK", {

@@ -21,2 +21,14 @@ enumerable: true,

});
Object.defineProperty(exports, "loadConfig", {
enumerable: true,
get: function () {
return _amplifyConfig.default;
}
});
Object.defineProperty(exports, "Config", {
enumerable: true,
get: function () {
return _amplifyConfig.Config;
}
});
exports.request = exports.locations = exports.environments = void 0;

@@ -26,4 +38,12 @@

var _boxen = _interopRequireDefault(require("boxen"));
var _checkKit = _interopRequireDefault(require("check-kit"));
var _fs = _interopRequireDefault(require("fs"));
var _amplifyConfig = _interopRequireWildcard(require("@axway/amplify-config"));
var _snooplogg = _interopRequireDefault(require("snooplogg"));
var _cliKit = require("cli-kit");

@@ -54,2 +74,7 @@

const {
cyan,
gray,
green
} = _snooplogg.default.chalk;
/**

@@ -62,2 +87,3 @@ * Constructs a parameters object to pass into an Auth instance.

*/
function buildAuthParams(opts = {}, config) {

@@ -69,3 +95,3 @@ if (!opts || typeof opts !== 'object') {

if (!config) {
config = loadConfig();
config = (0, _amplifyConfig.default)();
}

@@ -111,2 +137,54 @@

/**
* Checks if a new version of an npm package is available and returns a string with the formatted
* update message.
*
* @param {Object} [opts] - Check update and request configuration options.
* @param {Number} [opts.checkInterval=3600000] - The amount of time in milliseconds before
* checking for an update. Defaults to 1 hour.
* @param {String} [opts.cwd] - The current working directory used to locate the `package.json` if
* `pkg` is not specified.
* @param {String} [opts.distTag='latest'] - The tag to check for the latest version.
* @param {Boolean} [opts.force=false] - Forces an update check.
* @param {String} [opts.metaDir] - The directory to store package update information.
* @param {Object|String} [opts.pkg] - The parsed `package.json`, path to the package.json file, or
* falsey and it will scan parent directories looking for a package.json.
* @param {String} [opts.registryUrl] - The npm registry URL. By default, it will autodetect the
* URL based on the package name/scope.
* @param {Number} [opts.timeout=1000] - The number of milliseconds to wait to query npm before
* timing out.
* @param {Config} [config] - An AMPLIFY Config instance. If not specified, the config is loaded
* from disk.
* @returns {String}
*/
async function checkForUpdate(opts, config) {
opts = createRequestOptions(opts, config || (0, _amplifyConfig.default)());
const {
current,
latest,
name,
updateAvailable
} = await (0, _checkKit.default)(opts);
if (updateAvailable) {
const msg = `Update available ${gray(current)} → ${green(latest)}\nRun ${cyan(`npm i -g ${name}`)} to update`;
return (0, _boxen.default)(msg, {
align: 'center',
borderColor: 'yellow',
borderStyle: 'round',
margin: {
bottom: 1,
left: 4,
right: 4,
top: 1
},
padding: {
bottom: 1,
left: 4,
right: 4,
top: 1
}
});
}
}
/**
* Builds an array of Axway CLI network settings for use as command line arguments when spawning

@@ -121,2 +199,4 @@ * `npm`.

*/
function createNPMRequestArgs(opts, config) {

@@ -185,7 +265,3 @@ const {

function createRequestOptions(opts = {}, config) {
const {
Config
} = require('@axway/amplify-config');
if (opts instanceof Config) {
if (opts instanceof _amplifyConfig.Config) {
config = opts;

@@ -200,3 +276,3 @@ opts = {};

if (config && !(config instanceof Config)) {
if (config && !(config instanceof _amplifyConfig.Config)) {
throw new TypeError('Expected config to be an AMPLIFY Config instance');

@@ -211,3 +287,3 @@ }

if (!config) {
config = loadConfig();
config = (0, _amplifyConfig.default)();
}

@@ -289,3 +365,3 @@

if (!config) {
config = loadConfig();
config = (0, _amplifyConfig.default)();
}

@@ -298,13 +374,2 @@

}
/**
* Loads the Axway CLI config file using the lazy loaded AMPLIFY Config package.
*
* @param {Object} [opts] - Various options. See `@axway/amplify-config` for more details.
* @returns {Config}
*/
function loadConfig(opts) {
return require('@axway/amplify-config').loadConfig(opts);
}
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbIkVycm9yIiwicHJlcGFyZVN0YWNrVHJhY2UiLCJyZXF1aXJlIiwiYnVpbGRBdXRoUGFyYW1zIiwib3B0cyIsImNvbmZpZyIsImxvYWRDb25maWciLCJlbnYiLCJlbnZpcm9ubWVudHMiLCJyZXNvbHZlIiwiZ2V0IiwiY2xpZW50SWQiLCJyZWFsbSIsImF1dGgiLCJwYXJhbXMiLCJwcm9wcyIsImJhc2VVcmwiLCJ1bmRlZmluZWQiLCJjbGllbnRTZWNyZXQiLCJuYW1lIiwiaW50ZXJhY3RpdmVMb2dpblRpbWVvdXQiLCJob21lRGlyIiwibG9jYXRpb25zIiwiYXh3YXlIb21lIiwicGFzc3dvcmQiLCJwbGF0Zm9ybVVybCIsInNlY3JldEZpbGUiLCJzZXJ2ZXJIb3N0Iiwic2VydmVyUG9ydCIsInNlcnZpY2VBY2NvdW50IiwidG9rZW5SZWZyZXNoVGhyZXNob2xkIiwidG9rZW5TdG9yZSIsInRva2VuU3RvcmVEaXIiLCJ0b2tlblN0b3JlVHlwZSIsInVzZXJuYW1lIiwicHJvcCIsIk9iamVjdCIsImtleXMiLCJyZXF1ZXN0T3B0aW9ucyIsImNyZWF0ZVJlcXVlc3RPcHRpb25zIiwiY3JlYXRlTlBNUmVxdWVzdEFyZ3MiLCJjYSIsImNlcnQiLCJrZXkiLCJwcm94eSIsInN0cmljdFNTTCIsImFyZ3MiLCJwdXNoIiwid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kgY29uZmlnIGFuZCBhbiBpbml0aWFsaXplZFxuICogQU1QTElGWSBTREsgaW5zdGFuY2UuXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBpbml0U0RLKG9wdHMgPSB7fSwgY29uZmlnKSB7XG5cdGlmICghY29uZmlnKSB7XG5cdFx0Y29uZmlnID0gbG9hZENvbmZpZygpO1xuXHR9XG5cblx0cmV0dXJuIHtcblx0XHRjb25maWcsXG5cdFx0c2RrOiBuZXcgQW1wbGlmeVNESyhidWlsZEF1dGhQYXJhbXMob3B0cywgY29uZmlnKSlcblx0fTtcbn1cblxuLyoqXG4gKiBMb2FkcyB0aGUgQXh3YXkgQ0xJIGNvbmZpZyBmaWxlIHVzaW5nIHRoZSBsYXp5IGxvYWRlZCBBTVBMSUZZIENvbmZpZyBwYWNrYWdlLlxuICpcbiAqIEBwYXJhbSB7T2JqZWN0fSBbb3B0c10gLSBWYXJpb3VzIG9wdGlvbnMuIFNlZSBgQGF4d2F5L2FtcGxpZnktY29uZmlnYCBmb3IgbW9yZSBkZXRhaWxzLlxuICogQHJldHVybnMge0NvbmZpZ31cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGxvYWRDb25maWcob3B0cykge1xuXHRyZXR1cm4gcmVxdWlyZSgnQGF4d2F5L2FtcGxpZnktY29uZmlnJykubG9hZENvbmZpZyhvcHRzKTtcbn1cbiJdLCJmaWxlIjoiaW5kZXguanMifQ==
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbIkVycm9yIiwicHJlcGFyZVN0YWNrVHJhY2UiLCJyZXF1aXJlIiwiY3lhbiIsImdyYXkiLCJncmVlbiIsInNub29wbG9nZyIsImNoYWxrIiwiYnVpbGRBdXRoUGFyYW1zIiwib3B0cyIsImNvbmZpZyIsImVudiIsImVudmlyb25tZW50cyIsInJlc29sdmUiLCJnZXQiLCJjbGllbnRJZCIsInJlYWxtIi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HRpb25zIGluY2x1ZGluZyBgZW52YCBhbmQgYXV0aCBvcHRpb25zLlxuICogQHBhcmFtIHtPYmplY3R9IFtjb25maWddIC0gVGhlIEFNUExJRlkgY29uZmlnLiBJZiBub3QgcGFzc2VkIGluLCB0aGUgY29uZmlnIGZpbGUgaXMgbG9hZGVkLlxuICogQHJldHVybnMge09iamVjdH0gUmV0dXJucyBhbiBvYmplY3QgY29udGFpbmluZyB0aGUgQXh3YXkgQ0xJIGNvbmZpZyBhbmQgYW4gaW5pdGlhbGl6ZWRcbiAqIEFNUExJRlkgU0RLIGluc3RhbmNlLlxuICovXG5leHBvcnQgZnVuY3Rpb24gaW5pdFNESyhvcHRzID0ge30sIGNvbmZpZykge1xuXHRpZiAoIWNvbmZpZykge1xuXHRcdGNvbmZpZyA9IGxvYWRDb25maWcoKTtcblx0fVxuXG5cdHJldHVybiB7XG5cdFx0Y29uZmlnLFxuXHRcdHNkazogbmV3IEFtcGxpZnlTREsoYnVpbGRBdXRoUGFyYW1zKG9wdHMsIGNvbmZpZykpXG5cdH07XG59XG4iXSwiZmlsZSI6ImluZGV4LmpzIn0=
{
"name": "@axway/amplify-cli-utils",
"version": "4.0.0",
"version": "4.1.0",
"description": "Common utils for Axway CLI packages",

@@ -24,8 +24,10 @@ "author": "Axway, Inc. <npmjs@appcelerator.com>",

"dependencies": {
"@axway/amplify-auth-sdk": "^2.3.1",
"@axway/amplify-config": "^3.0.0",
"@axway/amplify-auth-sdk": "^2.3.2",
"@axway/amplify-config": "^3.0.2",
"@axway/amplify-request": "^2.0.1",
"@axway/amplify-sdk": "^1.4.0",
"@axway/amplify-sdk": "^1.5.1",
"appcd-fs": "^2.0.0",
"cli-kit": "1.8.2",
"boxen": "^4.2.0",
"check-kit": "^1.0.1",
"cli-kit": "1.8.4",
"cli-table3": "^0.6.0",

@@ -45,3 +47,3 @@ "fs-extra": "^9.0.1",

},
"gitHead": "a0ce2ebf4e082542fd06569b2591515fd7c23b24"
"gitHead": "73fe3e414c851a35db802e668347e13b09012b5f"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc