Skip to content

Commit 0e94dd3

Browse files
Merge pull request #5021 from topcoder-platform/issue-4997
Updated tc-auth-lib name
2 parents dcc3aa1 + 4a97b20 commit 0e94dd3

File tree

17 files changed

+17
-17
lines changed

17 files changed

+17
-17
lines changed

__tests__/client/client.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const mockTcAccounts = {
106106
decodeToken: () => ({ exp: Date.now() }),
107107
getFreshToken: () => Promise.resolve(tokenV3),
108108
};
109-
jest.setMock('tc-auth-lib', mockTcAccounts);
109+
jest.setMock('@topcoder-platform/tc-auth-lib', mockTcAccounts);
110110
111111
/* Mock auth actions */
112112
/*

__tests__/shared/reducers/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const mockActions = {
2424
2525
_.merge(actions, mockActions);
2626
27-
jest.setMock('tc-auth-lib', {
27+
jest.setMock('@topcoder-platform/tc-auth-lib', {
2828
decodeToken: () => 'User object',
2929
isTokenExpired: () => false,
3030
});

__tests__/shared/reducers/challenge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { mock, actions } from 'topcoder-react-lib';
1111
1212
const { mockAction } = mock;
1313
14-
jest.setMock('tc-auth-lib', {
14+
jest.setMock('@topcoder-platform/tc-auth-lib', {
1515
decodeToken: () => 'User object',
1616
isTokenExpired: () => false,
1717
});

bin/www

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/* Enables Babel for the server-side code (with exception of this very file). */
66
require('babel-register')({
77
ignore: [
8-
/node_modules\/(?!appirio-tech.*|topcoder|tc-)/,
8+
/node_modules\/(?!appirio-tech.*|topcoder|tc-|@topcoder)/,
99
/node_modules\/topcoder-react-utils/,
1010
],
1111
});

config/jest/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const config = require('topcoder-react-utils/config/jest/default');
22
const nodeConfig = require('config');
33

4-
config.transformIgnorePatterns[0] = '/node_modules/(?!appirio-tech|topcoder|tc-)';
4+
config.transformIgnorePatterns[0] = '/node_modules/(?!appirio-tech|topcoder|tc-|@topcoder)';
55

66
// Include the directories whose tests has been written to minimize coverage time
77
config.collectCoverageFrom = ['src/client/*.{js,jsx}', 'src/server/*.{js,jsx}', 'src/shared/*.{js,jsx}'];

