@stordata/vsphere-soapify
Advanced tools
Comparing version 0.0.27 to 0.0.28
@@ -34,3 +34,3 @@ /* eslint-disable class-methods-use-this */ | ||
const Type = `${type.charAt(0).toUpperCase()}${type.substr(1)}`, | ||
const Type = `${type.charAt(0).toUpperCase()}${type.substring(1)}`, | ||
parser = `parse${Type}`; | ||
@@ -109,2 +109,9 @@ | ||
} | ||
parseDecimalWorldWideName(val) { | ||
return BigInt(val) // You know, for 64 bits | ||
.toString(16) // Because VMWare sends the WWN in decimal | ||
.toUpperCase() // You know, for matching UCS ones | ||
.replace(/(..)(..)(..)(..)(..)(..)(..)/, '$1:$2:$3:$4:$5:$6:$7:'); // Ultra-advanced, next-gen, uber-powered RegEx wizardry | ||
} | ||
}; | ||
@@ -111,0 +118,0 @@ |
@@ -9,6 +9,6 @@ 'use strict'; | ||
...super.mappings(), | ||
nodeWorldWideName: 'xsd:string', | ||
portWorldWideName: 'xsd:string' | ||
nodeWorldWideName: 'DecimalWorldWideName', | ||
portWorldWideName: 'DecimalWorldWideName' | ||
}; | ||
} | ||
}; |
@@ -252,3 +252,6 @@ 'use strict'; | ||
HostFileSystemMountInfo: require('./HostFileSystemMountInfo'), | ||
RetrieveOptions: require('./RetrieveOptions') | ||
RetrieveOptions: require('./RetrieveOptions'), | ||
HostBlockHba: require('./HostBlockHba'), | ||
HostFibreChannelHba: require('./HostFibreChannelHba'), | ||
HostParallelScsiHba: require('./HostParallelScsiHba') | ||
}; |
@@ -37,5 +37,5 @@ 'use strict'; | ||
npivDesiredPortWwns: 'xsd:short', | ||
npivNodeWorldWideName: 'ArrayOfLong', | ||
npivNodeWorldWideName: 'ArrayOfDecimalWorldWideName', | ||
npivOnNonRdmDisks: 'xsd:boolean', | ||
npivPortWorldWideName: 'ArrayOfLong', | ||
npivPortWorldWideName: 'ArrayOfDecimalWorldWideName', | ||
npivTemporaryDisabled: 'xsd:boolean', | ||
@@ -42,0 +42,0 @@ npivWorldWideNameType: 'xsd:string', |
@@ -62,3 +62,3 @@ /* eslint-disable max-classes-per-file */ | ||
* of why this might happen to you for some entities... | ||
* As a general rule, set this to `true` for inherited Data Objects (.e.: thoses that don't directly extend {@link DynamicData} | ||
* As a general rule, set this to `true` for inherited Data Objects (.e.: those that don't directly extend {@link DynamicData} | ||
* | ||
@@ -65,0 +65,0 @@ * @returns {Boolean} Whether the library should request this object in full, or ask for all sub-properties |
{ | ||
"name": "@stordata/vsphere-soapify", | ||
"version": "0.0.27", | ||
"version": "0.0.28", | ||
"description": "A NodeJS abstraction layer for the vSphere SOAP API", | ||
@@ -32,13 +32,13 @@ "main": "index.js", | ||
"lodash": "4.17.21", | ||
"soap": "0.43.0", | ||
"tough-cookie": "4.0.0" | ||
"soap": "0.45.0", | ||
"tough-cookie": "4.1.2" | ||
}, | ||
"devDependencies": { | ||
"@stordata/eslint-config": "1.0.20220507000753", | ||
"@stordata/eslint-config": "1.0.20220924010720", | ||
"chai": "4.3.6", | ||
"chai-datetime": "1.8.0", | ||
"eslint": "8.15.0", | ||
"eslint": "8.24.0", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-json": "3.1.0", | ||
"eslint-plugin-no-only-tests": "2.6.0", | ||
"eslint-plugin-no-only-tests": "3.0.0", | ||
"eslint-plugin-node": "11.1.0", | ||
@@ -51,3 +51,3 @@ "grunt": "1.5.3", | ||
"mockdate": "3.0.5", | ||
"nock": "13.2.4", | ||
"nock": "13.2.9", | ||
"sinon": "14.0.0", | ||
@@ -54,0 +54,0 @@ "sinon-chai": "3.7.0" |
Sorry, the diff of this file is too big to display
3498740
314
22344
+ Addedasap@2.0.6(transitive)
+ Addedcall-bound@1.0.4(transitive)
+ Addeddezalgo@1.0.4(transitive)
+ Addedformidable@2.1.2(transitive)
+ Addedhexoid@1.0.0(transitive)
+ Addedobject-inspect@1.13.4(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedqs@6.14.0(transitive)
+ Addedquerystringify@2.2.0(transitive)
+ Addedrequires-port@1.0.0(transitive)
+ Addedside-channel@1.1.0(transitive)
+ Addedside-channel-list@1.0.0(transitive)
+ Addedside-channel-map@1.0.1(transitive)
+ Addedside-channel-weakmap@1.0.2(transitive)
+ Addedsoap@0.45.0(transitive)
+ Addedtough-cookie@4.1.2(transitive)
+ Addeduniversalify@0.2.0(transitive)
+ Addedurl-parse@1.5.10(transitive)
+ Addedwhatwg-mimetype@3.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedaxios@0.21.4(transitive)
- Removedcontent-type-parser@1.0.2(transitive)
- Removedformidable@1.2.6(transitive)
- Removedsoap@0.43.0(transitive)
- Removedtough-cookie@4.0.0(transitive)
- Removeduniversalify@0.1.2(transitive)
Updatedsoap@0.45.0
Updatedtough-cookie@4.1.2