@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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. 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
- document.cookie = `theme=${encodeURIComponent(valueStr)}; path=/; max-age=${oneYear}; SameSite=Lax`;
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 location = this.$location ? `${basename(this.$location.filename)}:${this.$location.line}` : "unknown";
4669
- return `${this.constructor.name}#${this.id} @ ${location}`;
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/runtime",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Runtime DOM renderer for Constela UI framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",