Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use strict mode

  • Loading branch information...
commit 756afe4f35e0cb5ceb35b3ba6f5dc8b2a9cd00c7 1 parent 835ba7d
Mark Dalgleish authored
2  grunt.js
... ... @@ -1,3 +1,5 @@
  1 +'use strict';
  2 +
1 3 module.exports = function(grunt) {
2 4
3 5 // Project configuration.
2  lib/lanyrd-scraper.js
@@ -6,6 +6,8 @@
6 6 * Licensed under the MIT license.
7 7 */
8 8
  9 +'use strict';
  10 +
9 11 var request = require('request'),
10 12 urlResolver = require('./urlresolver'),
11 13 parsers = require('./parsers');
2  lib/page.js
... ... @@ -1,3 +1,5 @@
  1 +'use strict';
  2 +
1 3 var cheerio = require('cheerio');
2 4
3 5 function Page($) {
2  lib/parsers/event.js
... ... @@ -1,3 +1,5 @@
  1 +'use strict';
  2 +
1 3 var cheerio = require('cheerio'),
2 4 Page = require('../page');
3 5
2  lib/parsers/index.js
... ... @@ -1,3 +1,5 @@
  1 +'use strict';
  2 +
1 3 module.exports = {
2 4 'event': require('./event'),
3 5 'series': require('./series')
2  lib/parsers/series.js
... ... @@ -1,3 +1,5 @@
  1 +'use strict';
  2 +
1 3 var cheerio = require('cheerio'),
2 4 Page = require('../page');
3 5
2  lib/urlresolver.js
... ... @@ -1,3 +1,5 @@
  1 +'use strict';
  2 +
1 3 var standardPageTypes = {
2 4 'event': /^(19|20)[0-9]{2}\//,
3 5 'series': /^series\//
2  test/lanyrd-scraper_test.js
... ... @@ -1,3 +1,5 @@
  1 +'use strict';
  2 +
1 3 var lanyrd = require('../lib/lanyrd-scraper');
2 4
3 5 exports['public API'] = {
2  test/page_test.js
... ... @@ -1,3 +1,5 @@
  1 +'use strict';
  2 +
1 3 var Page = require('../lib/page'),
2 4 cheerio = require('cheerio'),
3 5 $ = cheerio.load();
2  test/parsers/event_test.js
... ... @@ -1,3 +1,5 @@
  1 +'use strict';
  2 +
1 3 var parse = require('../../lib/parsers/event'),
2 4 fs = require('fs'),
3 5 path = require('path');
2  test/parsers/index_test.js
... ... @@ -1,3 +1,5 @@
  1 +'use strict';
  2 +
1 3 var parsers = require('../../lib/parsers');
2 4
3 5 exports['public API'] = {
2  test/parsers/series_test.js
... ... @@ -1,3 +1,5 @@
  1 +'use strict';
  2 +
1 3 var parse = require('../../lib/parsers/series'),
2 4 fs = require('fs'),
3 5 path = require('path');
2  test/urlresolver_test.js
... ... @@ -1,3 +1,5 @@
  1 +'use strict';
  2 +
1 3 var resolver = require('../lib/urlresolver');
2 4
3 5 exports['resolveUrl'] = {

0 comments on commit 756afe4

Please sign in to comment.
Something went wrong with that request. Please try again.