carbonium 1.2.2 → 1.2.3

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.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Carbonium](https://raw.githubusercontent.com/edwinm/carbonium/master/assets/carbonium.svg)](#readme)
4
4
 
5
- > One kilobyte library for easy manipulation of the DOM
5
+ > One kilobyte library for easy DOM manipulation
6
6
 
7
7
  With carbonium, you can call `$(selector)` and the result can be accessed as both an DOM element and an array of matched elements.
8
8
  DOM element operations are applied to all matched elements.
@@ -1,6 +1,6 @@
1
1
  var carbonium=function(e){"use strict";
2
2
  /**
3
- Carbonium 1.2.2
3
+ Carbonium 1.2.3
4
4
  @copyright 2020 Edwin Martin
5
5
  @license MIT
6
6
  */let t,n;const o={get(e,r){let l=null;if(r==Symbol.iterator)return function*(){for(let t=0;t<e.length;t++)yield e[t]};if("style"==r||"classList"==r||"relList"==r){t=e,n=r;const l=Reflect.get(document.body,r);return new Proxy(l,o)}if(e instanceof CSSStyleDeclaration||e instanceof DOMTokenList)return l=Reflect.get(document.body[n],r),"function"==typeof l?new Proxy(l,{apply:function(e,r,l){return t.forEach((t=>{Reflect.apply(e,t[n],l)})),new Proxy(t,o)}}):l;if(Array.prototype.hasOwnProperty(r)){const e=Reflect.get(Array.prototype,r);if("function"==typeof e)return new Proxy(e,{apply:function(e,t,n){const r=Reflect.apply(e,t,n);return new Proxy(void 0!==r?r:t,o)}})}return e.length>0?r in e[0]&&(l=Reflect.get(e[0],r)):r in document.body&&(l=Reflect.get(document.body,r)),l?"function"==typeof l?new Proxy(l,{apply:function(e,t,n){let o=null,r=!0;for(const l of t){const t=Reflect.apply(e,l,n);r&&(o=t,r=!1)}return null!=o&&null!=o?o:t}}):l:Reflect.get(e,r)},set:(e,t,n)=>(!("forEach"in e)||e instanceof CSSStyleDeclaration?Reflect.set(e,t,n):e.forEach((e=>{Reflect.set(e,t,n)})),!0),deleteProperty:(e,t)=>t in e&&delete e[t]};return e.$=function(e,t){let n;return n="<"==e[0]?[(new DOMParser).parseFromString(e,"text/html").body.firstChild]:(t||document).querySelectorAll(e),new Proxy(n,o)},e}({});
@@ -1,5 +1,5 @@
1
1
  /**
2
- Carbonium 1.2.2
2
+ Carbonium 1.2.3
3
3
  @copyright 2020 Edwin Martin
4
4
  @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- Carbonium 1.2.2
2
+ Carbonium 1.2.3
3
3
  @copyright 2020 Edwin Martin
4
4
  @license MIT
5
5
  */
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "carbonium",
3
- "version": "1.2.2",
4
- "description": "Carbonium, for easy manipulation of the DOM",
3
+ "version": "1.2.3",
4
+ "description": "One kilobyte library for easy DOM manipulation",
5
5
  "type": "module",
6
- "main": "dist/bundle.iife.min.js",
6
+ "browser": "dist/bundle.iife.min.js",
7
7
  "module": "dist/bundle.min.js",
8
8
  "types": "dist/carbonium.d.ts",
9
9
  "sideEffects": false,
@@ -15,7 +15,7 @@
15
15
  "release": "npm i --package-lock && npm run lint && npm test && npm run build && npm publish",
16
16
  "test": "karma start karma.conf.cjs",
17
17
  "lint": "npx eslint . --ext .js,.ts",
18
- "prettier": "prettier --config .prettierrc.json src/**/*.{js,ts} --write"
18
+ "prettier": "prettier --config .prettierrc.json src/**/*.ts *.json --write"
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",