sajari-website
Advanced tools
Comparing version 0.7.10 to 0.8.0
@@ -19,3 +19,3 @@ var gulp = require('gulp'); | ||
gulp.task('beautify', function() { | ||
gulp.src('./src/js/*.js') | ||
return gulp.src('./src/js/*.js') | ||
.pipe(prettify({config: '.jsbeautifyrc', mode: 'VERIFY_AND_WRITE'})) | ||
@@ -26,3 +26,3 @@ .pipe(gulp.dest('./src/js/')); | ||
gulp.task('lint', function() { | ||
gulp.src('./src/js/*.js') | ||
return gulp.src('./src/js/*.js') | ||
.pipe(jshint()) | ||
@@ -48,3 +48,3 @@ .pipe(jshint.reporter('jshint-stylish')) | ||
gulp.task('website', ['compile-templates', 'test', 'lint'], function() { | ||
gulp.task('website', gulp.series('compile-templates', 'test', 'lint'), function() { | ||
return browserify('./src/js/website.js') | ||
@@ -66,3 +66,3 @@ .bundle().on('error', function(e){ | ||
gulp.task('compress-website', ['compile-templates', 'test'], function() { | ||
gulp.task('compress-website', gulp.series('compile-templates', 'test'), function() { | ||
return browserify('./src/js/website.js') | ||
@@ -77,5 +77,5 @@ .bundle() | ||
gulp.task('default', ['compile-templates', 'website', 'compress-website']); | ||
gulp.task('default', gulp.series('compile-templates', 'website', 'compress-website')); | ||
gulp.task("watch", ['beautify'], function() { | ||
gulp.task("watch", gulp.series('beautify'), function() { | ||
watch(['src/js/*', 'tests/*'], function() { | ||
@@ -82,0 +82,0 @@ gulp.start("default"); |
{ | ||
"name": "sajari-website", | ||
"version": "0.7.10", | ||
"version": "0.8.0", | ||
"description": "Website extensions for the Sajari API. Automatically index site content, add user profiles, render search and recommendations, etc.", | ||
@@ -37,11 +37,12 @@ "author": { | ||
"browserify": "^13.0.0", | ||
"gulp": "^3.9.0", | ||
"gulp": "^4.0.0", | ||
"gulp-cli": "^2.0.1", | ||
"gulp-concat": "^2.3.4", | ||
"gulp-jsbeautifier": "^1.0.1", | ||
"gulp-jshint": "^2.0.0", | ||
"gulp-jslint": "^0.2.2", | ||
"gulp-jsbeautifier": "^2.1.2", | ||
"gulp-jshint": "^2.1.0", | ||
"gulp-jslint": "^1.0.10", | ||
"gulp-tape": "0.0.7", | ||
"gulp-uglify": "^0.3.1", | ||
"gulp-watch": "^4.3.5", | ||
"jshint": "^2.8.0", | ||
"gulp-uglify": "^3.0.1", | ||
"gulp-watch": "^5.0.1", | ||
"jshint": "^2.9.6", | ||
"jshint-stylish": "^2.1.0", | ||
@@ -54,11 +55,11 @@ "tap-colorize": "^1.2.0", | ||
"dependencies": { | ||
"debug": "^2.2.0", | ||
"debug": "^2.6.9", | ||
"dot": "1.0.1", | ||
"js-base64": "^2.1.9", | ||
"js-cookie": "^2.1.0", | ||
"sajari": "0.9.5", | ||
"superagent": "^1.6.1", | ||
"js-base64": "^2.1.9", | ||
"readability-hash": "^1.0.0" | ||
"readability-hash": "1.1.0", | ||
"sajari": "^0.20.0", | ||
"superagent": "^3.8.3" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -752,6 +752,8 @@ require("./utils/polyfills"); | ||
// Grab page meta and add it to the page object | ||
page.meta = hash.Meta(document); | ||
dom.dynamicMeta(document, page.meta); | ||
// Add the readability MD5 hash for the page to the data sent with indexing ping | ||
page.md5 = hash.Hash(document); | ||
page.bodyMD5 = hash.Hash(document); | ||
page.metaMD5 = hash.ObjHash(page.meta); | ||
@@ -758,0 +760,0 @@ // Send page for indexing |
Sorry, the diff of this file is too big to display
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
663666
19379
16
+ Addedasynckit@0.4.0(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedcookiejar@2.1.4(transitive)
+ Addeddebug@3.2.7(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedform-data@2.5.2(transitive)
+ Addedformidable@1.2.6(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedmime@1.6.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpromise-polyfill@6.0.2(transitive)
+ Addedqs@6.13.1(transitive)
+ Addedreadability-hash@1.1.0(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsajari@0.20.0(transitive)
+ Addedsajari-website@0.7.10(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedsuperagent@3.8.3(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwhatwg-fetch@2.0.3(transitive)
- Removedreadability-hash@1.1.4(transitive)
Updateddebug@^2.6.9
Updatedreadability-hash@1.1.0
Updatedsajari@^0.20.0
Updatedsuperagent@^3.8.3