Skip to content
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

chore: update dependencies #317

Merged
merged 9 commits into from Feb 15, 2019
Merged

Conversation

janvennemann
Copy link
Contributor

@janvennemann janvennemann added this to the v4.0.1 milestone Jan 16, 2019
@janvennemann janvennemann modified the milestones: v4.0.1, v4.0.2 Jan 17, 2019
Copy link
Contributor

@ewanharris ewanharris left a comment

Choose a reason for hiding this comment

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

Just a few comments around the parsing sourceType but nothing major

@@ -321,7 +321,7 @@ class ScanReferencesTask extends IncrementalFileTask {
};

// Now traverse the AST and generate modified source
const ast = babylon.parse(originalSource, { sourceFilename: file, sourceType: 'module' });
const ast = babelParser.parse(originalSource, { sourceFilename: file, sourceType: 'module' });
Copy link
Contributor

Choose a reason for hiding this comment

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

node-titanium-sdk has started parsing using unambiguous sourceType as opposed to assuming everything is an ESModule, might be worthwhile doing that here too

@@ -594,7 +594,7 @@ Parser.prototype.parse = function (buf, fn, state) {
// turn it into a buffer
buf = buf.toString();

const ast = babylon.parse(buf, { sourceFilename: fn, sourceType: 'module' });
const ast = babelParser.parse(buf, { sourceFilename: fn, sourceType: 'module' });
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

@@ -597,11 +597,11 @@ HyperloopiOSBuilder.prototype.patchJSFile = function patchJSFile(obj, sourceFile
}
};

const ast = babylon.parse(contents, { sourceFilename: sourceFilename, sourceType: 'module' });
const ast = babelParser.parse(contents, { sourceFilename: sourceFilename, sourceType: 'module' });
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

Copy link
Contributor

@ewanharris ewanharris left a comment

Choose a reason for hiding this comment

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

Changes LGTM!

@janvennemann janvennemann merged commit c5bee76 into tidev:master Feb 15, 2019
@janvennemann janvennemann deleted the TIMOB-23468 branch February 15, 2019 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants