Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4014 from hatched/remove-revision-info
Browse files Browse the repository at this point in the history
Upgrade jaaslib to remove the request for `revision-info` on Charmstore requests.
  • Loading branch information
hatched authored Aug 13, 2019
2 parents 18b8b28 + 7077946 commit 4c819ad
Show file tree
Hide file tree
Showing 32 changed files with 37 additions and 32 deletions.
2 changes: 1 addition & 1 deletion gui/src/app/components/added-services-list/label/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const PropTypes = require('prop-types');
const React = require('react');

const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

class AddedServicesLabel extends React.Component {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';

const PropTypes = require('prop-types');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');
const React = require('react');

const {Button} = require('@canonical/juju-react-components');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

const PropTypes = require('prop-types');
const React = require('react');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const initUtils = require('../../../../init/utils');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

const PropTypes = require('prop-types');
const React = require('react');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const initUtils = require('../../../../init/utils');

Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/components/entity-details/entity-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const classNames = require('classnames');
const PropTypes = require('prop-types');
const React = require('react');
const shapeup = require('shapeup');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const EntityContent = require('./content/content');
const EntityHeader = require('./header/header');
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/components/entity-details/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

const PropTypes = require('prop-types');
const React = require('react');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const CopyToClipboard = require('../../copy-to-clipboard/copy-to-clipboard');
const {Button} = require('@canonical/juju-react-components');
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/components/icon-list/icon-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const PropTypes = require('prop-types');
const React = require('react');

const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

require('./_icon-list.scss');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const PropTypes = require('prop-types');
const React = require('react');
const shapeup = require('shapeup');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const Spinner = require('../../spinner/spinner');
const InspectorChangeVersionItem = require('./item/item');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

const React = require('react');
const enzyme = require('enzyme');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const InspectorChangeVersionItem = require('./item');
const {Button} = require('@canonical/juju-react-components');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const enzyme = require('enzyme');
const React = require('react');
const shapeup = require('shapeup');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const Analytics = require('test/fake-analytics');
const InspectorChangeVersion = require('./change-version');
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/components/inspector/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const classNames = require('classnames');
const PropTypes = require('prop-types');
const React = require('react');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const BooleanConfig = require('../../boolean-config/boolean-config');
const initUtils = require('../../../init/utils');
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/components/inspector/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const classNames = require('classnames');
const PropTypes = require('prop-types');
const React = require('react');
const ReactDOM = require('react-dom');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

require('./_header.scss');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

const PropTypes = require('prop-types');
const React = require('react');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const {ButtonRow} = require('@canonical/juju-react-components');
const initUtils = require('../../../init/utils');
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/components/post-deployment/post-deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const marked = require('marked');
const PropTypes = require('prop-types');
const React = require('react');
const shapeup = require('shapeup');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const {Button} = require('@canonical/juju-react-components');
const {Panel} = require('@canonical/juju-react-components');
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/components/profile/bundle-list/bundle-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const PropTypes = require('prop-types');
const React = require('react');
const shapeup = require('shapeup');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const {BasicTable} = require('@canonical/juju-react-components');
const IconList = require('../../icon-list/icon-list');
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/components/profile/charm-list/charm-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const PropTypes = require('prop-types');
const React = require('react');
const shapeup = require('shapeup');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const {BasicTable} = require('@canonical/juju-react-components');
const ProfileCharmstoreLogin = require('../charmstore-login/charmstore-login');
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/components/search-results/item/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const classNames = require('classnames');
const PropTypes = require('prop-types');
const React = require('react');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const {Button} = require('@canonical/juju-react-components');
const IconList = require('../../icon-list/icon-list');
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/components/store/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const PropTypes = require('prop-types');
const React = require('react');
const classNames = require('classnames');
const {charmstore} = require('jaaslib');
const {charmstore} = require('@canonical/jaaslib');

const ExpertStoreCard = require('../expert-store-card/expert-store-card');

Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const {
stripe,
terms,
urls
} = require('jaaslib');
} = require('@canonical/jaaslib');

