Fix issue where reading JPEGs from a TPK would truncate the buffer before base64 encoding.

Fix package version to work with current NPM. Required before npm install would run.
Update changelog and increment npm package version.
This commit is contained in:
Nicholas Furness 2014-10-14 16:02:44 -04:00
parent 4b42df2a8d
commit eb6dbcbacb
8 changed files with 13 additions and 9 deletions

View File

@ -1,5 +1,9 @@
# offline-editor-js - Changelog
## Version 2.3.1 - Oct 14, 2014
- Fixes NPM version for current NPM (requires patch version)
- Fixes issue with JPEG-based TPKs where tiles were not completely read from the TPK buffer, resulting in an incomplete image.
## Version 2.3 - Oct 13, 2014
- Closes #74 - Build sample with nice UX for editing
- Closes #257 - Build getting started pages for AGOL, editing and TPK. All samples show basic functionality and are responsive. Also integrated a new launch page for the API and How To Use docs.

View File

@ -1,4 +1,4 @@
/*! offline-editor-js - v2.3 - 2014-10-13
/*! offline-editor-js - v2.3.1 - 2014-10-14
* Copyright (c) 2014 Environmental Systems Research Institute, Inc.
* Apache License*/

View File

@ -1,4 +1,4 @@
/*! offline-editor-js - v2.3 - 2014-10-13
/*! offline-editor-js - v2.3.1 - 2014-10-14
* Copyright (c) 2014 Environmental Systems Research Institute, Inc.
* Apache License*/
define([

View File

@ -1,4 +1,4 @@
/*! offline-editor-js - v2.3 - 2014-10-13
/*! offline-editor-js - v2.3.1 - 2014-10-14
* Copyright (c) 2014 Environmental Systems Research Institute, Inc.
* Apache License*/
define([

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
/*! offline-editor-js - v2.3 - 2014-10-13
/*! offline-editor-js - v2.3.1 - 2014-10-14
* Copyright (c) 2014 Environmental Systems Research Institute, Inc.
* Apache License*/
/**
@ -632,7 +632,7 @@ define([
_buffer2Base64: function(/* ArrayBuffer */arrayBuffer,/* int */ position,callback){
var view = new DataView(arrayBuffer,position);
var chunk = view.getInt32(0,true);
var buffer = view.buffer.slice(position + 4,position + chunk);
var buffer = view.buffer.slice(position + 4,position + 4 + chunk);
var string = this._base64ArrayBuffer(buffer);
callback(string);
},

View File

@ -629,7 +629,7 @@ define([
_buffer2Base64: function(/* ArrayBuffer */arrayBuffer,/* int */ position,callback){
var view = new DataView(arrayBuffer,position);
var chunk = view.getInt32(0,true);
var buffer = view.buffer.slice(position + 4,position + chunk);
var buffer = view.buffer.slice(position + 4,position + 4 + chunk);
var string = this._base64ArrayBuffer(buffer);
callback(string);
},

View File

@ -1,7 +1,7 @@
{
"name": "offline-editor-js",
"version": "2.3",
"description": "Lighweight set of libraries for working offline with map tiles and ArcGIS feature services",
"version": "2.3.1",
"description": "Lightweight set of libraries for working offline with map tiles and ArcGIS feature services",
"author": "Andy Gup <agup@esri.com> (http://blog.andygup.net)",
"license": "Apache 2",
"contributors": [