sadick254
d99a1d40a6
Reset the package's local storage setting if loading cannot be deferred
2021-09-21 11:15:59 +03:00
icecream17
4774c56d9e
Bump async dependency to 3.2.0 in atom/script
...
Update lockfileVersion to *2*, but that's a side affect from npm
https://github.com/caolan/async/blob/master/CHANGELOG.md#v200
v2.0.0 allows importing functions modularily.
So I changed the code to only import the functions needed
instead of the whole thing.
2021-06-25 16:51:14 -05:00
Amin Yahyaabadi
6473f52c67
Convert var to const/let in src files
...
```
npm install -g jscodeshift
git clone https://github.com/cpojer/js-codemod.git
jscodeshift -t js-codemod/transforms/no-vars.js ./src
```
2021-03-30 10:12:02 -05:00
Amin Yahyaabadi
ad2aaa8c3c
fix: require .node files directly to detect incompatible native modules
...
- This fixes the incompatible native module detection for the packages
that require their .node files lazily
- Speeds up the performance of detection by directly require .node files
instead of requiring the package
2021-03-06 00:54:40 -06:00
Amin Yahyaabadi
bd189ebce9
support ES6 default require for packages ( #21112 )
...
This allows loading the packages that are Es module and export their function wrapped in a default object. This is the case for any package that uses Babel 6, Babel 7, or other modern compilers for transpiling their package.
2020-11-18 10:57:21 +03:00
Amin Yahyaabadi
607aa8f7c3
use performance instead of Date for measuring package load time
2020-08-25 18:47:11 +03:00
Rafael Oleza
ed6d06b16e
Re-apply prettier JS formatter
2019-06-01 00:19:59 +02:00
Rafael Oleza
49cb6f4a7b
Merge commit '1d9a4cafcf6cc288d675512db8fd984e13aab869' into wl-deserialize-and-activate
2019-06-01 00:19:27 +02:00
Rafael Oleza
040d96ca1b
Merge commit '677bbb7f0b8754787ff9e7bfab4602ba82e13b0b' into wl-deserialize-and-activate
2019-06-01 00:18:46 +02:00
Rafael Oleza
7f3f040628
Reformat all JS files using prettier
2019-05-31 18:33:56 +02:00
Antonio Scandurra
40c26d29c8
Don't create a promise when preloading package settings in snapshot
...
Promise creation is forbidden within `mksnapshot` (see
https://github.com/electron/libchromiumcontent/pull/363 ,
https://github.com/nodejs/node/pull/13242 and
https://github.com/electron/electron/issues/18420 ). Since preloading a
package's settings is a synchronous action anyway, we just avoid
instantiating a new Promise when calling `loadSettings`.
2019-05-29 17:45:51 +02:00
Winston Liu
6cfc31d9f6
Use atom.workspace.createItemForURI
...
This avoids nested atom.workspace.open calls, which don't work well, and has the same effect as createItemForURI will call the newly-added opener.
2019-01-18 11:30:19 -05:00
Winston Liu
852c54c026
Merge branch 'master' into wl-deserialize-and-activate
2019-01-17 10:36:06 -05:00
Max Brunsfeld
231cc58e00
Replace ScopeProperties with private SettingsFile class in package.js
2018-08-24 13:53:32 -07:00
Landon Abney
53c0f5f4a0
🐛 Prefer package name from metadata
...
When loading a package prefer the name specified in the package metadata
instead of the name of the folder that the package's files reside in.
Fixes #16703 .
2018-02-14 12:02:17 -08:00
Wliu
90b051260a
Activate package if a deserializer is called after initial package activation
2017-12-04 20:44:01 +01:00
Wliu
39abd44398
Delay activation until initial package activation
2017-12-04 20:21:50 +01:00
Wliu
330876598c
This return is needed
2017-12-04 20:21:29 +01:00
Max Brunsfeld
4c102eeb2b
Merge branch 'master' into wl-deserialize-and-activate
2017-11-29 12:01:21 -08:00
Max Brunsfeld
1af6da0b76
Don't use underscore in Package
2017-11-29 11:08:54 -08:00
Max Brunsfeld
f3ff490836
Convert Package to JS
2017-11-15 15:51:48 -08:00