config/webpack/development.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const standardDevelopmentConfig = configFactory({
1717

1818
const jsxRule = standardDevelopmentConfig.module.rules.find(rule => rule.loader === 'babel-loader');
1919
jsxRule.exclude = [
20-
/node_modules[\\/](?!appirio-tech.*|topcoder|tc-)/,
20+
/node_modules[\\/](?!appirio-tech.*|topcoder|tc-|@topcoder)/,
2121
/src[\\/]assets[\\/]fonts/,
2222
/src[\\/]assets[\\/]images[\\/]dashboard/,
2323
];

config/webpack/production.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const standardDevelopmentConfig = configFactory({
2424

2525
const jsxRule = standardDevelopmentConfig.module.rules.find(rule => rule.loader === 'babel-loader');
2626
jsxRule.exclude = [
27-
/node_modules[\\/](?!appirio-tech.*|topcoder|tc-)/,
27+
/node_modules[\\/](?!appirio-tech.*|topcoder|tc-|@topcoder)/,
2828
/src[\\/]assets[\\/]fonts/,
2929
/src[\\/]assets[\\/]images[\\/]dashboard/,
3030
];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
},
3838
"dependencies": {
3939
"@hapi/joi": "^16.1.4",
40+
"@topcoder-platform/tc-auth-lib": "topcoder-platform/tc-auth-lib#1.0.1",
4041
"aos": "^2.3.4",
4142
"atob": "^2.1.1",
4243
"babel-register": "^6.26.0",
@@ -134,7 +135,6 @@
134135
"showdown": "^1.8.6",
135136
"slick-carousel": "^1.8.1",
136137
"supertest": "^3.1.0",
137-
"tc-auth-lib": "git+https://github.com/topcoder-platform/tc-auth-lib.git#dev",
138138
"tc-core-library-js": "github:appirio-tech/tc-core-library-js#v2.6.3",
139139
"tc-ui": "^1.0.12",
140140
"topcoder-react-lib": "1.0.5",

src/client/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
configureConnector,
1212
decodeToken,
1313
getFreshToken,
14-
} from 'tc-auth-lib';
14+
} from '@topcoder-platform/tc-auth-lib';
1515
import { actions, logger, errors } from 'topcoder-react-lib';
1616
import { client, redux } from 'topcoder-react-utils';
1717

src/shared/actions/challenge-listing/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import _ from 'lodash';
66
import { createActions } from 'redux-actions';
7-
import { decodeToken } from 'tc-auth-lib';
7+
import { decodeToken } from '@topcoder-platform/tc-auth-lib';
88
import 'isomorphic-fetch';
99
import { processSRM } from 'utils/tc';
1010
import { errors, services } from 'topcoder-react-lib';

src/shared/components/challenge-detail/MySubmissions/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import PT from 'prop-types';
77
import _ from 'lodash';
88
import { goToLogin } from 'utils/tc';
99
import LoadingIndicator from 'components/LoadingIndicator';
10-
import { isTokenExpired } from 'tc-auth-lib';
10+
import { isTokenExpired } from '@topcoder-platform/tc-auth-lib';
1111

1212
import SubmissionsList from './SubmissionsList';
1313
import SubmissionsDetail from './SubmissionsDetail';

src/shared/components/challenge-detail/Submissions/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import _ from 'lodash';
1111
import { connect } from 'react-redux';
1212
import { config } from 'topcoder-react-utils';
1313
import { submission as submissionUtils } from 'topcoder-react-lib';
14-
import { isTokenExpired } from 'tc-auth-lib';
14+
import { isTokenExpired } from '@topcoder-platform/tc-auth-lib';
1515
import cn from 'classnames';
1616
import { PrimaryButton } from 'topcoder-react-ui-kit';
1717

src/shared/containers/Dashboard/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { updateChallengeType } from 'utils/challenge';
2525
import challengeListingActions from 'actions/challenge-listing';
2626
import communityActions from 'actions/tc-communities';
2727

28-
import { isTokenExpired, decodeToken } from 'tc-auth-lib';
28+
import { isTokenExpired, decodeToken } from '@topcoder-platform/tc-auth-lib';
2929
import { config, isomorphy } from 'topcoder-react-utils';
3030

3131
import './styles.scss';

src/shared/containers/EmailVerification/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import PT from 'prop-types';
88
import {connect} from "react-redux";
99
import { actions } from "topcoder-react-lib";
1010
import { Redirect } from 'react-router';
11-
import {isTokenExpired} from "tc-auth-lib";
11+
import {isTokenExpired} from '@topcoder-platform/tc-auth-lib';
1212
import * as queryString from 'query-string';
1313
import LoadingIndicator from 'components/LoadingIndicator';
1414
import Error404 from 'components/Error404';

src/shared/containers/Settings.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import React from 'react';
66
import PT from 'prop-types';
77
import { connect } from 'react-redux';
88

9-
import { isTokenExpired } from 'tc-auth-lib';
9+
import { isTokenExpired } from '@topcoder-platform/tc-auth-lib';
1010
import { goToLogin } from 'utils/tc';
1111

1212
import { actions } from 'topcoder-react-lib';

src/shared/reducers/tc-communities/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import _ from 'lodash';
88
import actions from 'actions/tc-communities';
99
import { logger, services, errors } from 'topcoder-react-lib';
1010
import { handleActions } from 'redux-actions';
11-
import { decodeToken } from 'tc-auth-lib';
11+
import { decodeToken } from '@topcoder-platform/tc-auth-lib';
1212
import { getAuthTokens } from 'utils/tc';
1313
import { STATE as JOIN_COMMUNITY } from 'components/tc-communities/JoinCommunity';
1414
import { getCommunityId } from 'server/services/communities';

src/shared/utils/tc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import _ from 'lodash';
77
import moment from 'moment-timezone';
8-
import { isTokenExpired } from 'tc-auth-lib';
8+
import { isTokenExpired } from '@topcoder-platform/tc-auth-lib';
99
import { config, isomorphy } from 'topcoder-react-utils';
1010

1111
import { tc } from 'topcoder-react-lib';

0 commit comments

Comments
 (0)