Comparing version 1.5.0 to 2.0.0-beta.1
{ | ||
"name": "rete", | ||
"version": "1.5.0", | ||
"version": "2.0.0-beta.1", | ||
"description": "JavaScript framework", | ||
"main": "build/rete.common.js", | ||
"module": "build/rete.esm.js", | ||
"types": "types/index.d.ts", | ||
"scripts": { | ||
"build": "rete --build rete.config.js", | ||
"build:dev": "rete --build rete.config.js --watch", | ||
"prepublishOnly": "npm run lint && npm run build", | ||
"prebuild": "npm run lint && npm test && npm run types", | ||
"postinstall": "node postinstall.js", | ||
"lint": "tsc && eslint --ext .ts --ext .js src", | ||
"test": "BABEL_ENV=test mocha -r ts-node/register test/**.ts", | ||
"coverage": "nyc npm run test", | ||
"types": "tsc src/index.ts --target es5 --declaration --skipLibCheck --outDir ./types --downlevelIteration --emitDeclarationOnly" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/retejs/rete.git" | ||
"url": "https://github.com/retejs/rete.git" | ||
}, | ||
@@ -35,19 +21,11 @@ "keywords": [ | ||
"homepage": "https://github.com/retejs/rete#readme", | ||
"devDependencies": { | ||
"@babel/preset-typescript": "7.18.6", | ||
"@types/jsdom": "12.2.2", | ||
"@types/mocha": "5.2.6", | ||
"@typescript-eslint/eslint-plugin": "5.38.1", | ||
"@typescript-eslint/parser": "5.38.1", | ||
"babel-eslint": "10.1.0", | ||
"eslint": "8.24.0", | ||
"jsdom": "13.2.0", | ||
"jsdom-global": "3.0.2", | ||
"mocha": "5.2.0", | ||
"nyc": "14.1.1", | ||
"rete-cli": "0.6.1", | ||
"terminal-kit": "2.4.0", | ||
"ts-node": "8.0.2", | ||
"typescript": "4.8.4" | ||
} | ||
} | ||
"scripts": { | ||
"postinstall": "node postinstall.js" | ||
}, | ||
"module": "rete.esm.js", | ||
"main": "rete.common.js", | ||
"jsdelivr": "rete.min.js", | ||
"unpkg": "rete.min.js", | ||
"types": "_types/index.d.ts", | ||
"typings": "_types/index.d.ts" | ||
} |
function getRectangle(width, height, color) { | ||
const line = new Array(width).fill(' ').join('') | ||
const line = new Array(width).fill(' ').join('') | ||
return new Array(height).fill(color(line)).join('\n') | ||
return new Array(height).fill(color(line)).join('\n') | ||
} | ||
function drawText(x, y, text) { | ||
const save = '\033[s' | ||
const restore = '\033[u' | ||
const up = n => '\033['+n+'A' | ||
const right = n => '\033['+n+'C' | ||
const save = '\033[s' | ||
const restore = '\033[u' | ||
const up = n => '\033['+n+'A' | ||
const right = n => '\033['+n+'C' | ||
return `${save}${up(y)}${right(x)}${text}${restore}` | ||
return `${save}${up(y)}${right(x)}${text}${restore}` | ||
} | ||
function black(text) { | ||
return '\x1b[30m' + text + '\x1b[0m' | ||
return '\x1b[30m' + text + '\x1b[0m' | ||
} | ||
function white(text) { | ||
return '\x1b[37m' + text + '\x1b[0m' | ||
return '\x1b[37m' + text + '\x1b[0m' | ||
} | ||
function bgBlue(text) { | ||
return '\x1b[44m' + text + '\x1b[0m' | ||
return '\x1b[44m' + text + '\x1b[0m' | ||
} | ||
function bgYellow(text) { | ||
return '\x1b[43m' + text + '\x1b[0m' | ||
return '\x1b[43m' + text + '\x1b[0m' | ||
} | ||
@@ -38,2 +38,3 @@ | ||
// eslint-disable-next-line max-len, no-console | ||
console.log(`${top}\n${drawText(16, 3, white(bgBlue(topText)))}${bottom}\n${drawText(2, 3, black(bgYellow(bottomText)))}`) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
237135
23
2894
1
1