Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@aws-sdk/client-personalize-events": "1.0.0-gamma.4",
"@aws-sdk/client-pinpoint": "1.0.0-gamma.4",
"@aws-sdk/util-utf8-browser": "1.0.0-gamma.3",
"lodash": "^4.17.20",
"uuid": "^3.2.1"
},
"jest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
import { RequestParams, SessionInfo } from './DataType';
import { isEmpty, isEqual } from 'lodash';
import { SessionInfo } from './DataType';
import isEmpty from 'lodash/isEmpty';
import isEqual from 'lodash/isEqual';
import { v1 as uuid } from 'uuid';
import { StorageHelper, ConsoleLogger as Logger, JS } from '@aws-amplify/core';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to remove the StorageHelper here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wasn't being used (along with RequestParams) so I just removed them.

import { ConsoleLogger as Logger, JS } from '@aws-amplify/core';

import Cache from '@aws-amplify/cache';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ import {
SessionInfoManager,
MediaAutoTrack,
} from './AmazonPersonalizeHelper';
import { isEmpty, isEqual, get } from 'lodash';
import get from 'lodash/get';
import isEmpty from 'lodash/isEmpty';
import isEqual from 'lodash/isEqual';
import { AnalyticsProvider } from '../types';

const logger = new Logger('AmazonPersonalizeProvider');
Expand Down
3 changes: 2 additions & 1 deletion packages/analytics/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"../../node_modules/@types"
],
// temporary fix
"types": ["node", "lodash"]
"types": ["node", "lodash"],
"esModuleInterop": true
},
"include": [
"src/**/*"
Expand Down