alloy-compiler
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -6,3 +6,3 @@ module.exports = { | ||
files: [ 'test/**/*.js' ], | ||
extends: [ 'plugin:jest/all', 'plugin:jest/recommended' ], | ||
extends: [ 'plugin:jest/recommended' ], | ||
globals: { | ||
@@ -9,0 +9,0 @@ 'jest/globals': true |
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.2.4](https://github.com/appcelerator/alloy-devkit/compare/v0.2.3...v0.2.4) (2020-08-04) | ||
### Bug Fixes | ||
* add missing methods to purge style cache ([0c44683](https://github.com/appcelerator/alloy-devkit/commit/0c446833f7fc4936e5530f10a6e5d2219c8f996b)) | ||
## [0.2.3](https://github.com/appcelerator/alloy-devkit/compare/v0.2.2...v0.2.3) (2020-06-08) | ||
@@ -8,0 +19,0 @@ |
@@ -100,4 +100,8 @@ const babel = require('@babel/core'); | ||
} | ||
purgeStyleCache(componentPath) { | ||
this.factory.createCompiler('style').purgeStyleCache(componentPath); | ||
} | ||
} | ||
module.exports = AlloyCompiler; |
@@ -143,2 +143,8 @@ const { | ||
/** | ||
* Loads the styles object for the given component. | ||
* | ||
* @param {object} meta Component metadata | ||
* @return {object} Object that contains styles and file dependencies | ||
*/ | ||
loadStyles(meta) { | ||
@@ -161,3 +167,3 @@ const { | ||
let styles = styler.globalStyle || []; | ||
const files = [ path.join(this.appDir, 'styles', 'app.tss') ]; | ||
const files = []; | ||
let message = ''; | ||
@@ -277,4 +283,18 @@ | ||
} | ||
/** | ||
* Purges the style cache for a given component. | ||
* | ||
* @param {string} componentPath Path of component to purge style cache for | ||
*/ | ||
purgeStyleCache(componentPath) { | ||
try { | ||
const meta = this.resolveComponentMeta(componentPath); | ||
styleCache.delete(meta.cacheIdentifier); | ||
} catch (e) { | ||
// silently ignore possible component lookup errors | ||
} | ||
} | ||
} | ||
module.exports = BaseCompiler; |
{ | ||
"name": "alloy-compiler", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Compiler for Alloy components", | ||
@@ -23,3 +23,3 @@ "main": "lib/index.js", | ||
"@babel/types": "^7.9.6", | ||
"alloy-utils": "^0.2.3", | ||
"alloy-utils": "^0.2.4", | ||
"chmodr": "^1.2.0", | ||
@@ -37,3 +37,3 @@ "fs-extra": "^9.0.0", | ||
}, | ||
"gitHead": "d59738460ac79808a83408a5522fa39f269aa923" | ||
"gitHead": "57da32d6cc82839447829b5a1b8bc27ddfe12712" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
918604
23666
+ Addedcaniuse-lite@1.0.30001684(transitive)
+ Addedelectron-to-chromium@1.5.65(transitive)
- Removedcaniuse-lite@1.0.30001683(transitive)
- Removedelectron-to-chromium@1.5.64(transitive)
Updatedalloy-utils@^0.2.4