input-with-hints
Advanced tools
Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "input-with-hints", | ||
"version": "1.0.0", | ||
"description": "input with hints", | ||
"version": "2.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"dev": "babel --watch ./src/input-with-hints.js --out-file ./index.js" | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "Thisman", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"babel-core": "^6.9.0", | ||
"babel-preset-es2015": "^6.9.0" | ||
}, | ||
"dependencies": { | ||
"classnames": "^2.2.5", | ||
"react": "^15.1.0", | ||
"react-dom": "^15.1.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Thisman/input-with-hints.git" | ||
"url": "git+https://github.com/npm/deprecate-holder.git" | ||
}, | ||
"keywords": [ | ||
"react", | ||
"react-input", | ||
"input", | ||
"hints", | ||
"react-component", | ||
"drop-down" | ||
], | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/Thisman/input-with-hints/issues" | ||
"url": "https://github.com/npm/deprecate-holder/issues" | ||
}, | ||
"homepage": "https://github.com/Thisman/input-with-hints#readme" | ||
"homepage": "https://github.com/npm/deprecate-holder#readme" | ||
} |
@@ -1,68 +0,5 @@ | ||
# input-with-hints | ||
input with drop-down hints (supports hot key) | ||
# Deprecated Package | ||
# Usage | ||
``` | ||
npm install --save input-with-hints | ||
``` | ||
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name. | ||
```js | ||
import React from "react"; | ||
import {render} from "react-dom"; | ||
import InputWithHints from "input-with-hints"; | ||
import "input-with-hints/style.css"; | ||
const mockHints = [ | ||
{id: "0", value: "Пермь"}, | ||
{id: "1", value: "Москва"}, | ||
{id: "2", value: "Питер"}, | ||
{id: "3", value: "Киев"}, | ||
{id: "4", value: "Казань"}, | ||
{id: "5", value: "Минск"}, | ||
{id: "6", value: "Мурманск"}, | ||
{id: "7", value: "Владивосток"}, | ||
{id: "8", value: "Екатеринбург"}, | ||
{id: "9", value: "Севастополь"}, | ||
{id: "10", value: "Севастополь и очень длинное название другого города"}, | ||
] | ||
class App extends React.Component { | ||
constructor() { | ||
super(); | ||
this.state = {value: ''} | ||
this.handleChange = this.handleChange.bind(this); | ||
} | ||
render() { | ||
let hints = []; | ||
let valueToLowCase = this.state.value.toLowerCase(); | ||
if(this.state.value) { | ||
hints = mockHints.filter( hint => | ||
hint.value | ||
.toLowerCase() | ||
.includes(valueToLowCase) | ||
) | ||
} | ||
return( | ||
<div className='app'> | ||
<InputWithHints | ||
onChange={this.handleChange} | ||
value={this.state.value} | ||
hints={hints} | ||
/> | ||
</div> | ||
) | ||
} | ||
handleChange(value, target) { | ||
this.setState({value}); | ||
} | ||
} | ||
render( | ||
<App />, | ||
document.getElementById("app") | ||
) | ||
``` | ||
# Supports | ||
Test only in Google Chrome *v50.0.2661.102 m* | ||
Please contact support@npmjs.com if you have questions about this package. |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
0
678
2
0
6
3
- Removedclassnames@^2.2.5
- Removedreact@^15.1.0
- Removedreact-dom@^15.1.0
- Removedasap@2.0.6(transitive)
- Removedclassnames@2.5.1(transitive)
- Removedcore-js@1.2.7(transitive)
- Removedcreate-react-class@15.7.0(transitive)
- Removedencoding@0.1.13(transitive)
- Removedfbjs@0.8.18(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedpromise@7.3.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@15.7.0(transitive)
- Removedreact-dom@15.7.0(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedua-parser-js@0.7.40(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)