@constela/runtime 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -273,7 +273,8 @@ function createStateStore(definitions) {
|
|
|
273
273
|
try {
|
|
274
274
|
const valueStr = typeof value === "string" ? value : JSON.stringify(value);
|
|
275
275
|
const oneYear = 365 * 24 * 60 * 60;
|
|
276
|
-
|
|
276
|
+
const secure = typeof location !== "undefined" && location.protocol === "https:" ? "; Secure" : "";
|
|
277
|
+
document.cookie = `theme=${encodeURIComponent(valueStr)}; path=/; max-age=${oneYear}; SameSite=Lax${secure}`;
|
|
277
278
|
} catch {
|
|
278
279
|
}
|
|
279
280
|
}
|
|
@@ -4665,8 +4666,8 @@ var Rule = class {
|
|
|
4665
4666
|
this._contentNameIsCapturing = RegexSource.hasCaptures(this._contentName);
|
|
4666
4667
|
}
|
|
4667
4668
|
get debugName() {
|
|
4668
|
-
const
|
|
4669
|
-
return `${this.constructor.name}#${this.id} @ ${
|
|
4669
|
+
const location2 = this.$location ? `${basename(this.$location.filename)}:${this.$location.line}` : "unknown";
|
|
4670
|
+
return `${this.constructor.name}#${this.id} @ ${location2}`;
|
|
4670
4671
|
}
|
|
4671
4672
|
getName(lineText, captureIndices) {
|
|
4672
4673
|
if (!this._nameIsCapturing || this._name === null || lineText === null || captureIndices === null) {
|