Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4ceb68b

Browse files
committed
Update dependencies, nix gulp-rimraf, recompile JS
1 parentb56d35f commit4ceb68b

File tree

4 files changed

+38
-22
lines changed

4 files changed

+38
-22
lines changed

‎gulpfile.coffee‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
browserify=require('browserify')
22
coffeeify=require('coffeeify')
3+
del=require('del')
34
gulp=require('gulp')
45
gutil=require('gulp-util')
56
karma=require('karma').server
67
mocha=require('gulp-mocha')
78
rename=require('gulp-rename')
8-
rimraf=require('gulp-rimraf')
99
source=require('vinyl-source-stream')
1010
uglify=require('gulp-uglify')
1111

12-
gulp.task'clean',->
13-
gulp.src('./priority-queue*.js',read:false)
14-
.pipe(rimraf())
12+
gulp.task'clean', (done)->
13+
del('./priority-queue*.js', done)
1514

1615
gulp.task'browserify', ['clean' ],->
1716
b=browserify('./src/PriorityQueue.coffee', {

‎package.json‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@
2222
"license":"Public Domain",
2323
"readmeFilename":"README.md",
2424
"devDependencies": {
25-
"browserify":"~5.10.0",
26-
"chai":"~1.9.1",
25+
"browserify":"^11.0.0",
26+
"chai":"^3.1.0",
2727
"coffeeify":"~0.7.0",
28-
"gulp":"~3.8.7",
29-
"gulp-coffee":"~2.1.1",
28+
"del":"^1.2.0",
29+
"gulp":"^3.9.0",
30+
"gulp-coffee":"^2.3.1",
3031
"gulp-mocha":"~1.0.0",
31-
"gulp-rename":"~1.2.0",
32-
"gulp-rimraf":"~0.1.0",
33-
"gulp-uglify":"~0.3.1",
34-
"gulp-util":"~3.0.0",
35-
"karma":"~0.12.21",
32+
"gulp-rename":"^1.2.2",
33+
"gulp-uglify":"^1.2.0",
34+
"gulp-util":"^3.0.6",
35+
"karma":"^0.13.2",
3636
"karma-browserifast":"~0.7.0",
3737
"karma-chai":"~0.1.0",
38-
"karma-mocha":"~0.1.7",
38+
"karma-mocha":"^0.2.0",
3939
"karma-phantomjs-launcher":"~0.1.4",
40-
"mocha":"~1.21.4",
40+
"mocha":"^2.2.5",
4141
"vinyl-source-stream":"~0.1.1"
4242
}
4343
}

‎priority-queue.js‎

100755100644
Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{varf;"undefined"!=typeofwindow?f=window:"undefined"!=typeofglobal?f=global:"undefined"!=typeofself&&(f=self),f.PriorityQueue=e()}}(function(){vardefine,module,exports;return(functione(t,n,r){functions(o,u){if(!n[o]){if(!t[o]){vara=typeofrequire=="function"&&require;if(!u&&a)returna(o,!0);if(i)returni(o,!0);varf=newError("Cannot find module '"+o+"'");throwf.code="MODULE_NOT_FOUND",f}varl=n[o]={exports:{}};t[o][0].call(l.exports,function(e){varn=t[o][1][e];returns(n?n:e)},l,l.exports,e,t,n,r)}returnn[o].exports}vari=typeofrequire=="function"&&require;for(varo=0;o<r.length;o++)s(r[o]);returns})({1:[function(require,module,exports){
1+
(function(f){if(typeofexports==="object"&&typeofmodule!=="undefined"){module.exports=f()}elseif(typeofdefine==="function"&&define.amd){define([],f)}else{varg;if(typeofwindow!=="undefined"){g=window}elseif(typeofglobal!=="undefined"){g=global}elseif(typeofself!=="undefined"){g=self}else{g=this}g.PriorityQueue=f()}})(function(){vardefine,module,exports;return(functione(t,n,r){functions(o,u){if(!n[o]){if(!t[o]){vara=typeofrequire=="function"&&require;if(!u&&a)returna(o,!0);if(i)returni(o,!0);varf=newError("Cannot find module '"+o+"'");throwf.code="MODULE_NOT_FOUND",f}varl=n[o]={exports:{}};t[o][0].call(l.exports,function(e){varn=t[o][1][e];returns(n?n:e)},l,l.exports,e,t,n,r)}returnn[o].exports}vari=typeofrequire=="function"&&require;for(varo=0;o<r.length;o++)s(r[o]);returns})({1:[function(require,module,exports){
22
varAbstractPriorityQueue,ArrayStrategy,BHeapStrategy,BinaryHeapStrategy,PriorityQueue,
33
__hasProp={}.hasOwnProperty,
44
__extends=function(child,parent){for(varkeyinparent){if(__hasProp.call(parent,key))child[key]=parent[key];}functionctor(){this.constructor=child;}ctor.prototype=parent.prototype;child.prototype=newctor();child.__super__=parent.prototype;returnchild;};
@@ -36,7 +36,6 @@ PriorityQueue.BHeapStrategy = BHeapStrategy;
3636
module.exports=PriorityQueue;
3737

3838

39-
4039
},{"./PriorityQueue/AbstractPriorityQueue":2,"./PriorityQueue/ArrayStrategy":3,"./PriorityQueue/BHeapStrategy":4,"./PriorityQueue/BinaryHeapStrategy":5}],2:[function(require,module,exports){
4140
varAbstractPriorityQueue;
4241

@@ -73,12 +72,16 @@ module.exports = AbstractPriorityQueue = (function() {
7372
returnthis.priv.peek();
7473
};
7574

75+
AbstractPriorityQueue.prototype.clear=function(){
76+
this.length=0;
77+
returnthis.priv.clear();
78+
};
79+
7680
returnAbstractPriorityQueue;
7781

7882
})();
7983

8084

81-
8285
},{}],3:[function(require,module,exports){
8386
varArrayStrategy,binarySearchForIndexReversed;
8487

@@ -121,12 +124,16 @@ module.exports = ArrayStrategy = (function() {
121124
returnthis.data[this.data.length-1];
122125
};
123126

127+
ArrayStrategy.prototype.clear=function(){
128+
this.data.length=0;
129+
returnvoid0;
130+
};
131+
124132
returnArrayStrategy;
125133

126134
})();
127135

128136

129-
130137
},{}],4:[function(require,module,exports){
131138
varBHeapStrategy;
132139

@@ -184,6 +191,12 @@ module.exports = BHeapStrategy = (function() {
184191
returnthis._read(1);
185192
};
186193

194+
BHeapStrategy.prototype.clear=function(){
195+
this.length=0;
196+
this._memory.length=0;
197+
returnvoid0;
198+
};
199+
187200
BHeapStrategy.prototype._write=function(index,value){
188201
varpage;
189202
page=index>>this._shift;
@@ -272,7 +285,6 @@ module.exports = BHeapStrategy = (function() {
272285
})();
273286

274287

275-
276288
},{}],5:[function(require,module,exports){
277289
varBinaryHeapStrategy;
278290

@@ -318,6 +330,12 @@ module.exports = BinaryHeapStrategy = (function() {
318330
returnthis.data[0];
319331
};
320332

333+
BinaryHeapStrategy.prototype.clear=function(){
334+
this.length=0;
335+
this.data.length=0;
336+
returnvoid0;
337+
};
338+
321339
BinaryHeapStrategy.prototype._bubbleUp=function(pos){
322340
varparent,x;
323341
while(pos>0){
@@ -364,6 +382,5 @@ module.exports = BinaryHeapStrategy = (function() {
364382
})();
365383

366384

367-
368385
},{}]},{},[1])(1)
369386
});

‎priority-queue.min.js‎

100755100644
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp