@ctx-core/window 14.0.6 → 14.0.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @ctx-core/window
2
2
 
3
+ ## 14.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - update dependencies
8
+ - Updated dependencies
9
+ - @ctx-core/dom@11.1.8
10
+ - @ctx-core/nanostores@0.7.5
11
+ - @ctx-core/object@22.1.1
12
+
3
13
  ## 14.0.6
4
14
 
5
15
  ### Patch Changes
Binary file
@@ -1,5 +1,5 @@
1
1
  import { has_dom } from '@ctx-core/dom';
2
- import { atom$ } from '@ctx-core/nanostores';
2
+ import { atom$, WritableAtom$ } from '@ctx-core/nanostores';
3
3
  import { assign, be_ } from '@ctx-core/object';
4
4
  export const window_location$_ = be_('window_location$', ()=>{
5
5
  const window_location$ = atom$(undefined);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/window_location$_.ts"],"sourcesContent":["import { has_dom } from '@ctx-core/dom'\nimport { atom$, WritableAtom$ } from '@ctx-core/nanostores'\nimport { assign, B, be_ } from '@ctx-core/object'\nexport const window_location$_:B<window_location$_T> = be_('window_location$', ()=>{\n\tconst window_location$ = atom$<Location|undefined>(undefined)\n\tconst window_location_reload_popstate_bound$ =\n\t\tatom$(undefined) as WritableAtom$<boolean|undefined>\n\tif (has_dom) {\n\t\treset_window_location()\n\t}\n\treturn assign(window_location$, { reset_window_location }) as window_location$_T\n\tfunction reset_window_location() {\n\t\tif (!has_dom) return\n\t\tif (!window_location_reload_popstate_bound$.$) {\n\t\t\twindow_location_reload_popstate_bound$.set(true)\n\t\t\twindow.addEventListener(\n\t\t\t\t'popstate',\n\t\t\t\treset_window_location)\n\t\t}\n\t\twindow_location$.set(window.location)\n\t}\n})\nexport interface window_location$_T extends WritableAtom$<Location|undefined> {\n\treset_window_location:()=>void\n}\n"],"names":["has_dom","atom$","assign","be_","window_location$_","window_location$","undefined","window_location_reload_popstate_bound$","reset_window_location","$","set","window","addEventListener","location"],"mappings":"AAAA,MAAM,GAAGA,OAAO,QAAQ,CAAe;AACvC,MAAM,GAAGC,KAAK,QAAuB,CAAsB;AAC3D,MAAM,GAAGC,MAAM,EAAKC,GAAG,QAAQ,CAAkB;AACjD,MAAM,CAAC,KAAK,CAACC,iBAAiB,GAAyBD,GAAG,CAAC,CAAkB,uBAAM,CAAC;IACnF,KAAK,CAACE,gBAAgB,GAAGJ,KAAK,CAAqBK,SAAS;IAC5D,KAAK,CAACC,sCAAsC,GAC3CN,KAAK,CAACK,SAAS;IAChB,EAAE,EAAEN,OAAO,EAAE,CAAC;QACbQ,qBAAqB;IACtB,CAAC;IACD,MAAM,CAACN,MAAM,CAACG,gBAAgB,EAAE,CAAC;QAACG,qBAAqB;IAAC,CAAC;aAChDA,qBAAqB,GAAG,CAAC;QACjC,EAAE,GAAGR,OAAO,EAAE,MAAM;QACpB,EAAE,GAAGO,sCAAsC,CAACE,CAAC,EAAE,CAAC;YAC/CF,sCAAsC,CAACG,GAAG,CAAC,IAAI;YAC/CC,MAAM,CAACC,gBAAgB,CACtB,CAAU,WACVJ,qBAAqB;QACvB,CAAC;QACDH,gBAAgB,CAACK,GAAG,CAACC,MAAM,CAACE,QAAQ;IACrC,CAAC;AACF,CAAC"}
1
+ {"version":3,"sources":["../src/window_location$_.ts"],"sourcesContent":["import { has_dom } from '@ctx-core/dom'\nimport { atom$, WritableAtom$ } from '@ctx-core/nanostores'\nimport { assign, B, be_ } from '@ctx-core/object'\nexport const window_location$_:B<window_location$_T> = be_('window_location$', ()=>{\n\tconst window_location$ = atom$<Location|undefined>(undefined)\n\tconst window_location_reload_popstate_bound$ =\n\t\tatom$(undefined) as WritableAtom$<boolean|undefined>\n\tif (has_dom) {\n\t\treset_window_location()\n\t}\n\treturn assign(window_location$, { reset_window_location }) as window_location$_T\n\tfunction reset_window_location() {\n\t\tif (!has_dom) return\n\t\tif (!window_location_reload_popstate_bound$.$) {\n\t\t\twindow_location_reload_popstate_bound$.set(true)\n\t\t\twindow.addEventListener(\n\t\t\t\t'popstate',\n\t\t\t\treset_window_location)\n\t\t}\n\t\twindow_location$.set(window.location)\n\t}\n})\nexport interface window_location$_T extends WritableAtom$<Location|undefined> {\n\treset_window_location:()=>void\n}\n"],"names":["has_dom","atom$","WritableAtom$","assign","be_","window_location$_","window_location$","undefined","window_location_reload_popstate_bound$","reset_window_location","$","set","window","addEventListener","location"],"mappings":"AAAA,MAAM,GAAGA,OAAO,QAAQ,CAAe;AACvC,MAAM,GAAGC,KAAK,EAAEC,aAAa,QAAQ,CAAsB;AAC3D,MAAM,GAAGC,MAAM,EAAKC,GAAG,QAAQ,CAAkB;AACjD,MAAM,CAAC,KAAK,CAACC,iBAAiB,GAAyBD,GAAG,CAAC,CAAkB,uBAAM,CAAC;IACnF,KAAK,CAACE,gBAAgB,GAAGL,KAAK,CAAqBM,SAAS;IAC5D,KAAK,CAACC,sCAAsC,GAC3CP,KAAK,CAACM,SAAS;IAChB,EAAE,EAAEP,OAAO,EAAE,CAAC;QACbS,qBAAqB,E;IACtB,CAAC;IACD,MAAM,CAACN,MAAM,CAACG,gBAAgB,EAAE,CAAC;QAACG,qBAAqB;IAAC,CAAC;aAChDA,qBAAqB,GAAG,CAAC;QACjC,EAAE,GAAGT,OAAO,EAAE,MAAM;QACpB,EAAE,GAAGQ,sCAAsC,CAACE,CAAC,EAAE,CAAC;YAC/CF,sCAAsC,CAACG,GAAG,CAAC,IAAI,C;YAC/CC,MAAM,CAACC,gBAAgB,CACtB,CAAU,WACVJ,qBAAqB,C;QACvB,CAAC;QACDH,gBAAgB,CAACK,GAAG,CAACC,MAAM,CAACE,QAAQ,C;IACrC,CAAC;AACF,CAAC"}
package/package.json CHANGED
@@ -1,54 +1,55 @@
1
1
  {
2
- "name": "@ctx-core/window",
3
- "version": "14.0.6",
4
- "description": "ctx-core window",
5
- "keywords": [
6
- "ctx-core",
7
- "window"
8
- ],
9
- "homepage": "https://github.com/ctx-core/window#readme",
10
- "bugs": {
11
- "url": "https://github.com/ctx-core/window/issues"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "https://github.com/ctx-core/window.git"
16
- },
17
- "license": "Apache-2.0",
18
- "author": "Brian Takita",
19
- "type": "module",
20
- "types": "./lib/index.d.ts",
21
- "exports": {
22
- ".": {
23
- "import": "./lib/index.js"
24
- },
25
- "./package.json": "./package.json"
26
- },
27
- "dependencies": {
28
- "@ctx-core/dom": "^11.1.6",
29
- "@ctx-core/function": "*",
30
- "@ctx-core/nanostores": "^0.7.1",
31
- "@ctx-core/object": "*"
32
- },
33
- "devDependencies": {
34
- "@swc/cli": "^0.1.55",
35
- "@swc/core": "^1.2.139",
36
- "rimraf": "^3.0.2",
37
- "typescript": "next"
38
- },
39
- "publishConfig": {
40
- "access": "public",
41
- "cache": "~/.npm"
42
- },
43
- "svelte": "./lib/index.js",
44
- "sideEffects": false,
45
- "scripts": {
46
- "build": "npm run compile",
47
- "clean": "rimraf lib && npm run clean:tsbuildinfo",
48
- "clean:tsbuildinfo": "rimraf tsconfig.tsbuildinfo && rimraf lib/**/*.d.ts",
49
- "compile": "npm run compile:source && npm run compile:declaration",
50
- "compile:source": "swc src --out-dir lib --copy-files --source-maps --config-file .swcrc",
51
- "compile:declaration": "npm run clean:tsbuildinfo && tsc --declaration --emitDeclarationOnly --declarationDir lib",
52
- "exec": "$@"
53
- }
54
- }
2
+ "name": "@ctx-core/window",
3
+ "version": "14.0.7",
4
+ "description": "ctx-core window",
5
+ "keywords": [
6
+ "ctx-core",
7
+ "window"
8
+ ],
9
+ "homepage": "https://github.com/ctx-core/window#readme",
10
+ "bugs": {
11
+ "url": "https://github.com/ctx-core/window/issues"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/ctx-core/window.git"
16
+ },
17
+ "license": "Apache-2.0",
18
+ "author": "Brian Takita",
19
+ "type": "module",
20
+ "types": "./lib/index.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "import": "./lib/index.js"
24
+ },
25
+ "./package.json": "./package.json"
26
+ },
27
+ "scripts": {
28
+ "build": "npm run compile",
29
+ "clean": "rimraf lib && npm run clean:tsbuildinfo",
30
+ "clean:tsbuildinfo": "rimraf tsconfig.tsbuildinfo && rimraf lib/**/*.d.ts",
31
+ "compile": "npm run compile:source && npm run compile:declaration",
32
+ "compile:source": "swc src --out-dir lib --copy-files --source-maps --config-file .swcrc",
33
+ "compile:declaration": "npm run clean:tsbuildinfo && tsc --declaration --emitDeclarationOnly --declarationDir lib",
34
+ "exec": "$@",
35
+ "prepublishOnly": "npm run clean && npm run build"
36
+ },
37
+ "dependencies": {
38
+ "@ctx-core/dom": "^11.1.8",
39
+ "@ctx-core/function": "*",
40
+ "@ctx-core/nanostores": "^0.7.5",
41
+ "@ctx-core/object": "*"
42
+ },
43
+ "devDependencies": {
44
+ "@swc/cli": "^0.1.55",
45
+ "@swc/core": "^1.2.147",
46
+ "rimraf": "^3.0.2",
47
+ "typescript": "next"
48
+ },
49
+ "publishConfig": {
50
+ "access": "public",
51
+ "cache": "~/.npm"
52
+ },
53
+ "svelte": "./lib/index.js",
54
+ "sideEffects": false
55
+ }