Skip to content

Commit

Permalink
Use @justfixnyc/geosearch-requester. (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
toolness authored and sraby committed Oct 29, 2019
1 parent 165e68f commit 98b8dae
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 206 deletions.
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ module.exports = {
"<rootDir>/src"
],
"transform": {
"^.+\\.tsx?$": "<rootDir>/jest.custom-transformer.js"
"^.+\\.[jt]sx?$": "<rootDir>/jest.custom-transformer.js"
},
"transformIgnorePatterns": [
"/node_modules/(?!@justfixnyc).+\\.js$"
],
moduleNameMapper: {
".+\\.(css|styl|less|sass|scss)$": `identity-obj-proxy`,
".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": `<rootDir>/__mocks__/file-mock.js`,
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dependencies": {
"@babel/core": "^7.6.4",
"@contentful/rich-text-react-renderer": "^13.4.0",
"@justfixnyc/geosearch-requester": "^0.0.6",
"@types/classnames": "^2.2.9",
"@types/react-helmet": "^5.0.7",
"bulma": "^0.7.5",
Expand Down Expand Up @@ -41,7 +42,8 @@
"read-more-react": "^1.0.9",
"tslint": "^5.11.0",
"typescript": "^3.1.1",
"webpack": "^4.0.0"
"webpack": "^4.0.0",
"whatwg-fetch": "2.0.4"
},
"keywords": [
"gatsby"
Expand Down
4 changes: 3 additions & 1 deletion src/components/geo-autocomplete.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import 'whatwg-fetch'; // Needed for IE11!

import React from 'react';
import { GeoSearchBoroughGid, GeoSearchRequester, GeoSearchResults } from "../util/geo-autocomplete-base";
import { GeoSearchBoroughGid, GeoSearchRequester, GeoSearchResults } from "@justfixnyc/geosearch-requester";
import Downshift, { DownshiftInterface, ControllerStateAndHelpers } from 'downshift';
import classnames from 'classnames';
import { BoroughChoice, getBoroughChoiceLabels } from '../util/borough-choices';
Expand Down
203 changes: 0 additions & 203 deletions src/util/geo-autocomplete-base.ts

This file was deleted.

5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1606,6 +1606,11 @@
dependencies:
core-js "^2.5.7"

"@justfixnyc/geosearch-requester@^0.0.6":
version "0.0.6"
resolved "https://registry.yarnpkg.com/@justfixnyc/geosearch-requester/-/geosearch-requester-0.0.6.tgz#af3144a8b599e45ad3ce5c2190fc60da81106475"
integrity sha512-wHsY9DbiQUp7H/KiQ4+ejTShR6lY3iagiFhw4VoP1kljyem+WIwEkiZNnvUHkOAQIkTtPulLaiKHEMpzaw9xZQ==

"@mikaelkristiansson/domready@^1.0.9":
version "1.0.9"
resolved "https://registry.yarnpkg.com/@mikaelkristiansson/domready/-/domready-1.0.9.tgz#b2b85d8ac7bb2797e577050b61aeaf1b26fbd906"
Expand Down

0 comments on commit 98b8dae

Please sign in to comment.