memorio 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/{dist/README.md → README.md} +27 -88
  2. package/{dist/index.js → index.js} +1 -1
  3. package/package.json +3 -3
  4. package/.editorconfig +0 -31
  5. package/.gitattributes +0 -1
  6. package/.github/CHANGELOG.md +0 -10
  7. package/.github/CITATION.cff +0 -24
  8. package/.github/CODEOWNERS +0 -1
  9. package/.github/CODE_OF_CONDUCT.md +0 -108
  10. package/.github/CONTRIBUTING.md +0 -108
  11. package/.github/COPYRIGHT.md +0 -9
  12. package/.github/FUNDING.yml +0 -16
  13. package/.github/HISTORY.md +0 -1
  14. package/.github/LICENSE.md +0 -21
  15. package/.github/README.md +0 -319
  16. package/.github/SECURITY.md +0 -3
  17. package/.github/SUMMARY.md +0 -21
  18. package/.github/dependabot.yml +0 -11
  19. package/.github/documents/OBSERVER.md +0 -72
  20. package/.github/documents/STATE.md +0 -72
  21. package/.github/documents/STORE.md +0 -84
  22. package/.github/pull_request_template.md +0 -27
  23. package/.private/npm +0 -1
  24. package/.vscode/extension.json +0 -15
  25. package/.vscode/settings.json +0 -90
  26. package/config/dispatch.ts +0 -49
  27. package/config/global.ts +0 -36
  28. package/coverage/clover.xml +0 -260
  29. package/coverage/coverage-final.json +0 -10
  30. package/coverage/lcov-report/a51.memorio/config/dispatch.ts.html +0 -232
  31. package/coverage/lcov-report/a51.memorio/config/global.ts.html +0 -193
  32. package/coverage/lcov-report/a51.memorio/config/index.html +0 -131
  33. package/coverage/lcov-report/a51.memorio/dist/config/dispatch.js.html +0 -157
  34. package/coverage/lcov-report/a51.memorio/dist/config/global.js.html +0 -142
  35. package/coverage/lcov-report/a51.memorio/dist/config/index.html +0 -131
  36. package/coverage/lcov-report/a51.memorio/dist/functions/cache/index.html +0 -116
  37. package/coverage/lcov-report/a51.memorio/dist/functions/cache/index.js.html +0 -103
  38. package/coverage/lcov-report/a51.memorio/dist/functions/observer/index.html +0 -116
  39. package/coverage/lcov-report/a51.memorio/dist/functions/observer/index.js.html +0 -280
  40. package/coverage/lcov-report/a51.memorio/dist/functions/state/index.html +0 -116
  41. package/coverage/lcov-report/a51.memorio/dist/functions/state/index.js.html +0 -460
  42. package/coverage/lcov-report/a51.memorio/dist/functions/store/index.html +0 -116
  43. package/coverage/lcov-report/a51.memorio/dist/functions/store/index.js.html +0 -367
  44. package/coverage/lcov-report/a51.memorio/dist/index.html +0 -116
  45. package/coverage/lcov-report/a51.memorio/dist/init.js.html +0 -106
  46. package/coverage/lcov-report/a51.memorio/functions/cache/index.html +0 -116
  47. package/coverage/lcov-report/a51.memorio/functions/cache/index.ts.html +0 -142
  48. package/coverage/lcov-report/a51.memorio/functions/observer/index.html +0 -116
  49. package/coverage/lcov-report/a51.memorio/functions/observer/index.ts.html +0 -448
  50. package/coverage/lcov-report/a51.memorio/functions/session/index.html +0 -116
  51. package/coverage/lcov-report/a51.memorio/functions/session/index.ts.html +0 -409
  52. package/coverage/lcov-report/a51.memorio/functions/state/index.html +0 -116
  53. package/coverage/lcov-report/a51.memorio/functions/state/index.ts.html +0 -682
  54. package/coverage/lcov-report/a51.memorio/functions/store/index.html +0 -116
  55. package/coverage/lcov-report/a51.memorio/functions/store/index.ts.html +0 -409
  56. package/coverage/lcov-report/a51.memorio/index.html +0 -131
  57. package/coverage/lcov-report/a51.memorio/index.ts.html +0 -88
  58. package/coverage/lcov-report/a51.memorio/init.ts.html +0 -115
  59. package/coverage/lcov-report/base.css +0 -224
  60. package/coverage/lcov-report/block-navigation.js +0 -87
  61. package/coverage/lcov-report/favicon.png +0 -0
  62. package/coverage/lcov-report/index.html +0 -206
  63. package/coverage/lcov-report/prettify.css +0 -1
  64. package/coverage/lcov-report/prettify.js +0 -2
  65. package/coverage/lcov-report/session/index.html +0 -116
  66. package/coverage/lcov-report/session/index.ts.html +0 -571
  67. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  68. package/coverage/lcov-report/sorter.js +0 -210
  69. package/coverage/lcov-report/state/index.html +0 -116
  70. package/coverage/lcov-report/state/index.ts.html +0 -1090
  71. package/coverage/lcov-report/store/index.html +0 -116
  72. package/coverage/lcov-report/store/index.ts.html +0 -556
  73. package/coverage/lcov.info +0 -518
  74. package/dist/index.d.ts +0 -7
  75. package/dist/package.json +0 -98
  76. package/dist/types/cache.d.ts +0 -27
  77. package/dist/types/memorio.d.ts +0 -18
  78. package/dist/types/observer.d.ts +0 -47
  79. package/dist/types/session.d.ts +0 -91
  80. package/dist/types/state.d.ts +0 -71
  81. package/dist/types/store.d.ts +0 -91
  82. package/esbuild.config.mjs +0 -54
  83. package/eslint.config.mjs +0 -174
  84. package/examples/bg.jpg +0 -0
  85. package/examples/bootstrap.less +0 -92
  86. package/examples/favicon.ico +0 -0
  87. package/examples/index.htm +0 -65
  88. package/examples/javascript.js +0 -2
  89. package/examples/responsive.less +0 -47
  90. package/examples/styles.less +0 -169
  91. package/functions/cache/index.ts +0 -19
  92. package/functions/observer/index.ts +0 -121
  93. package/functions/session/index.ts +0 -108
  94. package/functions/state/index.ts +0 -199
  95. package/functions/store/index.ts +0 -108
  96. package/index.ts +0 -1
  97. package/init.ts +0 -12
  98. package/jest.config.mjs +0 -33
  99. package/jest.setup.js +0 -2
  100. package/tests/basic.test.ts +0 -50
  101. package/tests/cache.test.ts +0 -52
  102. package/tests/observer.test.ts +0 -62
  103. package/tests/setup.ts +0 -48
  104. package/tests/state.test.ts +0 -45
  105. package/tests/store.test.ts +0 -62
  106. package/tsconfig.json +0 -67
