-
Notifications
You must be signed in to change notification settings - Fork 83
refact: Integrate code from utils
package into optimizely-sdk
#749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
92e3ab7
utils integrated
ozayr-zaviar 37cab7b
logging integrated
ozayr-zaviar 1d5368c
testcases fix
ozayr-zaviar 82b0fa1
revert logging
ozayr-zaviar 2843dcc
utils merged in optimizely sdk
ozayr-zaviar 8574c7e
small changes removed
ozayr-zaviar f725a21
Merge branch 'master' into uzair/consolidate-packages
ozayr-zaviar 28905d0
ts config added because jest and mocha use similar declarations
ozayr-zaviar 11518e1
type warning fixed
ozayr-zaviar d3371ce
more types fixed
ozayr-zaviar da73e11
fix
ozayr-zaviar 069e501
fix
ozayr-zaviar bc6d5fb
fix
ozayr-zaviar 3b758bd
type defined
ozayr-zaviar 73e1db8
type fix
ozayr-zaviar d41146d
Merge branch 'master' into uzair/consolidate-packages
ozayr-zaviar 550c3ba
headers updated
ozayr-zaviar 39b5d69
fix
ozayr-zaviar d00a828
correct notification type imported
ozayr-zaviar c958cda
comment addressed
ozayr-zaviar c36dee9
headers updated and notification center moved
ozayr-zaviar 19d1ca0
comments addressed
ozayr-zaviar 6622d21
removed Notification center interface
ozayr-zaviar 71f7e14
notification center renamed
ozayr-zaviar 4b9c124
notification type corrected
ozayr-zaviar 9e3d8d4
renamed a conflicting interface
zashraf1985 bef10a0
removed unused line
zashraf1985 dcdd371
comments addressed
ozayr-zaviar 4fc4b51
fns exported in same import
ozayr-zaviar a8e7858
comment addressed
ozayr-zaviar 0bb709c
Merge branch 'master' into uzair/consolidate-packages
ozayr-zaviar f36baf4
comments addressed
ozayr-zaviar f7e9855
Merge branch 'master' into uzair/consolidate-packages
zashraf1985 055860f
comments addressed
ozayr-zaviar 5796dbe
Merge branch 'uzair/consolidate-packages' of github.com:optimizely/ja…
fe25893
alias @utils removed
ozayr-zaviar 86cbb08
renamed a variable
zashraf1985 a1a6033
removed utils from dependency and added changelog entry
zashraf1985 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
"transform": { | ||
"^.+\\.tsx?$": "ts-jest" | ||
}, | ||
"testRegex": "(/tests/.*|(\\.|/)(test|spec))\\.tsx?$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"jsx", | ||
"json", | ||
"node" | ||
], | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* Copyright 2019-2020 Optimizely | ||
* Copyright 2019-2020, 2022, Optimizely | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -17,8 +17,8 @@ import sinon from 'sinon'; | |
import { assert } from 'chai'; | ||
import { cloneDeep } from 'lodash'; | ||
|
||
import { sprintf } from '@optimizely/js-sdk-utils'; | ||
import * as logging from '@optimizely/js-sdk-logging'; | ||
import { sprintf } from '../../utils/fns'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should consider adding linting for consistent import ordering if we don't have that yet. |
||
import * as datafileManager from '@optimizely/js-sdk-datafile-manager'; | ||
|
||
import * as projectConfig from './index'; | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any thoughts on using path aliases in the optimizely-sdk/tsconfig.json file to make these imports a bit easier to read?
Example tsconfig.js:
Usage: