fh-wfm-sync
Advanced tools
Comparing version 0.3.2 to 0.3.3-pre.1
@@ -8,2 +8,4 @@ 'use strict'; | ||
var shortid = require('shortid'); | ||
function initSync(mediator, mbaasApi, datasetId, syncOptions) { | ||
@@ -13,4 +15,10 @@ syncOptions = syncOptions || defaultConfig.syncOptions; | ||
var dataListHandler = function(datasetId, queryParams, cb) { | ||
mediator.request('wfm:cloud:' + datasetId + ':list', queryParams, {uid: null, timeout: 5000}) | ||
queryParams = queryParams || {}; | ||
var uid = shortid.generate(); | ||
queryParams.topicUid = uid; | ||
mediator.request('wfm:cloud:' + datasetId + ':list', queryParams, {uid: uid}) | ||
.then(function(data) { | ||
var syncData = {}; | ||
@@ -17,0 +25,0 @@ data.forEach(function(object) { |
{ | ||
"name": "fh-wfm-sync", | ||
"version": "0.3.2", | ||
"version": "0.3.3-pre.1", | ||
"description": "An sync module for WFM", | ||
@@ -28,3 +28,4 @@ "main": "lib/angular/sync-ng.js", | ||
"q": "1.4.1", | ||
"rx": "4.1.0" | ||
"rx": "4.1.0", | ||
"shortid": "2.2.8" | ||
}, | ||
@@ -31,0 +32,0 @@ "devDependencies": { |
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
929309
24932
6
+ Addedshortid@2.2.8
+ Addedshortid@2.2.8(transitive)