mit dem Editor die 3,72MB recht große Datei mal angeschaut - ganz am Ende steht was von Amazon. Für was ist das gut?
Copyright 2014 Amazon.com,
* Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Amazon Software License (the "License").
* You may not use this file except in compliance with the
* License. A copy of the License is located at
*
* http://aws.amazon.com/asl/
*
* or in the "license" file accompanying this file. This file is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, express or implied. See the License
* for the specific language governing permissions and
* limitations under the License.
*/
if(void 0===e)throw new Error("AWS SDK must be loaded before loading the Sync Manager.");var t,r,a,i,s,o,n,u,p;e.CognitoSyncManager=function(t){t=t||{};this.provider=t.credentials||e.config.credentials,this.identityPoolId=this.provider.params.IdentityPoolId,this.region=t.region||e.config.region,this.logger=t.log,"function"!=typeof this.logger&&(this.logger=function(){}),this.local=new e.CognitoSyncManager.LocalStorage({DataStore:t.DataStore?t.DataStore:e.CognitoSyncManager.StoreLocalStorage}),this.remote=new e.CognitoSyncManager.RemoteStorage({identityPoolId:this.identityPoolId,provider:this.provider,region:this.region}),this.remote.setUserAgent("CognitoJavaScriptSDK/1")},e.CognitoSyncManager.prototype.openOrCreateDataset=function(t,r){var a=this,i=new RegExp("^[a-zA-Z0-9_.:-]{1,128}$");i.test(t)?this.local.createDataset(this.getIdentityId(),t,function(t,i){if(t)return r(t,null);r(null,new e.CognitoSyncManager.Dataset(i,a.provider,a.local,a.remote,a.logger))}):r(new Error("Dataset name must match the pattern "+i.toString()))},e.CognitoSyncManager.prototype.listDatasets=function(e){this.local.getDatasets(this.getIdentityId(),e)},e.CognitoSyncManager.prototype.refreshDatasetMetadata=function(e){var t=this;this.remote.getDatasets(function(r,a){var i=[],s=function(e){t.local.updateDatasetMetadata(t.getIdentityId(),e,o)},o=function(t,r){i.push(r),a.length>0?s(a.shift()):e(null,i)};a.length>0?s(a.shift()):e(null,[])})},e.CognitoSyncManager.prototype.wipeData=function(){this.provider.clearCachedId(),this.local.wipeData()},e.CognitoSyncManager.prototype.getIdentityId=function(){return this.provider.identityId},(e=e||{}).CognitoSyncManager=e.CognitoSyncManager||