neo-jquery
Advanced tools
Comparing version 1.0.7 to 1.0.8
# changelog | ||
## version 1.0.8 | ||
- add node modules (writefile) | ||
- add params module in node and esm; not avaliable in browser | ||
## version 1.0.7 | ||
- remove legacy module (if using IE using the versions 1.0.3 - 1.0.6) | ||
- new universal module search params (node and browser) | ||
@@ -6,0 +9,0 @@ ## version 1.0.6 |
class Accordion extends HTMLElement { | ||
title; | ||
constructor() { | ||
@@ -3,0 +4,0 @@ super(); |
class ModalImg extends HTMLElement { | ||
url; | ||
alt; | ||
constructor() { | ||
@@ -3,0 +5,0 @@ super(); |
@@ -8,3 +8,3 @@ // lunanny and swifties neo-jquery easter egg | ||
fonts.href = 'https://fonts.googleapis.com/css2?family=Pacifico&display=swap'; | ||
document.head.append(fonts); | ||
@@ -17,3 +17,3 @@ } | ||
const styles = document.createElement('style'); | ||
styles.textContent = ` | ||
@@ -46,6 +46,6 @@ :host { | ||
quote.classList.add('quote'); | ||
const cite = document.createElement('cite'); | ||
cite.classList.add('cite'); | ||
fetch('https://taylorswiftapi.herokuapp.com/get') | ||
@@ -56,10 +56,10 @@ .then(res => res.json()) | ||
quote.textContent = data.quote; | ||
quote.title = `song: ${data.song}`; | ||
quote.title = `song: ${data.song}`; | ||
cite.textContent = `album: ${data.album}`; | ||
shadowRoot.append(styles, quote, cite); | ||
}) | ||
.catch(err => { | ||
shadowRoot.textContent = err.message | ||
shadowRoot.textContent = err.message | ||
}); | ||
@@ -66,0 +66,0 @@ } |
{ | ||
"name": "neo-jquery", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "libreria de javascript para el uso de DOM y ajax", | ||
"browser": "./browser/index.js", | ||
"scripts": { | ||
"ts-electron": "tsc -p ./tsconfig-electron.json", | ||
"ts-esm": "tsc -p ./tsconfig-esm.json", | ||
"ts-browser": "tsc -p ./tsconfig-browser.json", | ||
"ts-wc": "tsc -p ./tsconfig-wc.json", | ||
"ts-node": "tsc -p ./tsconfig-node.json", | ||
"build": "npm run ts-electron && npm run ts-wc && npm run ts-esm && npm run ts-browser && npm run ts-node" | ||
}, | ||
"exports": { | ||
".": "./cjs/index.js", | ||
"./cjs": "./cjs/index.js", | ||
@@ -14,27 +21,27 @@ "./cjs/scraping": "./cjs/scraping.js", | ||
"./mjs/intl": "./mjs/intl.js", | ||
"./utils/params": "./utils/params.js" | ||
"./mjs/params": "./mjs/params.js", | ||
"./node": "./node/index.js", | ||
"./node/params": "./node/params.js", | ||
"./components/*": "./components/*.js" | ||
}, | ||
"scripts": { | ||
"ts-node": "tsc -p ./tsconfig-node.json", | ||
"ts-esm": "tsc -p ./tsconfig-esm.json", | ||
"ts-browser": "tsc -p ./tsconfig-browser.json", | ||
"ts-wc": "tsc -p ./tsconfig-wc.json", | ||
"ts-utils": "tsc -p ./tsconfig.utils.json", | ||
"build": "npm run ts-node && npm run ts-esm && npm run ts-browser && npm run ts-utils" | ||
"import": { | ||
"./cjs": "./cjs/index.js", | ||
"./cjs/scraping": "./cjs/scraping.js", | ||
"./cjs/intl": "./cjs/intl.js", | ||
"./mjs": "./mjs/index.js", | ||
"./mjs/scraping": "./mjs/scraping.js", | ||
"./mjs/intl": "./mjs/intl.js", | ||
"./mjs/params": "./mjs/params.js", | ||
"./node": "./node/index.js", | ||
"./node/params": "./node/params.js", | ||
"./components/*": "./components/*.js" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"/cjs/index.d.ts": [ | ||
"./cjs/index.d.ts" | ||
], | ||
"/mjs/index.d.ts": [ | ||
"./mjs/index.d.ts" | ||
], | ||
"/cjs/*": [ | ||
"./cjs/*.d.ts" | ||
], | ||
"/mjs/*": [ | ||
"./mjs/*.d.ts" | ||
], | ||
"/utils/*": ["./utils/*.d.ts"] | ||
"/cjs/index.d.ts": ["./cjs/index.d.ts"], | ||
"/mjs/index.d.ts": ["./mjs/index.d.ts"], | ||
"/node/index.d.ts": ["./mjs/index.d.ts"], | ||
"/cjs/*": ["./cjs/*.d.ts"], | ||
"/mjs/*": ["./mjs/*.d.ts"], | ||
"/node/*": ["./node/*.d.ts"] | ||
} | ||
@@ -62,4 +69,5 @@ }, | ||
"devDependencies": { | ||
"typescript": "^4.9.3" | ||
"@types/node": "^18.11.18", | ||
"typescript": "^4.9.4" | ||
} | ||
} |
36687
35
1077
2