- Modify the version in package.json to X.X.XX
- git commit -m "chore: release vX.X.XX"
- git tag -a vX.X.XX HEAD -m "release vX.X.XX"
- git push (make sure you setup your push to also push the tags) if not use git push --tags
- Update all deps with
yarn upgrade --latest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.youtube.com/watch?v=PSoOFn3wQV4|The Bangles - Eternal Flame | |
https://www.youtube.com/watch?v=W6hknFigMSI|Bonnie Tyler - Total Eclipse of the Heart | |
https://www.youtube.com/watch?v=mUg5aEy-8CQ|Glenn Medeiros - Nothing's Gonna Change My Love For You | |
https://www.youtube.com/watch?v=3wxyN3z9PL4|Starship - Nothing's Gonna Stop Us Now | |
https://www.youtube.com/watch?v=K1b8AhIsSYQ|Starship - We Built This City | |
https://www.youtube.com/watch?v=ZvMsp7s78Do|Chesney Hawkes - The One and Only | |
https://www.youtube.com/watch?v=I_2D8Eo15wE|Ram Jam - Black Betty | |
https://youtu.be/djV11Xbc914|a-ha - Take On Me | |
https://www.youtube.com/watch?v=k2C5TjS2sh4|Roxette - It Must Have Been Love | |
https://www.youtube.com/watch?v=xSZBIs0gs0E|Natalie Imbruglia - Torn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs').promises; | |
const ALLOWED_MUTATIONS = [ | |
'manage_splash', | |
'create_public_api_credential', | |
'delete_public_api_credential' | |
]; | |
const loadSchema = async (file) => { | |
try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private getSuffixByFileName(fsPath: string): string | undefined { | |
const metadataFileExt = '-meta.xml'; | |
const fileName = path.basename(fsPath); | |
if (fileName.endsWith(metadataFileExt)) { | |
return fileName.substring(0, fileName.indexOf('-meta.xml')).split('.').slice(1, 2).pop(); | |
} | |
return undefined; | |
} | |
private getTypeDefinitionByFileName(fsPath: string): MetadataType | undefined { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private readUrl(url: string): Promise < string > { | |
return new Promise((resolve, reject) => { | |
https.get(url, (response) => { | |
response.setEncoding('utf8'); | |
let body = ''; | |
response.on('data', (data) => { | |
body += data; | |
}); | |
response.on('end', () => { | |
resolve(body); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Very basic EventEmitter class */ | |
class EventEmitter { | |
constructor() { | |
this.events = new Map(); | |
} | |
on(eventname, callback) { | |
if(this.events.has(eventname)) { | |
const events = this.events.get(eventname); | |
events.push(callback); | |
return this.events.set(eventname, events); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { isPlainObject } from '@salesforce/ts-types'; | |
/** | |
* Use mapKeys to convert object keys to another format using the specified conversion function. | |
* | |
* E.g., to deep convert all object keys to camelCase: mapKeys(myObj, _.camelCase, true) | |
* to shallow convert object keys to lower case: mapKeys(myObj, _.toLower) | |
* | |
* NOTE: This mutates the object passed in for conversion. | |
* |
- Insertar en la cabecera del sitio dentro del
<head>
el siguiente script:<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/esc-pos-encoder.js"></script>
- Luego crear una función que imprima el ticket con QR de la siguiente manera:
function ImprimeTicketConQR() {
const img = new Image();
const encoder = new EscPosEncoder();
return new Promise((resolve, reject) => {
img.src='./Factu Online_files/QR2300005.jpg';
img.onload = () => {
const result = encoder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const playlistId = new RegExp(/(?:http|https|)(?::\/\/|)(?:www.|)(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{12,})[a-z0-9;:@#?&%=+\/\$_.-]*/) | |
const videoId = new RegExp(/(?:http|https|)(?::\/\/|)(?:www.|)(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{11})[a-z0-9;:@#?&%=+\/\$_.-]*/) | |
const getYouTubeId = (youTubeUrl: string): string | undefined => { | |
const regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/ | |
var match = youTubeUrl.match(regExp) | |
if (match && match[2].length == 11) { | |
return match[2] | |
} | |
return undefined |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default async function scheduler<T, K>( | |
maxconnections: number, | |
items: K[], | |
functor: (item: K) => Promise<T> | |
): Promise<Array<T | undefined>> { | |
const workers: Array<T | undefined> = []; | |
for await (const result of runTasks<T>(maxconnections, tasks(items, functor))) { | |
workers.push(result); | |
} | |
return workers; |