Skip to content
Permalink
Browse files

♻️ Refactor and cleanup for v2.3.0

  • Loading branch information...
grikomsn committed Feb 12, 2019
1 parent 4a9b5eb commit eb309c36643841217e2383dd7a08267e7f216177
Showing with 70 additions and 354 deletions.
  1. +0 −1 README.md
  2. +1 −1 demo/package.json
  3. +0 −207 demo/yarn.lock
  4. +1 −1 examples/scrapeReviews.es6.js
  5. +1 −1 examples/scrapeReviews.js
  6. +1 −1 examples/searchByQuery.es6.js
  7. +1 −1 examples/searchByQuery.js
  8. +2 −2 package.json
  9. +2 −2 rollup.config.js
  10. +41 −79 src/index.ts
  11. +1 −1 tsconfig.json
  12. +19 −57 yarn.lock
@@ -176,5 +176,4 @@ MIT
[typescript]: https://github.com/Microsoft/TypeScript
[tslib]: https://github.com/Microsoft/tslib


[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fninetwenty-one%2Frotten-reviews.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fninetwenty-one%2Frotten-reviews?ref=badge_large)
@@ -5,7 +5,7 @@
"author": "Griko Nibras <griko@ninetwenty.one> (https://ninetwenty.one)",
"main": "index.js",
"dependencies": {
"rotten-reviews": "^2.2.0"
"rotten-reviews": "^2.3.*"
},
"license": "MIT",
"private": true

This file was deleted.

@@ -1,4 +1,4 @@
import { scrapeReviews } from '../dist/index.esm'
import { scrapeReviews } from '..'

scrapeReviews('m/venom_2018').then(results => {
console.log(JSON.stringify(results, null, 2))
@@ -1,4 +1,4 @@
const { scrapeReviews } = require('../dist/index.cjs')
const { scrapeReviews } = require('..')

scrapeReviews('m/venom_2018').then(results => {
console.log(JSON.stringify(results, null, 2))
@@ -1,4 +1,4 @@
import { searchByQuery } from '../dist/index.esm'
import { searchByQuery } from '..'

searchByQuery('venom').then(results => {
console.log(JSON.stringify(results, null, 2))
@@ -1,4 +1,4 @@
const { searchByQuery } = require('../dist/index.cjs')
const { searchByQuery } = require('..')

searchByQuery('venom').then(results => {
console.log(JSON.stringify(results, null, 2))
@@ -24,12 +24,12 @@
},
"dependencies": {
"cheerio": "^1.0.0-rc.2",
"isomorphic-fetch": "^2.2.1",
"node-fetch": "^2.3.0",
"strict-uri-encode": "^2.0.0"
},
"devDependencies": {
"@types/cheerio": "^0.22.10",
"@types/isomorphic-fetch": "^0.0.34",
"@types/node-fetch": "^2.1.6",
"@types/strict-uri-encode": "^2.0.0",
"rollup": "^1.1.2",
"rollup-plugin-typescript2": "^0.19.2",
@@ -4,8 +4,8 @@ import pkg from './package.json'

export default [
{
input: 'src/index.ts',
external: ['cheerio', 'isomorphic-fetch', 'strict-uri-encode'],
input: ['src/index.ts'],
external: ['cheerio', 'node-fetch', 'strict-uri-encode'],
output: [
{
file: pkg.main,

0 comments on commit eb309c3

Please sign in to comment.
You can’t perform that action at this time.