Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alloy-compiler

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alloy-compiler - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

2

.eslintrc.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc