Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #271 from joshuef/SafeAppNPMDep
Browse files Browse the repository at this point in the history
chore/safe-app: Depend on NPM package for email/hosting/playground MAID-2332
  • Loading branch information
bochaco authored Sep 13, 2017
2 parents a985115 + aaef1ef commit 2a9a15a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion email_app/app/safenet_comm.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { shell } from 'electron';
import { CONSTANTS, MESSAGES, SAFE_APP_ERROR_CODES } from './constants';
import { initializeApp, fromAuthURI } from 'safe-app';
import { initializeApp, fromAuthURI } from '@maidsafe/safe-node-app';
import { getAuthData, saveAuthData, clearAuthData, genRandomEntryKey,
splitPublicIdAndService, deserialiseArray, parseUrl } from './utils/app_utils';
import pkg from '../package.json';
Expand Down
2 changes: 1 addition & 1 deletion email_app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"webpack-merge": "^0.14.1"
},
"dependencies": {
"@maidsafe/safe-node-app": "0.2.1",
"axios": "^0.14.0",
"babel-plugin-transform-class-properties": "^6.23.0",
"buffer-stream-reader": "^0.1.1",
Expand All @@ -123,7 +124,6 @@
"redux-axios-middleware": "^2.0.0",
"redux-promise-middleware": "^4.2.0",
"redux-thunk": "^2.1.0",
"safe-app": "https://s3.eu-west-2.amazonaws.com/safe-app-nodejs/safe-app-0.2.1.tgz",
"source-map-support": "^0.4.2",
"urlsafe-base64": "^1.0.0"
},
Expand Down
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "safe_examples",
"version": "0.1.0",
"description": "SAFE Network example applications",
"main": "index.js",
"repository": "[email protected]:maidsafe/safe_examples.git",
"scripts" : {
"update-email-safe-deps": "cd email_app && npm install @maidsafe/safe-node-app@latest --save",
"update-webhosting-safe-deps": "cd web_hosting_manager/app && npm install @maidsafe/safe-node-app@latest --save",
"update-safe-deps": "yarn update-webhosting-safe-deps && yarn update-email-safe-deps"
}
}
2 changes: 1 addition & 1 deletion safe_web_api_playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"homepage": "https://github.com/hunterlester/safe_dom_api_playground#readme",
"devDependencies": {
"safe-app": "https://github.com/maidsafe/safe_app_nodejs.git"
"@maidsafe/safe-node-app": "0.2.1"
},
"dependencies": {
"babelify": "^7.3.0",
Expand Down
2 changes: 1 addition & 1 deletion web_hosting_manager/app/lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* SafeApi class expose all api requested for web hosting manager.
*/
import path from 'path';
import safeApp from 'safe-app';
import safeApp from '@maidsafe/safe-node-app';
import { I18n } from 'react-redux-i18n';

import Uploader from './Uploader';
Expand Down
4 changes: 2 additions & 2 deletions web_hosting_manager/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"license": "MIT",
"dependencies": {
"classnames": "^2.2.5",
"safe-app": "https://s3.eu-west-2.amazonaws.com/safe-app-nodejs/safe-app-0.2.1.tgz"
"@maidsafe/safe-node-app": "0.2.1",
"classnames": "^2.2.5"
}
}

0 comments on commit 2a9a15a

Please sign in to comment.