- [
5981fb7faa
] - (SEMVER-MAJOR) assert: fix line number calculation after V8 upgrade (Michaël Zasso) #29694 - [
48d1ea5e7f
] - (SEMVER-MAJOR) assert: special handle identical error names in instance checks (Ruben Bridgewater) #28263 - [
97c52ca5dc
] - (SEMVER-MAJOR) assert: add more information to AssertionErrors (Ruben Bridgewater) #28263 - [
5700cd17dd
] - (SEMVER-MAJOR) assert: do not repeat .throws() code (Ruben Bridgewater) #28263 - [
d47b6786c9
] - (SEMVER-MAJOR) assert: wrap validation function errors (Ruben Bridgewater) [#28263]
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 http = require("http"); | |
const { parse } = require("basic-auth"); | |
const { PROXY_USERNAME, PROXY_PASSWORD } = process.env; | |
const PROXY_PORT = process.env.PROXY_PORT || 8000; | |
const check = (credentials) => { | |
return ( | |
credentials && | |
credentials.username === PROXY_USERNAME && | |
credentials.pass === PROXY_PASSWORD |
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 path = require('path'); | |
const fs = require('fs'); | |
const { promisify } = require('util'); | |
const glob = promisify(require('glob')); | |
const FROM = '.css'; | |
const TO = '.scss'; | |
const mv = async file => { | |
const out = `${path.join( | |
path.dirname(file), |
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
function createMachine(stateMachineDefinition) { | |
const machine = { | |
value: stateMachineDefinition.initialState, | |
transition(currentState, event) { | |
const currentStateDefinition = stateMachineDefinition[currentState]; | |
const destinationTransition = currentStateDefinition.transitions[event]; | |
if (!destinationTransition) { | |
return; | |
} | |
const destinationState = destinationTransition.target; |
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
copy(Object.values(document.getElementsByClassName("tngMainTrOn")).map(el => { | |
const text = el.innerText | |
const textArr = text.split("\n") | |
const en = textArr[0] | |
const ja = textArr[2].split(",").join("、") | |
return `${en}, ${ja}`; | |
}).join("\n")) |
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 start = performance.now(); | |
interface Member { | |
name: string; | |
birthday?: Date; | |
url?: string; | |
instrument?: string; | |
} | |
const john: Member = { | |
name: 'John Lennon', |
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 start = performance.now(); | |
interface Member { | |
name: string; | |
birthday: Date; | |
url: string; | |
instrument: string; | |
} | |
const john: Member = { | |
name: 'John Lennon', |
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 start = performance.now(); | |
interface Member { | |
name: string; | |
birthday: Date | null; | |
url: string | null; | |
instrument: string | null; | |
} | |
const john: Member = { | |
name: 'John Lennon', |
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 start = performance.now(); | |
interface Member { | |
name: string; | |
birthday: Date | null; | |
url: string | null; | |
instrument: string | null; | |
} | |
const john: Member = { | |
name: 'John Lennon', |
NewerOlder