Adds an item to the index object.
function addToIndex( index, folder, patchversion, version, filename )
The request handler for generating and serving archives.
function archiveRequestHandler( genconf, req, res )
Retruns true of two buffers are equal.
function areBuffersEqual( a, b )
Decode files into base64strings if they match the passed extionstion.
BASE64IFY: function ( name, data, output )
Passes true to the callback if there are updates.
var checkForUpdates = function ( callback )
Removes items from the cache.
var clearCached = function ( rest )
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding
function decodeBase64( sBase64, nBlocksSize )
Returns a string from a UTF8 encoded arraybuffer.
function decodeString ( buffer )
Creates a new archive that contains all the files in b that are not in a or have changed since a, and has it’s comment set to metadata the same as that in a except the patchVersion property, which will be the version of a, and the removedFiles property which contains a list of files in a but not in b.
function diffArchives( a, b )
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding
function encodeBase64 ( aBytes )
Evaluates a script files in a special way that plays nicely with the debugger.
EVAL_AS_JS: function ( name, data, output )
Expands the folder structure of the files in the archive.
EXPAND_FOLDERS: function ( name, data, output )
Contains post processing tasks that filter out files for other post tasks.
var FILTER
Gets the archive from the cached buffer and the patch/base buffer.
function fromBuffers( cached, uptodate, folder, events, postTasks )
Generates the base versions and any patches needed.
function generate( c )
Gets a list of the avalible files for download.
function getAvalibleFileList( callback )
Returns the object that goes into the _axloaderInfo file.
function getAxLoaderInfo( folder )
Takes a list of the avalible filenames and returns an integer version number that represents the highest version.
function getBestVersion( versions )
Gets the cached data for a folder.
function getCached( folder )
function getFilename( folder, patchversion, version )
Gets the file that should be downloaded.
function getMostAppropriateFile( folder, cachedVersion, callback )
Returns a list of the avalible base versions for a given folder.
function getPatchableVersions( folder, index )
Takes an archive and returns the version number.
function getVersion( ar )
Reads the cached version and determines if it is up to date.
function isUpdateNeeded( filename, cachedArchive )
Builds a archive based on a configuration.
function makeArchive( genconf )
Decode files into strings if they match the passed extionstion.
PARSE_AS_JSON: function ( name, data, output )
Runs all the functions in the tasks array against all the properties on files.
function postProcess( files, tasks )
Removes file extentions.
REMOVE_FILE_EXTS: function ( name, data, output )
Saves a archive file to disk.
function saveArchive( genconf, buffer )
Sends the archive file to a response object.
function sendArchive( buffer, res )
Sets the cached data for a folder.
function setCached( folder, buffer )
Begin loading a folder.
function startLoading( folder, events, postTasks )
Decode files into strings if they match the passed extionstion.
STRINGIFY: function ( name, data, output )
Starts a server for testing patching.
function testserver( c )
Decode files into strings if they match the passed extionstion.
USE_AS_CSS: function ( name, data, output )
A filter that calls the passed function if the name matches the passed file extention.
WITH_EXT: function ( ext, f )
A filter than calls the passed function if the names match.
WITH_FILE: function ( n, f )
A filter than calls the passed function if the names don’t match.
WITHOUT: function ( re, f )