Comparing version 0.0.1 to 0.0.2
@@ -214,2 +214,2 @@ "use strict"; | ||
exports["default"] = new Api(); | ||
module.exports = exports["default"]; | ||
module.exports = exports["default"]; |
@@ -23,2 +23,2 @@ "use strict"; | ||
exports.Resource = _Resource2["default"]; | ||
exports.Store = _Store2["default"]; | ||
exports.Store = _Store2["default"]; |
@@ -39,2 +39,2 @@ "use strict"; | ||
}; | ||
exports.RESOURCE = RESOURCE; | ||
exports.RESOURCE = RESOURCE; |
@@ -161,7 +161,7 @@ "use strict"; | ||
applyDataChanges: function applyDataChanges(changes) { | ||
var _changes = _slicedToArray(changes, 2); | ||
applyDataPatch: function applyDataPatch(patch) { | ||
var _patch = _slicedToArray(patch, 2); | ||
var del = _changes[0]; | ||
var add = _changes[1]; | ||
var del = _patch[0]; | ||
var add = _patch[1]; | ||
var jsonDataArr = $(this).jsonData.split(""); | ||
@@ -193,3 +193,3 @@ for (var index in del) { | ||
if (data.id == $(this).id) { | ||
if (data.changes) $(this).applyDataChanges(data.changes);else if (data.full) $(this).applyDataFull(data.full);else if (data.error) this.trigger(_Events.RESOURCE.ERROR, data.error); | ||
if (data.patch) $(this).applyDataPatch(data.patch);else if (data.full) $(this).applyDataFull(data.full);else if (data.error) this.trigger(_Events.RESOURCE.ERROR, data.error); | ||
} | ||
@@ -199,2 +199,2 @@ }), _HANDLERS); | ||
exports["default"] = Resource; | ||
module.exports = exports["default"]; | ||
module.exports = exports["default"]; |
@@ -32,2 +32,2 @@ "use strict"; | ||
exports["default"] = new Store(); | ||
module.exports = exports["default"]; | ||
module.exports = exports["default"]; |
@@ -0,0 +0,0 @@ var gulp = require( "gulp" ), |
{ | ||
"name": "apiway", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Client side for Apiway framework", | ||
"main": "./dst/Apiway.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/4urbanoff/js.apiway.git" | ||
}, | ||
"scripts": { | ||
@@ -20,2 +24,2 @@ "build": "gulp build" | ||
} | ||
} | ||
} |
@@ -0,0 +0,0 @@ import Promise from "native-promise-only"; |
@@ -0,0 +0,0 @@ import Api from "./Api"; |
@@ -0,0 +0,0 @@ export const API = { |
@@ -110,4 +110,4 @@ import Private from "js.private"; | ||
applyDataChanges: function( changes ){ | ||
let [ del, add ] = changes, | ||
applyDataPatch: function( patch ){ | ||
let [ del, add ] = patch, | ||
jsonDataArr = $( this ).jsonData.split( `` ); | ||
@@ -142,7 +142,7 @@ for( let index in del ) jsonDataArr.splice( index, del[ index ] ); | ||
if( data.id == $( this ).id ){ | ||
if( data.changes ) $( this ).applyDataChanges( data.changes ); | ||
if( data.patch ) $( this ).applyDataPatch( data.patch ); | ||
else | ||
if( data.full ) $( this ).applyDataFull( data.full ); | ||
if( data.full ) $( this ).applyDataFull( data.full ); | ||
else | ||
if( data.error ) this.trigger( RESOURCE.ERROR, data.error ); | ||
if( data.error ) this.trigger( RESOURCE.ERROR, data.error ); | ||
} | ||
@@ -149,0 +149,0 @@ } |
@@ -0,0 +0,0 @@ import EventEmitter from "js.event_emitter"; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
28861
0
682