crawler-company
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -8,3 +8,3 @@ { | ||
"name": "crawler-company", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "crawler company", | ||
@@ -11,0 +11,0 @@ "main": "index.js", |
# crawler-company | ||
Crawler company is a web crawler | ||
### Warning: This Module Is Not Well Tested! | ||
### Usage | ||
@@ -9,4 +11,10 @@ | ||
``` | ||
import { Company, Office} from 'crawler-company'; | ||
class UrlOffice extends Office { | ||
constructor(name:string){ | ||
super(name) | ||
} | ||
} | ||
``` |
@@ -53,4 +53,4 @@ import { PriorityQueue} from './PriorityQueue'; | ||
} | ||
protected processor(doc:object,dispatch:{(doc:object):void;},drop:{():void;}):void { | ||
process.nextTick(dispatch.bind(this, doc)); | ||
protected processor(doc:object,dispatch:{(name:string,data:object):void;},drop:{(doc:any):void;}):void { | ||
drop({message:'no where to dispatch'}); | ||
} | ||
@@ -61,6 +61,6 @@ private dispatch(name:string,data:object={}):void { | ||
} | ||
protected dropHandler(doc:object):void { | ||
protected dropHandler(doc:any):void { | ||
console.log(this.getName(),'droped one doc',doc); | ||
} | ||
private drop(doc:object):void { | ||
private drop(doc:any):void { | ||
this.dropHandler(doc); | ||
@@ -67,0 +67,0 @@ this.concurrentDecrease(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31046
20