New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rete

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rete - npm Package Compare versions

Comparing version 1.5.0 to 2.0.0-beta.1

_types/editor.d.ts

46

package.json
{
"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)))}`)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc