New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

herm-js-document

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

herm-js-document - npm Package Compare versions

Comparing version 0.2.4 to 0.3.0

7

package.json
{
"name": "herm-js-document",
"version": "0.2.4",
"version": "0.3.0",
"description": "Herm-js document system for offline sync, and auto conflict resolution.",

@@ -32,3 +32,6 @@ "main": "modules/index.js",

"author": "Yann Stepienik",
"license": "Apache 2.0"
"license": "Apache 2.0",
"dependencies": {
"cpy-cli": "^2.0.0"
}
}

@@ -1,4 +0,1 @@

[![CircleCI](https://img.shields.io/circleci/project/github/azukaar/herm-js.svg)](https://circleci.com/gh/azukaar/herm-js/tree/master) [![Coverage Status](https://img.shields.io/coveralls/github/azukaar/herm-js.svg)](https://coveralls.io/github/azukaar/herm-js?branch=master) [![js-airbnb-style](https://img.shields.io/badge/code%20style-Airbnb-brightgreen.svg)](https://www.npmjs.com/package/eslint-config-airbnb-base)
# Herm document system

@@ -5,0 +2,0 @@

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.hermDoc=t():e.hermDoc=t()}(window,function(){return function(e){var t={};function n(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:s})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function s(e){const t=`${Date.now()}`.slice(5),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-=+][}{|/.,?><~£≈ç√∫~µåß∂ƒ©∆œ∑®†^^©˙∆";let s="";for(let e=0;e<4;e+=1){const o=parseInt(t.slice(2*e,2*e+2),10);s+=n.charAt(o)}for(let e=0;e<3;e+=1)s+=n.charAt(Math.floor(Math.random()*n.length));return s+=e}n.r(t);class o{constructor(e){this.keys=[],this.content=[];const t=s("");this.keys[0]=t,this.content[t]="",e&&this.push(0,e)}push(e,t){Array.from(t).forEach((t,n)=>{const o=s(t);this.keys.splice(e+n,0,o),this.content[o]=t})}duplicate(){const e=new o;return e.keys=Object.assign([],this.keys),e.content=Object.assign([],this.content),e}display(){let e="";return this.keys.forEach(t=>{this.content[t]&&(e+=this.content[t])}),e}displayRange(e,t){const n=this.getKeys();let s="";return n.forEach((n,o)=>{o>=e&&o<t&&this.content[n]&&(s+=this.content[n])}),s}indexOf(e){return this.keys.indexOf(e)}merge(e){const t=new o;let n=0,s=0;for(;this.keys[n]||e.keys[s];){if(this.keys[n]===e.keys[s])t.keys.push(this.keys[n]),n+=1,s+=1;else{for(;this.keys[n]&&-1===e.keys.indexOf(this.keys[n]);)t.keys.push(this.keys[n]),n+=1;for(;e.keys[s]&&-1===this.keys.indexOf(e.keys[s]);)t.keys.push(e.keys[s]),s+=1}if(!this.keys[n]){t.keys=t.keys.concat(e.keys.slice(s));break}if(!e.keys[s]){t.keys=t.keys.concat(this.keys.slice(n));break}}return t.content=Object.assign([],this.content),e.keys.forEach(n=>{null!==t.content[n]&&(t.content[n]=e.content[n])}),t}getKeys(){return this.keys.filter(e=>null!==this.content[e])}deleteRange(e,t){const n=this.getKeys();for(let s=0;s<t;s+=1){const t=n[e+s];this.content[t]=null}}}t.default=o}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.HermDocument=t():e.HermDocument=t()}(window,function(){return function(e){var t={};function n(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:s})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function s(e){const t=`${Date.now()}`.slice(5),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-=+][}{|/.,?><~£≈ç√∫~µåß∂ƒ©∆œ∑®†^^©˙∆";let s="";for(let e=0;e<4;e+=1){const o=parseInt(t.slice(2*e,2*e+2),10);s+=n.charAt(o)}for(let e=0;e<3;e+=1)s+=n.charAt(Math.floor(Math.random()*n.length));return s+=e}n.r(t);class o{constructor(e){this.keys=[],this.content=[];const t=s("");this.keys[0]=t,this.content[t]="",e&&this.push(0,e)}push(e,t){Array.from(t).forEach((t,n)=>{const o=s(t);this.keys.splice(e+n,0,o),this.content[o]=t})}duplicate(){const e=new o;return e.keys=Object.assign([],this.keys),e.content=Object.assign([],this.content),e}display(){let e="";return this.keys.forEach(t=>{this.content[t]&&(e+=this.content[t])}),e}displayRange(e,t){const n=this.getKeys();let s="";return n.forEach((n,o)=>{o>=e&&o<t&&this.content[n]&&(s+=this.content[n])}),s}indexOf(e){return this.keys.indexOf(e)}merge(e){const t=new o;let n=0,s=0;for(;this.keys[n]||e.keys[s];){if(this.keys[n]===e.keys[s])t.keys.push(this.keys[n]),n+=1,s+=1;else{for(;this.keys[n]&&-1===e.keys.indexOf(this.keys[n]);)t.keys.push(this.keys[n]),n+=1;for(;e.keys[s]&&-1===this.keys.indexOf(e.keys[s]);)t.keys.push(e.keys[s]),s+=1}if(!this.keys[n]){t.keys=t.keys.concat(e.keys.slice(s));break}if(!e.keys[s]){t.keys=t.keys.concat(this.keys.slice(n));break}}return t.content=Object.assign([],this.content),e.keys.forEach(n=>{null!==t.content[n]&&(t.content[n]=e.content[n])}),t}getKeys(){return this.keys.filter(e=>null!==this.content[e])}deleteRange(e,t){const n=this.getKeys();for(let s=0;s<t;s+=1){const t=n[e+s];this.content[t]=null}}}t.default=o}])});
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