Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apiway

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apiway - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

dst/Api.js

@@ -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";

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc