solution-center-communicator
Advanced tools
Comparing version 1.0.1 to 2.0.0
@@ -0,1 +1,23 @@ | ||
<a name="2.0.0"></a> | ||
# [2.0.0](https://github.com/zalando-incubator/solution-center-communicator/compare/1.0.1...v2.0.0) (2016-07-13) | ||
### Chores | ||
* **scripts:** add script to create release branch ([6a05bd0](https://github.com/zalando-incubator/solution-center-communicator/commit/6a05bd0)), closes [#14](https://github.com/zalando-incubator/solution-center-communicator/issues/14) | ||
### Features | ||
* **module:** update module name to align with SC style guide ([cc9caaf](https://github.com/zalando-incubator/solution-center-communicator/commit/cc9caaf)), closes [#11](https://github.com/zalando-incubator/solution-center-communicator/issues/11) | ||
### BREAKING CHANGES | ||
* scripts: module names have changed | ||
scEnvironments: now called ScEnvironments | ||
<a name="1.0.1"></a> | ||
@@ -43,5 +65,5 @@ ## [1.0.1](https://github.com/zalando-incubator/solution-center-communicator/compare/1.0.0...v1.0.1) (2016-06-29) | ||
* **env:** add environments service provider wip ([f4502b0](https://github.com/zalando-incubator/solution-center-communicator/commit/f4502b0)) | ||
* **Initial release:** Solution Center Communicator ([7e2deb](https://github.com/zalando-incubator/solution-center-communicator/commit/7e2deb)) | ||
/*! | ||
* Name: solution-center-communicator | ||
* Version: 1.0.1 | ||
* Version: 2.0.0 | ||
* Homepage: https://github.com/zalando-incubator/solution-center-communicator | ||
@@ -174,3 +174,3 @@ * License: MIT | ||
.constant('ENVIRONMENTS', constants.ENVIRONMENTS) | ||
.provider('scEnvironments', [ | ||
.provider('ScEnvironments', [ | ||
'ENVIRONMENTS', 'DEFAULT_ENVIRONMENT', | ||
@@ -177,0 +177,0 @@ require('./environments.provider') |
/*! | ||
* Name: solution-center-communicator | ||
* Version: 1.0.1 | ||
* Version: 2.0.0 | ||
* Homepage: https://github.com/zalando-incubator/solution-center-communicator | ||
@@ -8,2 +8,2 @@ * License: MIT | ||
!function n(t,r,e){function o(i,a){if(!r[i]){if(!t[i]){var s="function"==typeof require&&require;if(!a&&s)return s(i,!0);if(E)return E(i,!0);var N=new Error("Cannot find module '"+i+"'");throw N.code="MODULE_NOT_FOUND",N}var u=r[i]={exports:{}};t[i][0].call(u.exports,function(n){var r=t[i][1][n];return o(r?r:n)},u,u.exports,n,t,r,e)}return r[i].exports}for(var E="function"==typeof require&&require,i=0;i<e.length;i++)o(e[i]);return o}({1:[function(n,t,r){t.exports.DEFAULT_ENVIRONMENT="INTEGRATION",t.exports.ENVIRONMENTS={PRODUCTION:{NAME:"PRODUCTION",URL:"https://www.solutions.zalando.com",DOMAIN:"solutions.zalando.com",PORT:"",USER_SERVICE:"https://user-management.norris.zalan.do",TOKEN_SERVICE:"https://token-management.norris.zalan.do",MERCHANT_SERVICE:"https://merchant-management.norris.zalan.do"},STAGE:{NAME:"STAGE",URL:"https://sc-stage.norris.zalan.do",DOMAIN:".zalan.do",PORT:"",USER_SERVICE:"https://um-stage.norris.zalan.do",TOKEN_SERVICE:"https://tm-stage.norris.zalan.do",MERCHANT_SERVICE:"https://merchant-stage.norris.zalan.do"},INTEGRATION:{NAME:"INTEGRATION",URL:"https://sc-integration.norris.zalan.do",DOMAIN:".zalan.do",PORT:"",USER_SERVICE:"https://um-integration.norris.zalan.do",TOKEN_SERVICE:"https://tm-integration.norris.zalan.do",MERCHANT_SERVICE:"https://merchant-integration.norris.zalan.do"},DEVELOPMENT:{NAME:"DEVELOPMENT",URL:"https://sc-development.norris.zalan.do",DOMAIN:".zalan.do",PORT:"",USER_SERVICE:"https://um-development.norris.zalan.do",TOKEN_SERVICE:"https://tm-development.norris.zalan.do",MERCHANT_SERVICE:"https://merchant-development.norris.zalan.do"},LOCAL:{NAME:"LOCAL",URL:"http://localhost",DOMAIN:"localhost",PORT:3333,USER_SERVICE:"https://um-development.norris.zalan.do",TOKEN_SERVICE:"https://tm-development.norris.zalan.do",MERCHANT_SERVICE:"https://merchant-development.norris.zalan.do"},TESTING:{NAME:"TESTING",URL:"",DOMAIN:"",PORT:"",MERCHANT_SERVICE:"",USER_SERVICE:"",TOKEN_SERVICE:""}}},{}],2:[function(n,t,r){t.exports=function(n,t){"use strict";function r(t){return n[t]||s}function e(n){var t=n&&n.NAME||"",r=t.indexOf("$")===-1,e=t.length&&r&&n,o=t.length&&!r&&N;return e||o||s}function o(n){return a="string"==typeof n&&r(n)||e(n)}function E(){return a||s}function i(n){return n&&r(n)||s}var a,s=n[t],N=n.LOCAL;return{getCurrentEnvironment:E,getSpecificEnvironment:i,setCurrentEnvironment:o,$get:function(){return{getCurrentEnvironment:this.getCurrentEnvironment,getSpecificEnvironment:this.getSpecificEnvironment,setCurrentEnvironment:this.setCurrentEnvironment}}}}},{}],3:[function(n,t,r){"use strict";var e=n("./environments.constant");angular.module("solutioncenter.communicator").constant("DEFAULT_ENVIRONMENT",e.DEFAULT_ENVIRONMENT).constant("ENVIRONMENTS",e.ENVIRONMENTS).provider("scEnvironments",["ENVIRONMENTS","DEFAULT_ENVIRONMENT",n("./environments.provider")])},{"./environments.constant":1,"./environments.provider":2}],4:[function(n,t,r){"use strict";angular.module("solutioncenter.communicator",[]),n("./environments")},{"./environments":3}]},{},[4]); | ||
!function n(t,r,e){function o(i,a){if(!r[i]){if(!t[i]){var s="function"==typeof require&&require;if(!a&&s)return s(i,!0);if(E)return E(i,!0);var N=new Error("Cannot find module '"+i+"'");throw N.code="MODULE_NOT_FOUND",N}var u=r[i]={exports:{}};t[i][0].call(u.exports,function(n){var r=t[i][1][n];return o(r?r:n)},u,u.exports,n,t,r,e)}return r[i].exports}for(var E="function"==typeof require&&require,i=0;i<e.length;i++)o(e[i]);return o}({1:[function(n,t,r){t.exports.DEFAULT_ENVIRONMENT="INTEGRATION",t.exports.ENVIRONMENTS={PRODUCTION:{NAME:"PRODUCTION",URL:"https://www.solutions.zalando.com",DOMAIN:"solutions.zalando.com",PORT:"",USER_SERVICE:"https://user-management.norris.zalan.do",TOKEN_SERVICE:"https://token-management.norris.zalan.do",MERCHANT_SERVICE:"https://merchant-management.norris.zalan.do"},STAGE:{NAME:"STAGE",URL:"https://sc-stage.norris.zalan.do",DOMAIN:".zalan.do",PORT:"",USER_SERVICE:"https://um-stage.norris.zalan.do",TOKEN_SERVICE:"https://tm-stage.norris.zalan.do",MERCHANT_SERVICE:"https://merchant-stage.norris.zalan.do"},INTEGRATION:{NAME:"INTEGRATION",URL:"https://sc-integration.norris.zalan.do",DOMAIN:".zalan.do",PORT:"",USER_SERVICE:"https://um-integration.norris.zalan.do",TOKEN_SERVICE:"https://tm-integration.norris.zalan.do",MERCHANT_SERVICE:"https://merchant-integration.norris.zalan.do"},DEVELOPMENT:{NAME:"DEVELOPMENT",URL:"https://sc-development.norris.zalan.do",DOMAIN:".zalan.do",PORT:"",USER_SERVICE:"https://um-development.norris.zalan.do",TOKEN_SERVICE:"https://tm-development.norris.zalan.do",MERCHANT_SERVICE:"https://merchant-development.norris.zalan.do"},LOCAL:{NAME:"LOCAL",URL:"http://localhost",DOMAIN:"localhost",PORT:3333,USER_SERVICE:"https://um-development.norris.zalan.do",TOKEN_SERVICE:"https://tm-development.norris.zalan.do",MERCHANT_SERVICE:"https://merchant-development.norris.zalan.do"},TESTING:{NAME:"TESTING",URL:"",DOMAIN:"",PORT:"",MERCHANT_SERVICE:"",USER_SERVICE:"",TOKEN_SERVICE:""}}},{}],2:[function(n,t,r){t.exports=function(n,t){"use strict";function r(t){return n[t]||s}function e(n){var t=n&&n.NAME||"",r=t.indexOf("$")===-1,e=t.length&&r&&n,o=t.length&&!r&&N;return e||o||s}function o(n){return a="string"==typeof n&&r(n)||e(n)}function E(){return a||s}function i(n){return n&&r(n)||s}var a,s=n[t],N=n.LOCAL;return{getCurrentEnvironment:E,getSpecificEnvironment:i,setCurrentEnvironment:o,$get:function(){return{getCurrentEnvironment:this.getCurrentEnvironment,getSpecificEnvironment:this.getSpecificEnvironment,setCurrentEnvironment:this.setCurrentEnvironment}}}}},{}],3:[function(n,t,r){"use strict";var e=n("./environments.constant");angular.module("solutioncenter.communicator").constant("DEFAULT_ENVIRONMENT",e.DEFAULT_ENVIRONMENT).constant("ENVIRONMENTS",e.ENVIRONMENTS).provider("ScEnvironments",["ENVIRONMENTS","DEFAULT_ENVIRONMENT",n("./environments.provider")])},{"./environments.constant":1,"./environments.provider":2}],4:[function(n,t,r){"use strict";angular.module("solutioncenter.communicator",[]),n("./environments")},{"./environments":3}]},{},[4]); |
{ | ||
"name": "solution-center-communicator", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Tool for facilitating communication between the Zalando Solution Center and its APIs", | ||
@@ -19,6 +19,6 @@ "homepage": "https://github.com/zalando-incubator/solution-center-communicator", | ||
"release": "npm --no-git-tag-version version $v", | ||
"postrelease": "npm run commit:release && npm run tag && npm run push:release && npm run publish:npm", | ||
"postrelease": "npm run branch:release && npm run commit:release && npm run tag:release && npm run push:release", | ||
"preversion": "git add .", | ||
"version": "echo Updating to version $npm_package_version", | ||
"postversion": "npm run comment:banner && npm run changelog:init", | ||
"postversion": "npm run comment:banner && npm run changelog", | ||
"comment:banner": "node tools/banner.js", | ||
@@ -28,5 +28,7 @@ "changelog": "[ -e CHANGELOG.md ] && npm run changelog:update || npm run changelog:init", | ||
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s", | ||
"postchangelog": "git add CHANGELOG.md", | ||
"branch:release": "git checkout -b release/$npm_package_version", | ||
"commit:release": "git commit -am \"chore(release): version $npm_package_version\"", | ||
"tag": "git tag -a $npm_package_version -m \"Version $npm_package_version\"", | ||
"push:release": "git push origin master && git push origin $npm_package_version", | ||
"tag:release": "git tag -a $npm_package_version -m \"Version $npm_package_version\"", | ||
"push:release": "git push origin release/$npm_package_version && git push origin $npm_package_version", | ||
"publish:npm": "npm publish && npm run verify", | ||
@@ -33,0 +35,0 @@ "verify": "npm run verify:npm", |
@@ -17,6 +17,5 @@ # Solution Center Communicator | ||
npm install | ||
bower install | ||
``` | ||
Note: `bower install` will be run automatically after `npm install` completes. | ||
During development, use only the following command: | ||
@@ -53,3 +52,4 @@ | ||
* `npm publish` | ||
* After `npm publish`, both npm and bower are verified. You should see the latest version listed. | ||
* After publish, the package is automatically verified. You should see the latest version listed. | ||
* If you use bower, you can run `npm run verify:bower` to confirm that bower sees the latest version. | ||
@@ -56,0 +56,0 @@ ### License |
@@ -9,5 +9,5 @@ 'use strict'; | ||
.constant('ENVIRONMENTS', constants.ENVIRONMENTS) | ||
.provider('scEnvironments', [ | ||
.provider('ScEnvironments', [ | ||
'ENVIRONMENTS', 'DEFAULT_ENVIRONMENT', | ||
require('./environments.provider') | ||
]); |
@@ -7,3 +7,3 @@ /* eslint-disable angular/di */ | ||
environmentInvalid = [{}, [], 2, '@', null, undefined, 1.2, environmentNames], | ||
environmentsProvider, | ||
ScEnvironmentsProvider, | ||
defaultEnvironment, | ||
@@ -23,3 +23,3 @@ mock, | ||
environmentNames.forEach(function (name) { | ||
env = environmentsProvider.setCurrentEnvironment(name); | ||
env = ScEnvironmentsProvider.setCurrentEnvironment(name); | ||
expect(env.NAME).toBe(name); | ||
@@ -31,3 +31,3 @@ }); | ||
mock = getMock('PRODUCTION'); | ||
env = environmentsProvider.setCurrentEnvironment(mock); | ||
env = ScEnvironmentsProvider.setCurrentEnvironment(mock); | ||
expect(env.NAME).toBe(mock.NAME); | ||
@@ -39,3 +39,3 @@ expect(env.CUSTOM_VALUE).toBe(true); | ||
mock = getMock('${NAME}'); | ||
env = environmentsProvider.setCurrentEnvironment(mock); | ||
env = ScEnvironmentsProvider.setCurrentEnvironment(mock); | ||
expect(env.NAME).toBe('LOCAL'); | ||
@@ -46,3 +46,3 @@ }); | ||
mock = getMock(''); | ||
env = environmentsProvider.setCurrentEnvironment(mock); | ||
env = ScEnvironmentsProvider.setCurrentEnvironment(mock); | ||
expect(env.NAME).toBe(defaultEnvironment); | ||
@@ -53,3 +53,3 @@ }); | ||
environmentInvalid.forEach(function (invalid) { | ||
env = environmentsProvider.setCurrentEnvironment(invalid); | ||
env = ScEnvironmentsProvider.setCurrentEnvironment(invalid); | ||
expect(env.NAME).toBe(defaultEnvironment); | ||
@@ -65,3 +65,3 @@ }); | ||
it('should return default environment if environment has not been set', function () { | ||
env = environmentsProvider.getCurrentEnvironment(); | ||
env = ScEnvironmentsProvider.getCurrentEnvironment(); | ||
expect(env.NAME).toBe(defaultEnvironment); | ||
@@ -71,4 +71,4 @@ }); | ||
it('should return specific environment if it was previously set', function () { | ||
environmentsProvider.setCurrentEnvironment('STAGE'); | ||
env = environmentsProvider.getCurrentEnvironment(); | ||
ScEnvironmentsProvider.setCurrentEnvironment('STAGE'); | ||
env = ScEnvironmentsProvider.getCurrentEnvironment(); | ||
expect(env.NAME).toBe('STAGE'); | ||
@@ -83,3 +83,3 @@ }); | ||
it('should return specific environment if valid environment string is passed', function () { | ||
env = environmentsProvider.getSpecificEnvironment('INTEGRATION'); | ||
env = ScEnvironmentsProvider.getSpecificEnvironment('INTEGRATION'); | ||
expect(env.NAME).toBe('INTEGRATION'); | ||
@@ -90,3 +90,3 @@ }); | ||
environmentInvalid.forEach(function (invalid) { | ||
env = environmentsProvider.getSpecificEnvironment(invalid); | ||
env = ScEnvironmentsProvider.getSpecificEnvironment(invalid); | ||
expect(env.NAME).toBe(defaultEnvironment); | ||
@@ -106,3 +106,3 @@ }); | ||
inject(function ($injector) { | ||
environmentsProvider = $injector.get('scEnvironments'); | ||
ScEnvironmentsProvider = $injector.get('ScEnvironments'); | ||
defaultEnvironment = $injector.get('DEFAULT_ENVIRONMENT'); | ||
@@ -109,0 +109,0 @@ }); |
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
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
33036
21
575