require('./yui-modules');

Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/init/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const PropTypes = require('prop-types');
const queryString = require('query-string');
const React = require('react');
const shapeup = require('shapeup');
const jaaslib = require('jaaslib');
const jaaslib = require('@canonical/jaaslib');

// This CSS needs to be imported before the components below so that the order
// of CSS is correct.
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/init/testing-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.

'use strict';

const {charmstore} = require('jaaslib');
const {charmstore} = require('@canonical/jaaslib');

const factory = {

Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/init/topology/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

const d3 = require('d3');
const jsyaml = require('js-yaml');
const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const environmentUtils = require('./environment-utils');
const relationUtils = require('../relation-utils');
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/init/topology/test-environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';

let d3 = require('d3');
const {charmstore} = require('jaaslib');
const {charmstore} = require('@canonical/jaaslib');

const Analytics = require('test/fake-analytics');
const EnvironmentChangeSet = require('../environment-change-set');
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/init/topology/test-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';

let d3 = require('d3');
const {charmstore} = require('jaaslib');
const {charmstore} = require('@canonical/jaaslib');

const utils = require('testing-utils');

Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/init/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const jsyaml = require('js-yaml');
const React = require('react');
const FileSaver = require('file-saver');
const {charmstore} = require('jaaslib');
const {charmstore} = require('@canonical/jaaslib');

const BundleExporter = require('./bundle-exporter');
const initUtils = require('./utils');
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/models/charm.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.

'use strict';

const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const utils = require('../init/utils');

Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/models/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.

'use strict';

const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

/**
Delta handlers.
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/models/test-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.

'use strict';

const jaaslib = require('jaaslib');
const jaaslib = require('@canonical/jaaslib');
const charmstoreUtils = jaaslib.charmstore;
const utils = require('../init/testing-utils');

Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/store/env/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.

'use strict';

const {urls} = require('jaaslib');
const {urls} = require('@canonical/jaaslib');

const utils = require('../../init/utils');

Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/test-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {
plans,
terms,
urls
} = require('jaaslib');
} = require('@canonical/jaaslib');


describe('init', () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"test": "yarn run lint-python && yarn run lint-js && yarn run test-js"
},
"dependencies": {
"@canonical/jaaslib": "^0.6.0",
"classnames": "^2.2.6",
"clipboard": "^1.7.1",
"cryptojs": "2.5.3",
Expand All @@ -35,7 +36,6 @@
"envify": "4.1.0",
"file-saver": "1.3.8",
"graceful-fs": "4.1.11",
"jaaslib": "0.5.0",
"js-cookie": "^2.2.0",
"js-yaml": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.9.1.tgz",
"lodash.clonedeep": "^4.5.0",
Expand Down
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@
lodash "^4.17.11"
to-fast-properties "^2.0.0"

"@canonical/jaaslib@^0.6.0":
version "0.6.0"
resolved "https://registry.yarnpkg.com/@canonical/jaaslib/-/jaaslib-0.6.0.tgz#7b77ff0a6899a2e58adc1b2077d8971de019047b"
integrity sha512-3x0DmeFP1Fu/JPT9Sn/vJcNbCI5QSMmwF4rHIH7N/3T/KxwI1dK+gjv8djOFAe3UD8wVbFNwlhOpuhdg+2A+VQ==

"@canonical/juju-react-components@0.5.0":
version "0.5.0"
resolved "https://registry.yarnpkg.com/@canonical/juju-react-components/-/juju-react-components-0.5.0.tgz#65a65988666bc31d7dc128f349342cb615f23886"
Expand Down Expand Up @@ -5382,7 +5387,7 @@ istanbul-reports@^1.5.1:
dependencies:
handlebars "^4.0.3"

jaaslib@0.5.0, jaaslib@^0.5.0:
jaaslib@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/jaaslib/-/jaaslib-0.5.0.tgz#78cefa2acdc0894c0198509495b2e9deb5cc1acd"
integrity sha512-zT0BVgJFgTfh8NZFwuLkbKfpyju99jwepnoDg3Q9DjZ/QmE4Cm+DV0DfGTGM+uqOxxFr3aa9OGFmFH1LGSLHaQ==
Expand Down

0 comments on commit 4c819ad

Please sign in to comment.