ember-native-class-codemod
                                
                                 ember-native-class-codemod copied to clipboard
                                
                                    ember-native-class-codemod copied to clipboard
                            
                            
                            
                        A codemod-cli project for converting Ember objects to es6 native classes
For example: ```js _list: computed('list.[]', { get() { return A(get(this, 'list').map((el) => el)); }, set: (key, value) => value }), ``` This code will throw ``` Transformation error (Cannot read...
``` /usr/local/lib/node_modules/ember-native-class-codemod/node_modules/@babel/core/lib/transformation/index.js:66 throw e; ^ TypeError: /usr/local/lib/node_modules/ember-native-class-codemod/node_modules/safe-buffer/index.js: Cannot read property 'from' of undefined at Converter.toBase64 (/usr/local/lib/node_modules/ember-native-class-codemod/node_modules/convert-source-map/index.js:61:28) at Converter.toComment (/usr/local/lib/node_modules/ember-native-class-codemod/node_modules/convert-source-map/index.js:65:21) at generateCode (/usr/local/lib/node_modules/ember-native-class-codemod/node_modules/@babel/core/lib/transformation/file/generate.js:78:76) at run (/usr/local/lib/node_modules/ember-native-class-codemod/node_modules/@babel/core/lib/transformation/index.js:55:33) at run.next () at Function.transform...
A small correction to #20: ```js const a = Foo.extend({ queryParams: { ... } }) ``` need to be transformed to ```js class A extends Foo { queryParams = [{...
Bumps [sync-disk-cache](https://github.com/stefanpenner/sync-disk-cache) from 1.3.3 to 2.1.0. Commits 5838273 release v2.1.0 🎉 d30e074 Merge pull request #25 from stefanpenner/permission-change 77d4511 [Fixes #71] Temporary files should really just be writeable by the...
``` npx ember-native-class-codemod https://:/path/ app/**/*.js ``` The process hangs after the following error. ``` Downloading Chromium r686378 - 110.2 Mb [====================] 100% 0.0s (node:58858) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot...
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 9.15.8 to 9.18.5. **This update includes a security fix.** Vulnerabilities fixed Sourced from The GitHub Security Advisory Database. Prototype Pollution in highlight.js Impact Affected versions of this...
I'm attempting to run the codemod on a component in my app but I'm getting an error with (I think) puppeteer. Any thoughts about what might be going wrong? ```...
I'm trying to run this on my app on OSX. I'm not really sure if chromium is actually running correctly. ``` ☯tony@okirakugokiraku☯ ~/src/datafruits(master)$ npx ember-native-class-codemod http://localhost:4200/ app/**/* .js Downloading Chromium...
Given this code snippet: ```js import Service from '@ember/service'; import { computed } from '@ember/object'; export default Service.extend({ strategies: computed(() => []), // offending line }); ``` I will get...
Getting `Cannot read property 'replace' of undefined` in all js files, during `_generateModuleKey` Tried with `nvm use 9` and `nvm use 12`