@@ -2,18 +2,17 @@
2
2
 
3
3
  > A lightweight, type-safe state management library for modern JavaScript applications
4
4
 
5
- ![TypeScript](https://img.shields.io/badge/TypeScript-5.9.2-blue?logo=typescript)
6
- ![Node.js](https://img.shields.io/badge/Node.js-24.3.0-green?logo=node.js)
7
- ![Jest](https://img.shields.io/badge/Jest-30.0.5-red?logo=jest)
8
- ![ESLint](https://img.shields.io/badge/ESLint-9.34.0-purple?logo=eslint)
9
- ![esbuild](https://img.shields.io/badge/esbuild-0.25.9-yellow?logo=esbuild)
5
+ ![TypeScript](https://img.shields.io/badge/TypeScript-gray?logo=typescript)
6
+ ![Node.js](https://img.shields.io/badge/Node.js-gray?logo=node.js)
7
+ ![Jest](https://img.shields.io/badge/Jest-gray?logo=jest)
8
+ ![ESLint](https://img.shields.io/badge/ESLint-gray?logo=eslint)
9
+ ![esbuild](https://img.shields.io/badge/esbuild-gray?logo=esbuild)
10
10
  ![License](https://img.shields.io/badge/license-MIT-blue.svg)
11
- ![Version](https://img.shields.io/badge/version-0.2.15-orange)
12
11
 
13
12
  ![Tests](https://img.shields.io/badge/tests-passing-brightgreen)
14
13
  ![Coverage](https://img.shields.io/badge/coverage-25%20passed-success)
15
14
 
16
- ## 📋 Table of Contents
15
+ ## Table of Contents
17
16
 
18
17
  - [Features](#features)
19
18
  - [Installation](#installation)
@@ -27,17 +26,17 @@
27
26
  - [Security](#security)
28
27
  - [License](#license)
29
28
 
30
- ## Features
29
+ ## Features
31
30
 
32
- - 🔄 Reactive state management with observer pattern
33
- - 💾 Persistent storage with Store API
34
- - Session management for temporary data
35
- - 🔒 Type-safe with full TypeScript support
36
- - 🧪 Comprehensive test coverage
37
- - 🎯 Zero dependencies
38
- - 🔍 Easy debugging with proxy-based state
31
+ - Reactive state management with observer pattern
32
+ - Persistent storage with Store API
33
+ - Session management for temporary data
34
+ - Type-safe with full TypeScript support
35
+ - Comprehensive test coverage
36
+ - Zero dependencies
37
+ - Easy debugging with proxy-based state
39
38
 
40
- ## 📦 Installation
39
+ ## Installation
41
40
 
42
41
  ```bash
43
42
  npm install memorio
@@ -47,7 +46,7 @@ yarn add memorio
47
46
  pnpm add memorio
48
47
  ```
49
48
 
50
- All test suites are passing:
49
+ ### All test suites are passing
51
50
 
52
51
  - Basic functionality tests
53
52
  - State management tests
@@ -57,7 +56,7 @@ pnpm add memorio
57
56
 
58
57
  Total: 25 tests passed across 5 test suites
59
58
 
60
- ## 🚀 Quick Start
59
+ ## Quick Start
61
60
 
62
61
  ```javascript
63
62
  import 'memorio';
@@ -80,7 +79,7 @@ session.set('token', 'user-jwt-token');
80
79
  const token = session.get('token');
81
80
  ```
82
81
 
83
- ## 📖 API Reference
82
+ ## API Reference
84
83
 
85
84
  ### State Management
86
85
 
@@ -221,70 +220,9 @@ export default App;
221
220
 
222
221
  ---
223
222
 
224
- ## SESSION
223
+ ## Testing
225
224
 
226
- Session storage provides a way to store data for the duration of a page session. The data persists as long as the browser is open and survives over page reloads, but is lost when the browser tab or window is closed.
227
-
228
- ```js
229
- // Set a session value:
230
- session.set("userId", "12345")
231
-
232
- // Get a session value:
233
- session.get("userId") // Output: "12345"
234
-
235
- // Remove a specific session value:
236
- session.remove("userId")
237
-
238
- // Get the number of items in session:
239
- session.size() // Output: number of stored items
240
-
241
- // Remove all session values:
242
- session.removeAll()
243
- ```
244
-
245
- ### Example use Session in React
246
-
247
- ```js
248
- import { useEffect } from 'react';
249
- import 'memorio';
250
-
251
- function UserSession() {
252
- useEffect(() => {
253
- // Store user session data
254
- session.set('userSession', {
255
- id: '12345',
256
- lastActive: Date.now(),
257
- preferences: {
258
- theme: 'dark',
259
- language: 'en'
260
- }
261
- });
262
-
263
- // Retrieve session data
264
- const userData = session.get('userSession');
265
- console.log('User session:', userData);
266
-
267
- // Clean up on component unmount
268
- return () => {
269
- session.remove('userSession');
270
- };
271
- }, []);
272
-
273
- return (
274
- <div>
275
- {/* Your component JSX */}
276
- </div>
277
- );
278
- }
279
-
280
- export default UserSession;
281
- ```
282
-
283
- ---
284
-
285
- ## 🧪 Testing
286
-
287
- ✅ All test suites are passing:
225
+ ## Test suites are passing
288
226
 
289
227
  - Basic functionality tests
290
228
  - State management tests
@@ -294,26 +232,27 @@ export default UserSession;
294
232
 
295
233
  Total: 25 tests passed across 5 test suites
296
234
 
297
- ## 🔒 Security
235
+ ## Security
298
236
 
299
237
  Security scans and reports are available at:
238
+
300
239
  - [Socket.dev](https://socket.dev/npm/package/memorio)
301
240
  - [Snyk.io](https://security.snyk.io/package/npm/memorio)
302
241
 
303
- ## 📄 License
242
+ ## License
304
243
 
305
- MIT © [Dario Passariello](https://dario.passariello.ca/)
244
+ MIT (c) [Dario Passariello](https://dario.passariello.ca/)
306
245
 
307
246
  ---
308
247
 
309
- ## 🤝 Contributing
248
+ ## Contributing
310
249
 
311
250
  Contributions are welcome! Please feel free to submit a Pull Request.
312
251
 
313
- ## 📧 Support
252
+ ## Support
314
253
 
315
254
  Need help? Feel free to [open an issue](https://github.com/a51-dev/a51.memorio/issues).
316
255
 
317
256
  ---
318
257
 
319
- Created with ❤️ by [Dario Passariello](https://dario.passariello.ca/) - Copyright © 2025
258
+ Created with by [Dario Passariello](https://dario.passariello.ca/) - Copyright (c) 2025
@@ -1 +1 @@
1
- "use strict";(()=>{var c={name:"memorio",version:"1.0.0",type:"module",main:"index.js",scripts:{build:"node ./esbuild.config.mjs",watch:"esbuild init.ts --bundle --outdir=dist --serve","-----------":"",test:"set NODE_OPTIONS=--experimental-vm-modules && jest","test:watch":"set NODE_OPTIONS=--experimental-vm-modules && jest --watch","test:coverage":"set NODE_OPTIONS=--experimental-vm-modules && jest --coverage","test:watchAll":"set NODE_OPTIONS=--experimental-vm-modules && jest --watchAll",tsc:"tsc -b .",eslint:"eslint .",updates:"npx npm-check-updates -u && npm i","----------":"","publish:npm":"npm run build && npm publish ./dist"},types:"index.d.ts",typings:"./types/*",description:"Memorio, State + Observer and Store for a easy life ",license:"MIT",copyright:"Dario Passariello, BigLogic ca - a51.dev is a BigLogic project",homepage:"https://a51.gitbook.io/memorio",author:{name:"Dario Passariello",url:"https://dario.passariello.ca/",email:"dariopassariello@gmail.com"},support:{name:"Dario Passariello",url:"https://github.com/passariello/",email:"dariopassariello@gmail.com"},contributors:[{name:"Dario Passariello",email:"dariopassarielloa@gmail.com"},{name:"Valeria Cala Scaglitta",email:"valeriacalascaglitta@gmail.com"}],keywords:["biglogic","a51","memorio","state","store","observer","dario","passariello"],repository:{type:"git",url:"git+https://github.com/a51-dev/a51.memorio.git",help:"https://github.com/a51-dev/a51.memorio#readme"},bugs:{url:"https://github.com/a51-dev/a51.memorio/issues"},funding:[{type:"patreon",url:"https://www.patreon.com/passariello"}],typing:["types/*"],dependencies:{"dphelper.types":"0.0.19"},devDependencies:{"@eslint/js":"9.34.0","@types/jest":"30.0.0","@types/node":"^24.3.0","@typescript-eslint/eslint-plugin":"8.41.0","@typescript-eslint/parser":"8.41.0","dphelper.types":"0.0.19",esbuild:"^0.25.9","esbuild-plugin-clean":"^1.0.1","esbuild-plugin-copy":"^2.1.1",eslint:"9.34.0",jest:"30.0.5","jest-environment-jsdom":"30.0.5","ts-jest":"29.4.1","ts-loader":"^9.5.4","ts-node":"10.9.2",tslib:"^2.8.1",typescript:"5.9.2"}};Object.defineProperty(globalThis,"memorio",{value:{},writable:!1,configurable:!1,enumerable:!1});Object.defineProperty(globalThis,"events",{value:{},writable:!0,configurable:!1,enumerable:!1});Object.defineProperty(memorio,"version",{writable:!1,configurable:!1,enumerable:!1,value:c.version});Object.defineProperty(memorio,"dispatch",{writable:!1,configurable:!1,enumerable:!1,value:{set:(e,t={})=>{dispatchEvent(new CustomEvent(String(e),t))},listen:(e,t=null,i=!1)=>{observer.list?.[e]?.length>0&&observer.remove(e);let l=r=>t?setTimeout(()=>t(r),1):null;globalThis.addEventListener(e,l),globalThis.events[e]=l},remove:e=>{globalThis.removeEventListener(e,globalThis.events[e]),delete globalThis.events[e]}}});Object.defineProperty(memorio,"objPath",{writable:!1,configurable:!1,enumerable:!1,value:(e,t,i=".")=>t.concat(e).join(i)});var u=(e,t,i=[])=>{let l=r=>{let o=r.split(".");o.forEach((s,n)=>{let a=o.slice(0,n+1).join(".");globalThis.memorio.dispatch.set(a,{detail:{name:a}})})};return new Proxy(e,{get(r,o){if(o==="list"){let s={};for(let n in r)typeof r[n]!="function"&&!["list","remove","removeAll"].includes(n)&&(s[n]=r[n]);return s}if(o==="remove")return function(s){return s in r&&!["list","remove","removeAll"].includes(s)?(delete r[s],!0):!1};if(o==="removeAll")return function(){for(let s in r)typeof r[s]!="function"&&!["list","remove","removeAll"].includes(s)&&delete r[s];return!0};if(Object.isFrozen(r[o]))return r[o];try{let s=Reflect.get(r,o);return s&&typeof s=="object"&&["Array","Object"].includes(s.constructor.name)?u(s,t,i.concat(o)):s}catch(s){console.error("Error: ",s);return}},set(r,o,s){if(r[o]&&typeof r[o]=="object"&&Object.isFrozen(r[o])){console.error(`Error: state '${o}' is locked`);return}try{let n=globalThis.memorio.objPath(o,i);return t({action:"set",path:n,target:r,newValue:s,previousValue:Reflect.get(r,o)}),l("state."+n),Reflect.set(r,o,s),r[o]&&typeof r[o]=="object"&&Reflect.defineProperty(r[o],"lock",{value(){Object.defineProperty(r,o,{writable:!1,enumerable:!1}),Object.freeze(r[o])}}),!0}catch(n){return console.error("Error in set trap:",n),!1}},deleteProperty(r,o){try{let s=globalThis.memorio.objPath(o,i);return t({action:"delete",path:s,target:r}),Reflect.deleteProperty(r,o)}catch(s){return console.error("Error in deleteProperty trap:",s),!1}}})},g={};globalThis?.state?globalThis.state=state:globalThis.state=u(g,()=>{});var f=new WeakSet;f.add(state);setInterval(()=>{if(!f.has(state)){alert("memorio State is compromised, check if you override it and please reload the page");for(let e=1;e<99999;e++)clearInterval(e);stop()}},1e3);Object.defineProperty(globalThis,"state",{enumerable:!1,configurable:!1});globalThis.observer||(globalThis.observer=null);Object.defineProperty(globalThis,"observer",{enumerable:!1});observer=(e,t=null,i=!0)=>{if((r=>r.split(".")[0]!=="state"?(console.error(`Observer Error: You need to declare 'state.' or 'store.'. The '${r}' string is incorrect!`),!1):!0)(e)){if(!e&&!t){console.error("Observer Error: You need to setup observer correctly, Some parameters are missed!");return}if(!e&&t){console.error("Observer Error: You need to declare what state need to be monitored as string like 'state.test'.");return}if(e&&!t){globalThis.memorio.dispatch.listen(String(e),{detail:{name:String(e)}}),console.debug("called: ",e);return}if(e&&t){if(typeof e!="string"||typeof t!="function"){console.error("Observer Error: name of state need to be a 'string' like 'state.test' and the callback need to be a 'function'");return}globalThis.memorio.dispatch.listen(e,t,i);return}}};Object.defineProperties(observer,{list:{get:()=>globalThis.events},remove:{value:e=>{e&&(globalThis.events[e]="")}},removeAll:{get:()=>{Object.entries(observer.list).forEach(e=>{globalThis.events[e[0]]})}}});Object.freeze(observer);Object.defineProperty(globalThis,"store",{value:new Proxy({},{}),enumerable:!1,configurable:!1});Object.defineProperties(store,{get:{value(e){if(e)try{let t=localStorage.getItem(e);return t&&JSON.parse(t)}catch(t){console.error(`Error parsing store item '${e}':`,t)}}},set:{value(e,t){if(e)try{t==null?localStorage.setItem(e,JSON.stringify(null)):typeof t=="object"||typeof t=="number"||typeof t=="boolean"||typeof t=="string"?localStorage.setItem(e,JSON.stringify(t)):typeof t=="function"&&console.error("It's not secure to store functions.")}catch(i){console.error(`Error setting store item '${e}':`,i)}}},remove:{value(e){if(e&&localStorage.getItem(e))return localStorage.removeItem(e),!0}},delete:{value(e){store.remove(e)}},removeAll:{value(){return localStorage.clear(),!0}},clearAll:{value(){return store.removeAll(),!0}},quota:{value(){"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then(({usage:e,quota:t})=>{e&&t&&console.debug(`Using ${e/1024} out of ${t/1024} Mb.`)}).catch(e=>{console.error("Error estimating quota:",e)})}},size:{value(){let e=0;for(let t in localStorage)if(localStorage.hasOwnProperty(t)){let i=localStorage.getItem(t);i&&(e+=i.length)}return e}}});Object.freeze(store);Object.defineProperty(globalThis,"session",{value:new Proxy({},{}),enumerable:!1,configurable:!1});Object.defineProperties(session,{get:{value(e){if(e)try{let t=sessionStorage.getItem(e);return t&&JSON.parse(t)}catch(t){console.error(`Error parsing session item '${e}':`,t)}}},set:{value(e,t){if(e)try{t==null?sessionStorage.setItem(e,JSON.stringify(null)):typeof t=="object"||typeof t=="number"||typeof t=="boolean"||typeof t=="string"?sessionStorage.setItem(e,JSON.stringify(t)):typeof t=="function"&&console.error("It's not secure to session functions.")}catch(i){console.error(`Error setting session item '${e}':`,i)}}},remove:{value(e){if(e&&sessionStorage.getItem(e))return sessionStorage.removeItem(e),!0}},delete:{value(e){session.remove(e)}},removeAll:{value(){return sessionStorage.clear(),!0}},clearAll:{value(){return session.removeAll(),!0}},quota:{value(){"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then(({usage:e,quota:t})=>{e&&t&&console.debug(`Using ${e/1024} out of ${t/1024} Mb.`)}).catch(e=>{console.error("Error estimating quota:",e)})}},size:{value(){let e=0;for(let t in sessionStorage)if(sessionStorage.hasOwnProperty(t)){let i=sessionStorage.getItem(t);i&&(e+=i.length)}return e}}});Object.freeze(session);Object.defineProperty(window,"cache",{value:new Proxy({},{}),enumerable:!1,configurable:!1});})();
1
+ "use strict";(()=>{var c={name:"memorio",version:"1.1.0",type:"module",main:"index.js",scripts:{build:"node ./esbuild.config.mjs",watch:"esbuild init.ts --bundle --outdir=dist --serve","-----------":"",test:"set NODE_OPTIONS=--experimental-vm-modules && jest","test:watch":"set NODE_OPTIONS=--experimental-vm-modules && jest --watch","test:coverage":"set NODE_OPTIONS=--experimental-vm-modules && jest --coverage","test:watchAll":"set NODE_OPTIONS=--experimental-vm-modules && jest --watchAll",tsc:"tsc -b .",eslint:"eslint .",updates:"npx npm-check-updates -u && npm i","----------":"","publish:npm":"npm run build && npm publish ./dist"},types:"index.d.ts",typings:"./types/*",description:"Memorio, State + Observer and Store for a easy life ",license:"MIT",copyright:"Dario Passariello, BigLogic ca - a51.dev is a BigLogic project",homepage:"https://a51.gitbook.io/memorio",author:{name:"Dario Passariello",url:"https://dario.passariello.ca/",email:"dariopassariello@gmail.com"},support:{name:"Dario Passariello",url:"https://github.com/passariello/",email:"dariopassariello@gmail.com"},contributors:[{name:"Dario Passariello",email:"dariopassarielloa@gmail.com"},{name:"Valeria Cala Scaglitta",email:"valeriacalascaglitta@gmail.com"}],keywords:["biglogic","a51","memorio","state","store","observer","dario","passariello"],repository:{type:"git",url:"git+https://github.com/a51-dev/a51.memorio.git",help:"https://github.com/a51-dev/a51.memorio#readme"},bugs:{url:"https://github.com/a51-dev/a51.memorio/issues"},funding:[{type:"patreon",url:"https://www.patreon.com/passariello"}],typing:["types/*"],dependencies:{"dphelper.types":"0.0.19"},devDependencies:{"@eslint/js":"9.34.0","@types/jest":"30.0.0","@types/node":"^24.3.0","@typescript-eslint/eslint-plugin":"8.41.0","@typescript-eslint/parser":"8.41.0","dphelper.types":"0.0.19",esbuild:"^0.25.9","esbuild-plugin-clean":"^1.0.1","esbuild-plugin-copy":"^2.1.1",eslint:"9.34.0",jest:"30.1.2","jest-environment-jsdom":"30.1.2","ts-jest":"29.4.1","ts-loader":"^9.5.4","ts-node":"10.9.2",tslib:"^2.8.1",typescript:"5.9.2"}};Object.defineProperty(globalThis,"memorio",{value:{},writable:!1,configurable:!1,enumerable:!1});Object.defineProperty(globalThis,"events",{value:{},writable:!0,configurable:!1,enumerable:!1});Object.defineProperty(memorio,"version",{writable:!1,configurable:!1,enumerable:!1,value:c.version});Object.defineProperty(memorio,"dispatch",{writable:!1,configurable:!1,enumerable:!1,value:{set:(e,t={})=>{dispatchEvent(new CustomEvent(String(e),t))},listen:(e,t=null,i=!1)=>{observer.list?.[e]?.length>0&&observer.remove(e);let l=r=>t?setTimeout(()=>t(r),1):null;globalThis.addEventListener(e,l),globalThis.events[e]=l},remove:e=>{globalThis.removeEventListener(e,globalThis.events[e]),delete globalThis.events[e]}}});Object.defineProperty(memorio,"objPath",{writable:!1,configurable:!1,enumerable:!1,value:(e,t,i=".")=>t.concat(e).join(i)});var u=(e,t,i=[])=>{let l=r=>{let o=r.split(".");o.forEach((s,n)=>{let a=o.slice(0,n+1).join(".");globalThis.memorio.dispatch.set(a,{detail:{name:a}})})};return new Proxy(e,{get(r,o){if(o==="list"){let s={};for(let n in r)typeof r[n]!="function"&&!["list","remove","removeAll"].includes(n)&&(s[n]=r[n]);return s}if(o==="remove")return function(s){return s in r&&!["list","remove","removeAll"].includes(s)?(delete r[s],!0):!1};if(o==="removeAll")return function(){for(let s in r)typeof r[s]!="function"&&!["list","remove","removeAll"].includes(s)&&delete r[s];return!0};if(Object.isFrozen(r[o]))return r[o];try{let s=Reflect.get(r,o);return s&&typeof s=="object"&&["Array","Object"].includes(s.constructor.name)?u(s,t,i.concat(o)):s}catch(s){console.error("Error: ",s);return}},set(r,o,s){if(r[o]&&typeof r[o]=="object"&&Object.isFrozen(r[o])){console.error(`Error: state '${o}' is locked`);return}try{let n=globalThis.memorio.objPath(o,i);return t({action:"set",path:n,target:r,newValue:s,previousValue:Reflect.get(r,o)}),l("state."+n),Reflect.set(r,o,s),r[o]&&typeof r[o]=="object"&&Reflect.defineProperty(r[o],"lock",{value(){Object.defineProperty(r,o,{writable:!1,enumerable:!1}),Object.freeze(r[o])}}),!0}catch(n){return console.error("Error in set trap:",n),!1}},deleteProperty(r,o){try{let s=globalThis.memorio.objPath(o,i);return t({action:"delete",path:s,target:r}),Reflect.deleteProperty(r,o)}catch(s){return console.error("Error in deleteProperty trap:",s),!1}}})},g={};globalThis?.state?globalThis.state=state:globalThis.state=u(g,()=>{});var f=new WeakSet;f.add(state);setInterval(()=>{if(!f.has(state)){alert("memorio State is compromised, check if you override it and please reload the page");for(let e=1;e<99999;e++)clearInterval(e);stop()}},1e3);Object.defineProperty(globalThis,"state",{enumerable:!1,configurable:!1});globalThis.observer||(globalThis.observer=null);Object.defineProperty(globalThis,"observer",{enumerable:!1});observer=(e,t=null,i=!0)=>{if((r=>r.split(".")[0]!=="state"?(console.error(`Observer Error: You need to declare 'state.' or 'store.'. The '${r}' string is incorrect!`),!1):!0)(e)){if(!e&&!t){console.error("Observer Error: You need to setup observer correctly, Some parameters are missed!");return}if(!e&&t){console.error("Observer Error: You need to declare what state need to be monitored as string like 'state.test'.");return}if(e&&!t){globalThis.memorio.dispatch.listen(String(e),{detail:{name:String(e)}}),console.debug("called: ",e);return}if(e&&t){if(typeof e!="string"||typeof t!="function"){console.error("Observer Error: name of state need to be a 'string' like 'state.test' and the callback need to be a 'function'");return}globalThis.memorio.dispatch.listen(e,t,i);return}}};Object.defineProperties(observer,{list:{get:()=>globalThis.events},remove:{value:e=>{e&&(globalThis.events[e]="")}},removeAll:{get:()=>{Object.entries(observer.list).forEach(e=>{globalThis.events[e[0]]})}}});Object.freeze(observer);Object.defineProperty(globalThis,"store",{value:new Proxy({},{}),enumerable:!1,configurable:!1});Object.defineProperties(store,{get:{value(e){if(e)try{let t=localStorage.getItem(e);return t&&JSON.parse(t)}catch(t){console.error(`Error parsing store item '${e}':`,t)}}},set:{value(e,t){if(e)try{t==null?localStorage.setItem(e,JSON.stringify(null)):typeof t=="object"||typeof t=="number"||typeof t=="boolean"||typeof t=="string"?localStorage.setItem(e,JSON.stringify(t)):typeof t=="function"&&console.error("It's not secure to store functions.")}catch(i){console.error(`Error setting store item '${e}':`,i)}}},remove:{value(e){if(e&&localStorage.getItem(e))return localStorage.removeItem(e),!0}},delete:{value(e){store.remove(e)}},removeAll:{value(){return localStorage.clear(),!0}},clearAll:{value(){return store.removeAll(),!0}},quota:{value(){"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then(({usage:e,quota:t})=>{e&&t&&console.debug(`Using ${e/1024} out of ${t/1024} Mb.`)}).catch(e=>{console.error("Error estimating quota:",e)})}},size:{value(){let e=0;for(let t in localStorage)if(localStorage.hasOwnProperty(t)){let i=localStorage.getItem(t);i&&(e+=i.length)}return e}}});Object.freeze(store);Object.defineProperty(globalThis,"session",{value:new Proxy({},{}),enumerable:!1,configurable:!1});Object.defineProperties(session,{get:{value(e){if(e)try{let t=sessionStorage.getItem(e);return t&&JSON.parse(t)}catch(t){console.error(`Error parsing session item '${e}':`,t)}}},set:{value(e,t){if(e)try{t==null?sessionStorage.setItem(e,JSON.stringify(null)):typeof t=="object"||typeof t=="number"||typeof t=="boolean"||typeof t=="string"?sessionStorage.setItem(e,JSON.stringify(t)):typeof t=="function"&&console.error("It's not secure to session functions.")}catch(i){console.error(`Error setting session item '${e}':`,i)}}},remove:{value(e){if(e&&sessionStorage.getItem(e))return sessionStorage.removeItem(e),!0}},delete:{value(e){session.remove(e)}},removeAll:{value(){return sessionStorage.clear(),!0}},clearAll:{value(){return session.removeAll(),!0}},quota:{value(){"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then(({usage:e,quota:t})=>{e&&t&&console.debug(`Using ${e/1024} out of ${t/1024} Mb.`)}).catch(e=>{console.error("Error estimating quota:",e)})}},size:{value(){let e=0;for(let t in sessionStorage)if(sessionStorage.hasOwnProperty(t)){let i=sessionStorage.getItem(t);i&&(e+=i.length)}return e}}});Object.freeze(session);Object.defineProperty(window,"cache",{value:new Proxy({},{}),enumerable:!1,configurable:!1});})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memorio",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -84,8 +84,8 @@
84
84
  "esbuild-plugin-clean": "^1.0.1",
85
85
  "esbuild-plugin-copy": "^2.1.1",
86
86
  "eslint": "9.34.0",
87
- "jest": "30.0.5",
88
- "jest-environment-jsdom": "30.0.5",
87
+ "jest": "30.1.2",
88
+ "jest-environment-jsdom": "30.1.2",
89
89
  "ts-jest": "29.4.1",
90
90
  "ts-loader": "^9.5.4",
91
91
  "ts-node": "10.9.2",
package/.editorconfig DELETED
@@ -1,31 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- tab_width = 2
6
- indent_size = 2
7
- indent_style = space
8
- end_of_line = CRLF
9
- insert_final_newline = true
10
- trim_trailing_whitespace = true
11
- max_line_length = off
12
-
13
- [*.md]
14
- trim_trailing_whitespace = false
15
-
16
- [*.js]
17
- block_comment_start = /*
18
- block_comment = *
19
- block_comment_end = */
20
-
21
- [*.yml]
22
- indent_size = 1
23
-
24
- [{*.json,Makefile}]
25
- max_line_length = off
26
-
27
- [test/{dotdot,resolver,module_dir,multirepo,node_path,pathfilter,precedence}/**/*]
28
- indent_style = off
29
- indent_size = off
30
- max_line_length = off
31
- insert_final_newline = off
package/.gitattributes DELETED
@@ -1 +0,0 @@
1
- * text=auto
@@ -1,10 +0,0 @@
1
- # Changelog
2
-
3
- New minor (feature) releases of this app/software are released every six months and
4
- patch (bugfix) releases are released every month. More information on the
5
- release cycle: see package.json
6
-
7
- ## Previous
8
-
9
- Please see the git history for the details of previous versions.
10
- You can see HISTORY.md for all information.
@@ -1,24 +0,0 @@
1
- # This CITATION.cff file was generated with cffinit.
2
- # Visit https://bit.ly/cffinit to generate yours today!
3
-
4
- cff-version: 1.2.0
5
- title: memorio
6
- message: memorio by Dario Passariello
7
- type: software
8
- authors:
9
- - given-names: "Dario "
10
- family-names: Passariello
11
- email: dariopassariello@gmail.com
12
- abstract: >-
13
- memorio.State and Store Management are now easy, accessible
14
- everywhere in your application.
15
- keywords:
16
- - memorio
17
- - development
18
- - toolset
19
- - state
20
- - store
21
- - observer
22
- - dario
23
- - passariello
24
- license: MIT
@@ -1 +0,0 @@
1
- * @passariello
@@ -1,108 +0,0 @@
1
- # Code of Conduct - memorio
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to make participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, sex characteristics, gender identity and expression,
9
- level of experience, education, socio-economic status, nationality, personal
10
- appearance, race, religion, or sexual identity and orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to a positive environment for our
15
- community include:
16
-
17
- * Demonstrating empathy and kindness toward other people
18
- * Being respectful of differing opinions, viewpoints, and experiences
19
- * Giving and gracefully accepting constructive feedback
20
- * Accepting responsibility and apologizing to those affected by our mistakes,
21
- and learning from the experience
22
- * Focusing on what is best not just for us as individuals, but for the
23
- overall community
24
-
25
- Examples of unacceptable behavior include:
26
-
27
- * The use of sexualized language or imagery, and sexual attention or advances
28
- * Trolling, insulting or derogatory comments, and personal or political attacks
29
- * Public or private harassment
30
- * Publishing others' private information, such as a physical or email
31
- address, without their explicit permission
32
- * Other conduct which could reasonably be considered inappropriate in a
33
- professional setting
34
-
35
- ## Our Responsibilities
36
-
37
- Project maintainers are responsible for clarifying and enforcing our standards of
38
- acceptable behavior and will take appropriate and fair corrective action in
39
- response to any behavior that they deem inappropriate,
40
- threatening, offensive, or harmful.
41
-
42
- Project maintainers have the right and responsibility to remove, edit, or reject
43
- comments, commits, code, wiki edits, issues, and other contributions that are
44
- not aligned to this Code of Conduct, and will
45
- communicate reasons for moderation decisions when appropriate.
46
-
47
- ## Scope
48
-
49
- This Code of Conduct applies within all community spaces, and also applies when
50
- an individual is officially representing the community in public spaces.
51
- Examples of representing our community include using an official e-mail address,
52
- posting via an official social media account, or acting as an appointed
53
- representative at an online or offline event.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported to the community leaders responsible for enforcement at <dariopassariello@gmail.com>.
59
- All complaints will be reviewed and investigated promptly and fairly.
60
-
61
- All community leaders are obligated to respect the privacy and security of the
62
- reporter of any incident.
63
-
64
- ## Enforcement Guidelines
65
-
66
- Community leaders will follow these Community Impact Guidelines in determining
67
- the consequences for any action they deem in violation of this Code of Conduct:
68
-
69
- ### 1. Correction
70
-
71
- **Community Impact**: Use of inappropriate language or other behavior deemed
72
- unprofessional or unwelcome in the community.
73
-
74
- **Consequence**: A private, written warning from community leaders, providing
75
- clarity around the nature of the violation and an explanation of why the
76
- behavior was inappropriate. A public apology may be requested.
77
-
78
- ### 2. Warning
79
-
80
- **Community Impact**: A violation through a single incident or series
81
- of actions.
82
-
83
- **Consequence**: A warning with consequences for continued behavior. No
84
- interaction with the people involved, including unsolicited interaction with
85
- those enforcing the Code of Conduct, for a specified period of time. This
86
- includes avoiding interactions in community spaces as well as external channels
87
- like social media. Violating these terms may lead to a temporary or
88
- permanent ban.
89
-
90
- ### 3. Temporary Ban
91
-
92
- **Community Impact**: A serious violation of community standards, including
93
- sustained inappropriate behavior.
94
-
95
- **Consequence**: A temporary ban from any sort of interaction or public
96
- communication with the community for a specified period of time. No public or
97
- private interaction with the people involved, including unsolicited interaction
98
- with those enforcing the Code of Conduct, is allowed during this period.
99
- Violating these terms may lead to a permanent ban.
100
-
101
- ### 4. Permanent Ban
102
-
103
- **Community Impact**: Demonstrating a pattern of violation of community
104
- standards, including sustained inappropriate behavior, harassment of an
105
- individual, or aggression toward or disparagement of classes of individuals.
106
-
107
- **Consequence**: A permanent ban from any sort of public interaction within
108
- the community.
@@ -1,108 +0,0 @@
1
- # Contributing
2
-
3
- First off, thanks for taking the time to contribute!
4
-
5
- All types of contributions are encouraged and valued. See the [Table of Contents](contributing.md#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions.
6
-
7
- > And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
8
- >
9
- > * Star the project
10
- > * Tweet about it
11
- > * Refer this project in your project's readme
12
- > * Mention the project at local meetups and tell your friends/colleagues
13
-
14
- ## Table of Contents
15
-
16
- * [Code of Conduct](contributing.md#code-of-conduct)
17
- * [I Have a Question](contributing.md#i-have-a-question)
18
- * [I Want To Contribute](contributing.md#i-want-to-contribute)
19
- * [Reporting Bugs](contributing.md#reporting-bugs)
20
- * [Suggesting Enhancements](contributing.md#suggesting-enhancements)
21
- * [Your First Code Contribution](contributing.md#your-first-code-contribution)
22
- * [Improving The Documentation](contributing.md#improving-the-documentation)
23
- * [Style guides](contributing.md#styleguides)
24
- * [Commit Messages](contributing.md#commit-messages)
25
- * [Join The Project Team](contributing.md#join-the-project-team)
26
-
27
- ## Code of Conduct
28
-
29
- This project and everyone participating in it is governed by the [memorio Code of Conduct](https://github.com/a51-dev/a51.memorio/blob/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [dariopassariello@gmail.com](mailto:dariopassariello@gmail.com).
30
-
31
- ## I Have a Question
32
-
33
- > If you want to ask a question, we assume that you have read the available [Documentation](https://a51.gitbook.io/memorio/).
34
-
35
- Before you ask a question, it is best to search for existing [Issues](https://github.com/a51-dev/a51.memorio/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
36
-
37
- If you then still feel the need to ask a question and need clarification, we recommend the following:
38
-
39
- * Open an [Issue](https://github.com/a51-dev/a51.memorio/issues/new).
40
- * Provide as much context as you can about what you're running into.
41
- * Provide project and platform versions (nodejs, npm, etc), depending on what seems relevant.
42
-
43
- We will then take care of the issue as soon as possible.
44
-
45
- ## I Want To Contribute
46
-
47
- > ### Legal Notice
48
- >
49
- > When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project license.
50
-
51
- ### Reporting Bugs
52
-
53
- #### Before Submitting a Bug Report
54
-
55
- A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
56
-
57
- * Make sure that you are using the latest version.
58
- * Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](https://a51.gitbook.io/memorio/). If you are looking for support, you might want to check [this section](contributing.md#i-have-a-question)).
59
- * To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/a51-dev/a51.memorio/issues?q=label%3Abug).
60
- * Also make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue.
61
- * Collect information about the bug:
62
- * Stack trace (Traceback)
63
- * OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
64
- * Version of the interpreter, compiler, SDK, runtime environment, package manager, depending on what seems relevant.
65
- * Possibly your input and the output
66
- * Can you reliably reproduce the issue? And can you also reproduce it with older versions?
67
-
68
- #### How Do I Submit a Good Bug Report?
69
-
70
- > You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to [dariopassariello@gmail.com](mailto:dariopassariello@gmail.com).
71
-
72
- We use GitHub issues to track bugs and errors. If you run into an issue with the project:
73
-
74
- * Open an [Issue](https://github.com/a51-dev/a51.memorio/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
75
- * Explain the behavior you would expect and the actual behavior.
76
- * Please provide as much context as possible and describe the _reproduction steps_ that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case.
77
- * Provide the information you collected in the previous section.
78
-
79
- Once it's filed:
80
-
81
- * The project team will label the issue accordingly.
82
- * A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps and mark the issue as `needs-repro`. Bugs with the `needs-repro` tag will not be addressed until they are reproduced.
83
- * If the team is able to reproduce the issue, it will be marked `needs-fix`, as well as possibly other tags (such as `critical`), and the issue will be left to be [implemented by someone](contributing.md#your-first-code-contribution).
84
-
85
- ### Suggesting Enhancements
86
-
87
- This section guides you through submitting an enhancement suggestion for memorio, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.
88
-
89
- #### Before Submitting an Enhancement
90
-
91
- * Make sure that you are using the latest version.
92
- * Read the [documentation](https://a51.gitbook.io/memorio/) carefully and find out if the functionality is already covered, maybe by an individual configuration.
93
- * Perform a [search](https://github.com/a51-dev/a51.memorio/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
94
- * Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.
95
-
96
- #### How Do I Submit a Good Enhancement Suggestion?
97
-
98
- Enhancement suggestions are tracked as [GitHub issues](https://github.com/a51-dev/a51.memorio/issues).
99
-
100
- * Use a **clear and descriptive title** for the issue to identify the suggestion.
101
- * Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
102
- * **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
103
- * You may want to **include screenshots or screen recordings** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [screentogif](https://www.screentogif.com/) to record GIFs on macOS and Windows, and the built-in [screen recorder in GNOME](https://help.gnome.org/users/gnome-help/stable/screen-shot-record.html.en) or [SimpleScreenRecorder](https://github.com/MaartenBaert/ssr) on Linux.
104
- * **Explain why this enhancement would be useful** to most boilerplate users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
105
-
106
- ## Join The Project Team
107
-
108
- Please send email to <dariopassariello@gmail.com>
@@ -1,9 +0,0 @@
1
- # Copyright
2
-
3
- Copyright (c) 2025, Dario Passariello. All rights reserved.
4
- Licensed under MIT License, see
5
- <https://dario.passariello.ca>
6
-
7
- This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
8
-
9
- This software is licensed under the MIT License.
@@ -1,16 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- github: passariello
4
- patreon: passariello
5
- open_collective: # Replace with a single Open Collective username
6
- ko_fi: passariello
7
- tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
- community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
- liberapay: passariello
10
- issuehunt: passariello
11
- otechie: # Replace with a single Otechie username
12
- custom:
13
- [
14
- "https://dario.passariello.ca",
15
- "https://www.indiegogo.com/individuals/28513718",
16
- ]
@@ -1 +0,0 @@
1
- None
@@ -1,21 +0,0 @@
1
- # MIT License
2
-
3
- Copyright (c) 2025 Dario Passariello
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.