hoodie-plugin-appconfig
Advanced tools
Comparing version 2.0.0 to 2.0.1
$(function () { | ||
var hoodieAdmin = top.hoodieAdmin; | ||
var getConfig = _.partial(couchr.get, '/_api/app/config'); | ||
var setConfig = _.partial(couchr.put, '/_api/app/config'); | ||
function getConfig(callback) { | ||
hoodieAdmin.request('GET', '/app/config') | ||
.fail(function(error) { callback(error); }) | ||
.done(function(response) { callback(null, response); }) | ||
} | ||
function setConfig(doc, callback) { | ||
hoodieAdmin.request('PUT', '/app/config', { | ||
data: JSON.stringify(doc) | ||
}) | ||
.fail(function(error) { callback(error); }) | ||
.done(function(response) { callback(null, response); }) | ||
} | ||
@@ -6,0 +17,0 @@ function updateConfig(obj, callback) { |
<a name="2.0.0"></a> | ||
## 2.0.0 (2014-10-08) | ||
#### Bug Fixes | ||
* use hoodieAdmin for requests instead of jQuery, due to bearer token logic ([00bd7764](https://github.com/hoodiehq/hoodie-plugin-appconfig/commit/00bd7764d3337c6ab8bf762383019dca746e38cb)) | ||
<a name="2.0.0"></a> | ||
## 2.0.0 (2014-07-14) | ||
@@ -3,0 +12,0 @@ |
module.exports = function(grunt) { | ||
grunt.loadNpmTasks('grunt-release-hoodie'); | ||
grunt.initConfig({ | ||
release: { | ||
options: { | ||
bump: { | ||
files: ['package.json'], | ||
commitFiles: ['package.json', 'CHANGELOG.md'] | ||
}, | ||
tasks: ['changelog'] | ||
} | ||
} | ||
}); | ||
grunt.registerTask('ci', ['integration-test']); | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"dependencies": {}, | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"repository": { | ||
@@ -16,7 +16,7 @@ "type": "git", | ||
"grunt": "^0.4.5", | ||
"grunt-release-hoodie": "^1.3.0" | ||
"grunt-release-hoodie": "^2.5.0" | ||
}, | ||
"scripts": { | ||
"test": "echo Don't mind me. I'm here for deployments only..." | ||
"test": "grunt ci" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
0
56172
14
161