@shoutem/cli
Advanced tools
Comparing version 0.0.23 to 0.0.25
@@ -1,9 +0,139 @@ | ||
const host = process.env.SHOUTEM_CLI_HOST || 'dev.sauros.hr'; | ||
'use strict'; | ||
export default { | ||
appBuilder: process.env.SHOUTEM_CLI_APP_BUILDER || `http://builder.${host}`, | ||
appManager: process.env.SHOUTEM_CLI_APP_MANAGER || `http://apps.${host}`, | ||
authService: process.env.SHOUTEM_CLI_AUTH_SERVICE || `http://api.${host}`, | ||
extensionManager: process.env.SHOUTEM_CLI_EXTENSION_MANAGER || `http://extensions.${host}`, | ||
legacyService: process.env.SHOUTEM_CLI_LEGACY_SERVICE || `http://api.${host}`, | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var host = process.env.SHOUTEM_CLI_HOST || 'dev.sauros.hr'; | ||
var _DefaultExportValue = { | ||
appBuilder: process.env.SHOUTEM_CLI_APP_BUILDER || 'http://builder.' + _get__('host'), | ||
appManager: process.env.SHOUTEM_CLI_APP_MANAGER || 'http://apps.' + _get__('host'), | ||
authService: process.env.SHOUTEM_CLI_AUTH_SERVICE || 'http://api.' + _get__('host'), | ||
extensionManager: process.env.SHOUTEM_CLI_EXTENSION_MANAGER || 'http://extensions.' + _get__('host'), | ||
legacyService: process.env.SHOUTEM_CLI_LEGACY_SERVICE || 'http://api.' + _get__('host') | ||
}; | ||
exports.default = _DefaultExportValue; | ||
var _RewiredData__ = {}; | ||
var _RewireAPI__ = {}; | ||
(function () { | ||
function addPropertyToAPIObject(name, value) { | ||
Object.defineProperty(_RewireAPI__, name, { | ||
value: value, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
} | ||
addPropertyToAPIObject('__get__', _get__); | ||
addPropertyToAPIObject('__GetDependency__', _get__); | ||
addPropertyToAPIObject('__Rewire__', _set__); | ||
addPropertyToAPIObject('__set__', _set__); | ||
addPropertyToAPIObject('__reset__', _reset__); | ||
addPropertyToAPIObject('__ResetDependency__', _reset__); | ||
addPropertyToAPIObject('__with__', _with__); | ||
})(); | ||
function _get__(variableName) { | ||
return _RewiredData__ === undefined || _RewiredData__[variableName] === undefined ? _get_original__(variableName) : _RewiredData__[variableName]; | ||
} | ||
function _get_original__(variableName) { | ||
switch (variableName) { | ||
case 'host': | ||
return host; | ||
} | ||
return undefined; | ||
} | ||
function _assign__(variableName, value) { | ||
if (_RewiredData__ === undefined || _RewiredData__[variableName] === undefined) { | ||
return _set_original__(variableName, value); | ||
} else { | ||
return _RewiredData__[variableName] = value; | ||
} | ||
} | ||
function _set_original__(variableName, _value) { | ||
switch (variableName) {} | ||
return undefined; | ||
} | ||
function _update_operation__(operation, variableName, prefix) { | ||
var oldValue = _get__(variableName); | ||
var newValue = operation === '++' ? oldValue + 1 : oldValue - 1; | ||
_assign__(variableName, newValue); | ||
return prefix ? newValue : oldValue; | ||
} | ||
function _set__(variableName, value) { | ||
return _RewiredData__[variableName] = value; | ||
} | ||
function _reset__(variableName) { | ||
delete _RewiredData__[variableName]; | ||
} | ||
function _with__(object) { | ||
var rewiredVariableNames = Object.keys(object); | ||
var previousValues = {}; | ||
function reset() { | ||
rewiredVariableNames.forEach(function (variableName) { | ||
_RewiredData__[variableName] = previousValues[variableName]; | ||
}); | ||
} | ||
return function (callback) { | ||
rewiredVariableNames.forEach(function (variableName) { | ||
previousValues[variableName] = _RewiredData__[variableName]; | ||
_RewiredData__[variableName] = object[variableName]; | ||
}); | ||
var result = callback(); | ||
if (!!result && typeof result.then == 'function') { | ||
result.then(reset).catch(reset); | ||
} else { | ||
reset(); | ||
} | ||
return result; | ||
}; | ||
} | ||
var _typeOfOriginalExport = typeof _DefaultExportValue === 'undefined' ? 'undefined' : _typeof(_DefaultExportValue); | ||
function addNonEnumerableProperty(name, value) { | ||
Object.defineProperty(_DefaultExportValue, name, { | ||
value: value, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
} | ||
if ((_typeOfOriginalExport === 'object' || _typeOfOriginalExport === 'function') && Object.isExtensible(_DefaultExportValue)) { | ||
addNonEnumerableProperty('__get__', _get__); | ||
addNonEnumerableProperty('__GetDependency__', _get__); | ||
addNonEnumerableProperty('__Rewire__', _set__); | ||
addNonEnumerableProperty('__set__', _set__); | ||
addNonEnumerableProperty('__reset__', _reset__); | ||
addNonEnumerableProperty('__ResetDependency__', _reset__); | ||
addNonEnumerableProperty('__with__', _with__); | ||
addNonEnumerableProperty('__RewireAPI__', _RewireAPI__); | ||
} | ||
exports.__get__ = _get__; | ||
exports.__GetDependency__ = _get__; | ||
exports.__Rewire__ = _set__; | ||
exports.__set__ = _set__; | ||
exports.__ResetDependency__ = _reset__; | ||
exports.__RewireAPI__ = _RewireAPI__; | ||
//# sourceMappingURL=services.js.map |
{ | ||
"name": "@shoutem/cli", | ||
"version": "0.0.23", | ||
"version": "0.0.25", | ||
"description": "Command-line tools for Shoutem applications", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -74,1 +74,11 @@ # Shoutem CLI | ||
ask you to login before continuing. | ||
# Default theme | ||
On every rubicon theme change, CLI shoud be updated to reflect that change. | ||
## Rubicon default theme | ||
``` | ||
https://github.com/5minutes/shoutem-extensions/blob/develop/shoutem-rubicon-theme/app/themes/Rubicon.js -> templates/theme/app/theme.js.template | ||
https://github.com/5minutes/shoutem-extensions/blob/develop/shoutem-rubicon-theme/server/themeVariables.json -> templates/theme/server-themes-variables.json.template | ||
``` | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
420398
82
84
5956
1