-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update taist manifest - update builds
- Loading branch information
Showing
5 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// moysklad-client 0.2.6 (bundle length 418610) | ||
// moysklad-client 0.2.6 (bundle length 418600) | ||
// Сборка библиотеки moysklad-client для браузера | ||
// | ||
// Vitaliy Makeev ([email protected]) | ||
|
@@ -1187,7 +1187,7 @@ var total = function (type, query, callback) { | |
function _totalFromParts(paramsIndex, cumulativeTotal, callback) { | ||
|
||
if (_queryParametersList[paramsIndex]) { | ||
var _params = _.extend({}, _queryParametersList[paramsIndex], { count: 0, start: 0 }); | ||
var _params = _.extend({}, _queryParametersList[paramsIndex], { count: 0 }); | ||
|
||
_restClient.get(type, _params, function (err, data) { | ||
if (err) return callback(err); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// moysklad-client 0.2.6 (bundle length 98994) | ||
// moysklad-client 0.2.6 (bundle length 98984) | ||
// Сборка с кодом основной библиотеки moysklad-client | ||
// | ||
// Vitaliy Makeev ([email protected]) | ||
|
@@ -1109,7 +1109,7 @@ var total = function (type, query, callback) { | |
function _totalFromParts(paramsIndex, cumulativeTotal, callback) { | ||
|
||
if (_queryParametersList[paramsIndex]) { | ||
var _params = _.extend({}, _queryParametersList[paramsIndex], { count: 0, start: 0 }); | ||
var _params = _.extend({}, _queryParametersList[paramsIndex], { count: 0 }); | ||
|
||
_restClient.get(type, _params, function (err, data) { | ||
if (err) return callback(err); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ function init() { | |
// script | ||
|
||
|
||
// moysklad-client 0.2.5 (bundle length 418592) | ||
// moysklad-client 0.2.6 (bundle length 418600) | ||
// Сборка библиотеки moysklad-client для браузера | ||
// | ||
// Vitaliy Makeev ([email protected]) | ||
|
@@ -87,7 +87,7 @@ module.exports=require('gaBrea'); | |
},{}],7:[function(require,module,exports){ | ||
module.exports={ | ||
"name": "moysklad-client", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"author": { | ||
"name": "Vitaliy Makeev", | ||
"email": "[email protected]", | ||
|
@@ -1191,7 +1191,7 @@ var total = function (type, query, callback) { | |
function _totalFromParts(paramsIndex, cumulativeTotal, callback) { | ||
|
||
if (_queryParametersList[paramsIndex]) { | ||
var _params = _.extend({}, _queryParametersList[paramsIndex], { count: 0, start: 0 }); | ||
var _params = _.extend({}, _queryParametersList[paramsIndex], { count: 0 }); | ||
|
||
_restClient.get(type, _params, function (err, data) { | ||
if (err) return callback(err); | ||
|
@@ -6172,13 +6172,16 @@ Jsonix.Schema.XSD.DateTime = Jsonix.Class(Jsonix.Schema.XSD.Calendar, { | |
typeName : Jsonix.Schema.XSD.qname('dateTime'), | ||
parse : function(value) { | ||
var calendar = this.parseDateTime(value); | ||
var date = new Date(); | ||
date.setFullYear(calendar.year); | ||
date.setMonth(calendar.month - 1); | ||
date.setDate(calendar.day); | ||
date.setHours(calendar.hour); | ||
date.setMinutes(calendar.minute); | ||
date.setSeconds(calendar.second); | ||
|
||
// wmakeev: set date in ctor (bug with overflow) | ||
var date = new Date( | ||
calendar.year, | ||
calendar.month - 1, | ||
calendar.day, | ||
calendar.hour, | ||
calendar.minute, | ||
calendar.second); | ||
|
||
if (Jsonix.Util.Type.isNumber(calendar.fractionalSecond)) { | ||
date.setMilliseconds(Math.floor(1000 * calendar.fractionalSecond)); | ||
} | ||
|
@@ -6189,11 +6192,10 @@ Jsonix.Schema.XSD.DateTime = Jsonix.Class(Jsonix.Schema.XSD.Calendar, { | |
// The time-zone offset is the difference, in minutes, between UTC and local time. | ||
// The value returned by the getTime method is the number of milliseconds since 1 January 1970 00:00:00 UTC. | ||
|
||
if (Jsonix.Util.NumberUtils.isInteger(calendar.timezone)) { | ||
if (Jsonix.Util.NumberUtils.isInteger(calendar.timezone)) | ||
return new Date(date.getTime() - (60000 * date.getTimezoneOffset()) - (calendar.timezone * 60000)); | ||
} else { | ||
else | ||
return new Date(date.getTime() - (60000 * date.getTimezoneOffset())); | ||
} | ||
}, | ||
print : function(value) { | ||
Jsonix.Util.Ensure.ensureDate(value); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters