@css-blocks/core
Advanced tools
Comparing version 1.3.0 to 1.3.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.3.2](https://github.com/linkedin/css-blocks/tree/master/packages/%40css-blocks/core/compare/v1.3.1...v1.3.2) (2020-08-20) | ||
### Bug Fixes | ||
* Make location writeable so ember-cli-htmlbars doesn't choke. ([8d513ba](https://github.com/linkedin/css-blocks/tree/master/packages/%40css-blocks/core/commit/8d513bae48eb5c4c061e99840e85faa389bf7e52)) | ||
# [1.3.0](https://github.com/linkedin/css-blocks/tree/master/packages/%40css-blocks/core/compare/v1.2.4...v1.3.0) (2020-08-11) | ||
@@ -8,0 +19,0 @@ |
@@ -16,6 +16,5 @@ import * as SourceLocation from "./SourceLocation"; | ||
origMessage: string; | ||
private _location?; | ||
location?: ErrorLocation; | ||
constructor(message: string, location?: ErrorLocation); | ||
private annotatedMessage; | ||
get location(): ErrorLocation | undefined; | ||
} | ||
@@ -22,0 +21,0 @@ export declare function charInFile(filename: string | ErrorWithoutPosition, position: SourceLocation.SourcePosition | undefined): string; |
@@ -19,3 +19,3 @@ "use strict"; | ||
this.origMessage = message; | ||
this._location = location; | ||
this.location = location; | ||
super.message = this.annotatedMessage(); | ||
@@ -33,5 +33,2 @@ } | ||
} | ||
get location() { | ||
return this._location; | ||
} | ||
} | ||
@@ -186,2 +183,2 @@ exports.CssBlockError = CssBlockError; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Vycm9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQVNBLFNBQWdCLGlCQUFpQixDQUFDLEdBQWtCO0lBQ2xELE9BQU8sQ0FBQyxPQUFpQyxHQUFJLENBQUMsU0FBUyxLQUFLLFFBQVEsQ0FBQyxDQUFDO0FBQ3hFLENBQUM7QUFGRCw4Q0FFQztBQUVELFNBQ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ZXRhaWxzKGVycm9yOiBNdWx0aXBsZUNzc0Jsb2NrRXJyb3JzLCBpbmRlbnQgPSBcIlwiKTogc3RyaW5nIHtcbiAgbGV0IGRldGFpbHMgPSBcIlwiO1xuICBsZXQgaSA9IDA7XG4gIGZvciAobGV0IGVyciBvZiBlcnJvci5lcnJvcnMpIHtcbiAgICBkZXRhaWxzICs9IGBcXG4ke2luZGVudH0keysraX0uICR7ZXJyfWA7XG4gICAgaWYgKGVyciBpbnN0YW5jZW9mIENhc2NhZGluZ0Vycm9yKSB7XG4gICAgICBpZiAoZXJyLmNhdXNlIGluc3RhbmNlb2YgTXVsdGlwbGVDc3NCbG9ja0Vycm9ycyAmJiBlcnIuY2F1c2UuZXJyb3JzLmxlbmd0aCA+IDEpIHtcbiAgICAgICAgZGV0YWlscyArPSBgXFxuJHtpbmRlbnR9ICAgJHtpID4gOSA/IFwiIFwiIDogXCJcIn1DYXVzZWQgYnkgbXVsdGlwbGUgZXJyb3JzOmA7XG4gICAgICAgIGRldGFpbHMgKz0gZXJyb3JEZXRhaWxzKGVyci5jYXVzZSwgaW5kZW50ICsgXCJcXHRcIik7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBsZXQgY2F1c2UgPSBlcnIuY2F1c2UgaW5zdGFuY2VvZiBNdWx0aXBsZUNzc0Jsb2NrRXJyb3JzID8gZXJyLmNhdXNlLmVycm9yc1swXSA6IGVyci5jYXVzZTtcbiAgICAgICAgZGV0YWlscyArPSBgXFxuJHtpbmRlbnR9ICAgICR7aSA+IDkgPyBcIiBcIiA6IFwiXCJ9Q2F1c2VkIGJ5OmA7XG4gICAgICAgIGRldGFpbHMgKz0gYFxcbiR7aW5kZW50fSAke2NhdXNlfWA7XG4gICAgICB9XG4gICAgfVxuICB9XG4gIHJldHVybiBkZXRhaWxzO1xufVxuIl19 |
{ | ||
"name": "@css-blocks/core", | ||
"version": "1.3.0", | ||
"version": "1.3.2", | ||
"description": "Fast, maintainable, optimal, component-oriented CSS.", | ||
@@ -69,3 +69,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"gitHead": "5c917e513c95943ef84a2d531c0064237b72962a" | ||
"gitHead": "ce06f744dfafb16e083a8a4586128d8cee53da9f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3285111
20888