Ghost/ghost/members-api/package.json
Kevin Ansfield 615a482c48 Store geolocation data during member signup/signin (#128)
requires f38d490886

- adds `lib/geolocation.js` with `getGeolocationFromIP()` function which uses https://geojs.io to lookup geolocation data from an IPv4 or IPv6 address
- updates `create/updateMember()` functions to work with a `geolocation` property in the passed in object
  - if `geolocation` is `undefined` when updating a member do not reset any existing property
- updates `sendMagicLink` middleware to extract the IP address from the request and stores it as part of the token payload
- updates `getMemberDataFromMagicLinkToken()` method to extract the IP address from the token payload and perform a geolocation lookup if we have an IP address and a matching member does not already have geolocation data
2020-02-27 10:29:36 +00:00

43 lines
978 B
JSON

{
"name": "@tryghost/members-api",
"version": "0.16.2",
"repository": "https://github.com/TryGhost/Members/tree/master/packages/members-api",
"author": "Ghost Foundation",
"license": "MIT",
"main": "index.js",
"scripts": {
"dev": "echo \"Implement me!\"",
"test": "NODE_ENV=testing mocha './test/**/*.test.js'",
"lint": "eslint '**/*.js'",
"posttest": "yarn lint"
},
"files": [
"index.js",
"lib",
"gateway"
],
"devDependencies": {
"jsdom": "15.1.1",
"mocha": "6.2.2",
"nock": "^12.0.0",
"should": "13.2.3",
"sinon": "7.5.0"
},
"dependencies": {
"@tryghost/magic-link": "^0.4.1",
"bluebird": "^3.5.4",
"body-parser": "^1.19.0",
"cookies": "^0.8.0",
"express": "^4.16.4",
"ghost-ignition": "^3.1.0",
"got": "^9.6.0",
"jsonwebtoken": "^8.5.1",
"lodash": "^4.17.11",
"node-jose": "^1.1.3",
"stripe": "^7.4.0"
},
"publishConfig": {
"access": "public"
}
}