Skip to content

Commit

Permalink
Merge pull request #515 from Esri/refactor/common-as-dep
Browse files Browse the repository at this point in the history
refactor: remove common-types entirely (and move typings into whatever package makes the most sense)
  • Loading branch information
john gravois authored Apr 16, 2019
2 parents 3f2d786 + 021feb4 commit 18b3967
Show file tree
Hide file tree
Showing 104 changed files with 388 additions and 679 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ Some useful commands include:

* [`@esri/arcgis-rest-request`](./packages/arcgis-rest-request/) - Underpins other packages and supports making low-level requests.
* [`@esri/arcgis-rest-auth`](./packages/arcgis-rest-auth) - Provides methods for authenticating named users and applications.
* [`@esri/arcgis-rest-common`](./packages/arcgis-rest-common-types) - - Stores shared methods and types used throughout the ArcGIS API.
* [`@esri/arcgis-rest-portal`](./packages/arcgis-rest-portal) - Methods for working with ArcGIS Online/Enterprise content and users.
* [`@esri/arcgis-rest-feature-service`](./packages/arcgis-rest-feature-service) - Functions for querying and editing features inside of hosted feature services.
* [`@esri/arcgis-rest-feature-service-admin`](./packages/arcgis-rest-feature-service-admin) - Functions for administering hosted feature services.
Expand Down
13 changes: 13 additions & 0 deletions demos/batch-geocoder-node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 0 additions & 29 deletions demos/node-cli-item-management/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions packages/arcgis-rest-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
"tslib": "^1.9.3"
},
"devDependencies": {
"@esri/arcgis-rest-common": "^1.19.2",
"@esri/arcgis-rest-request": "^1.19.2"
},
"peerDependencies": {
"@esri/arcgis-rest-common": "^1.19.2",
"@esri/arcgis-rest-request": "^1.19.2"
},
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions packages/arcgis-rest-auth/src/UserSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ import {
ArcGISAuthError,
IAuthenticationManager,
ITokenRequestOptions,
cleanUrl
cleanUrl,
IUser
} from "@esri/arcgis-rest-request";

import { generateToken } from "./generate-token";
import { fetchToken, IFetchTokenResponse } from "./fetch-token";
import { IUser } from "@esri/arcgis-rest-common";

/**
* Internal utility for resolving a Promise from outside its constructor.
Expand Down
1 change: 0 additions & 1 deletion packages/arcgis-rest-auth/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ export * from "./UserSession";
export * from "./fetch-token";
export * from "./generate-token";
export * from "./authenticated-request-options";
export * from "./get-user-url";
2 changes: 1 addition & 1 deletion packages/arcgis-rest-auth/test/UserSession.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ArcGISRequestError,
ArcGISAuthError,
ErrorTypes
} from "@esri/arcgis-rest-request";
} from "@esri/arcgis-rest-request/src";
import * as fetchMock from "fetch-mock";
import { YESTERDAY, TOMORROW } from "./utils";

Expand Down
61 changes: 0 additions & 61 deletions packages/arcgis-rest-common/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions packages/arcgis-rest-common/package-lock.json

This file was deleted.

56 changes: 0 additions & 56 deletions packages/arcgis-rest-common/package.json

This file was deleted.

15 changes: 0 additions & 15 deletions packages/arcgis-rest-common/src/index.ts

This file was deleted.

91 changes: 0 additions & 91 deletions packages/arcgis-rest-common/src/types/miscellaneous.ts

This file was deleted.

22 changes: 0 additions & 22 deletions packages/arcgis-rest-common/src/util/location.ts

This file was deleted.

Loading

0 comments on commit 18b3967

Please sign in to comment.