Commit 853709fa authored by Patricio Bruna's avatar Patricio Bruna

Fixed ForEach return for empty attrs

parent 3bee3959
...@@ -13806,6 +13806,7 @@ return /******/ (function(modules) { // webpackBootstrap ...@@ -13806,6 +13806,7 @@ return /******/ (function(modules) { // webpackBootstrap
(0, _createClass3.default)(Zimbra, [{ (0, _createClass3.default)(Zimbra, [{
key: "buildAttrsMap", key: "buildAttrsMap",
value: function buildAttrsMap(obj_ary) { value: function buildAttrsMap(obj_ary) {
if (!obj_ary) return {};
var attrs = {}; var attrs = {};
obj_ary.forEach(function (r) { obj_ary.forEach(function (r) {
if (attrs[r.n]) { if (attrs[r.n]) {
...@@ -43043,7 +43044,7 @@ return /******/ (function(modules) { // webpackBootstrap ...@@ -43043,7 +43044,7 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = { module.exports = {
"name": "zimbra-admin-api-js", "name": "zimbra-admin-api-js",
"version": "0.1.2", "version": "0.1.3",
"private": true, "private": true,
"main": "lib/zimbra-admin-api.js", "main": "lib/zimbra-admin-api.js",
"dependencies": { "dependencies": {
This diff is collapsed.
{ {
"name": "zimbra-admin-api-js", "name": "zimbra-admin-api-js",
"version": "0.1.2", "version": "0.1.3",
"private": true, "private": true,
"main": "lib/zimbra-admin-api.js", "main": "lib/zimbra-admin-api.js",
"dependencies": { "dependencies": {
......
...@@ -6,7 +6,7 @@ var http = require("http"), ...@@ -6,7 +6,7 @@ var http = require("http"),
proxy = httpProxy.createProxyServer({}) proxy = httpProxy.createProxyServer({})
prefix = '/service' prefix = '/service'
staticDir = './' staticDir = './'
port = process.argv[2] || 8000; port = process.argv[2] || 9000;
http.createServer(function(request, response) { http.createServer(function(request, response) {
......
...@@ -10,6 +10,7 @@ export default class Zimbra { ...@@ -10,6 +10,7 @@ export default class Zimbra {
} }
buildAttrsMap(obj_ary) { buildAttrsMap(obj_ary) {
if (!obj_ary) return {};
const attrs = {}; const attrs = {};
obj_ary.forEach((r) => { obj_ary.forEach((r) => {
if (attrs[r.n]) { if (attrs[r.n]) {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
'use strict'; 'use strict';
var auth_data = { var auth_data = {
'url': 'http://zimbra.zboxapp.dev:8000/service/admin/soap', 'url': 'http://zimbra.zboxapp.dev:9000/service/admin/soap',
'user': 'admin@zboxapp.dev', 'user': 'admin@zboxapp.dev',
'password':'12345678' 'password':'12345678'
}; };
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
it('should return Error with wrong Login', function(done){ it('should return Error with wrong Login', function(done){
let auth_obj = { let auth_obj = {
'url': 'http://zimbra.zboxapp.dev:8000/service/admin/soap', 'url': 'http://zimbra.zboxapp.dev:9000/service/admin/soap',
'user': 'admin@zboxapp.dev', 'user': 'admin@zboxapp.dev',
'password':'12345678910' 'password':'12345678910'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment