@domql/state
Advanced tools
Comparing version 2.5.185 to 2.5.186
@@ -5,3 +5,3 @@ 'use strict' | ||
import { deepClone, exec, is, isArray, isFunction, isObject, isUndefined } from '@domql/utils' | ||
import { IGNORE_STATE_PARAMS } from './ignore' | ||
import { IGNORE_STATE_PARAMS } from './ignore.js' | ||
import { | ||
@@ -31,5 +31,5 @@ add, | ||
values | ||
} from './methods' | ||
import { updateState } from './updateState' | ||
import { checkIfInherits, createInheritedState } from './inherit' | ||
} from './methods.js' | ||
import { updateState } from './updateState.js' | ||
import { checkIfInherits, createInheritedState } from './inherit.js' | ||
@@ -36,0 +36,0 @@ export const createState = async function (element, parent, options) { |
@@ -27,6 +27,6 @@ "use strict"; | ||
var import_utils = require("@domql/utils"); | ||
var import_ignore = require("./ignore"); | ||
var import_methods = require("./methods"); | ||
var import_updateState = require("./updateState"); | ||
var import_inherit = require("./inherit"); | ||
var import_ignore = require("./ignore.js"); | ||
var import_methods = require("./methods.js"); | ||
var import_updateState = require("./updateState.js"); | ||
var import_inherit = require("./inherit.js"); | ||
const createState = async function(element, parent, options) { | ||
@@ -33,0 +33,0 @@ element.state = await applyInitialState(element, parent, options); |
@@ -18,6 +18,6 @@ "use strict"; | ||
module.exports = __toCommonJS(state_exports); | ||
__reExport(state_exports, require("./ignore"), module.exports); | ||
__reExport(state_exports, require("./create"), module.exports); | ||
__reExport(state_exports, require("./updateState"), module.exports); | ||
__reExport(state_exports, require("./methods"), module.exports); | ||
__reExport(state_exports, require("./inherit"), module.exports); | ||
__reExport(state_exports, require("./ignore.js"), module.exports); | ||
__reExport(state_exports, require("./create.js"), module.exports); | ||
__reExport(state_exports, require("./updateState.js"), module.exports); | ||
__reExport(state_exports, require("./methods.js"), module.exports); | ||
__reExport(state_exports, require("./inherit.js"), module.exports); |
@@ -32,3 +32,3 @@ "use strict"; | ||
var import_utils = require("@domql/utils"); | ||
var import_ignore = require("./ignore"); | ||
var import_ignore = require("./ignore.js"); | ||
const getRootStateInKey = (stateKey, parentState) => { | ||
@@ -35,0 +35,0 @@ if (!stateKey.includes("~/")) |
@@ -47,3 +47,3 @@ "use strict"; | ||
var import_utils = require("@domql/utils"); | ||
var import_ignore = require("./ignore"); | ||
var import_ignore = require("./ignore.js"); | ||
const parse = function() { | ||
@@ -50,0 +50,0 @@ const state = this; |
@@ -26,5 +26,5 @@ "use strict"; | ||
var import_event = require("@domql/event"); | ||
var import_ignore = require("./ignore"); | ||
var import_ignore = require("./ignore.js"); | ||
var import_utils = require("@domql/utils"); | ||
var import_inherit = require("./inherit"); | ||
var import_inherit = require("./inherit.js"); | ||
const STATE_UPDATE_OPTIONS = { | ||
@@ -31,0 +31,0 @@ overwrite: true, |
10
index.js
'use strict' | ||
export * from './ignore' | ||
export * from './create' | ||
export * from './updateState' | ||
export * from './methods' | ||
export * from './inherit' | ||
export * from './ignore.js' | ||
export * from './create.js' | ||
export * from './updateState.js' | ||
export * from './methods.js' | ||
export * from './inherit.js' |
'use strict' | ||
import { deepClone, is, isObjectLike, isUndefined } from '@domql/utils' | ||
import { IGNORE_STATE_PARAMS } from './ignore' | ||
import { IGNORE_STATE_PARAMS } from './ignore.js' | ||
@@ -6,0 +6,0 @@ export const getRootStateInKey = (stateKey, parentState) => { |
@@ -18,3 +18,3 @@ 'use strict' | ||
import { IGNORE_STATE_PARAMS } from './ignore' | ||
import { IGNORE_STATE_PARAMS } from './ignore.js' | ||
@@ -21,0 +21,0 @@ export const parse = function () { |
{ | ||
"name": "@domql/state", | ||
"version": "2.5.185", | ||
"version": "2.5.186", | ||
"license": "MIT", | ||
"type": "module", | ||
"module": "dist/esm/index.js", | ||
"module": "index.js", | ||
"main": "index.js", | ||
"unpkg": "dist/iife/index.js", | ||
"jsdelivr": "dist/iife/index.js", | ||
"main": "dist/esm/index.js", | ||
"exports": { | ||
".": { | ||
"kalduna": "./index.js", | ||
"default": "./dist/cjs/index.js" | ||
"default": "./dist/esm/index.js", | ||
"import": "./dist/esm/index.js", | ||
"require": "./dist/cjs/index.js" | ||
} | ||
@@ -26,11 +27,11 @@ }, | ||
"build:iife": "npx esbuild *.js --target=node16 --format=iife --outdir=dist/iife", | ||
"build": "npm run build:cjs", | ||
"build": "rimraf -I dist; npm run build:cjs; npm run build:esm", | ||
"prepublish": "rimraf -I dist && npm run build && npm run copy:package:cjs" | ||
}, | ||
"dependencies": { | ||
"@domql/event": "^2.5.185", | ||
"@domql/report": "^2.5.162", | ||
"@domql/event": "^2.5.186", | ||
"@domql/report": "^2.5.186", | ||
"@domql/utils": "^2.5.185" | ||
}, | ||
"gitHead": "ccab034f188b6a1f55f741c0b29a9d3b0c9bee6f" | ||
"gitHead": "1fa4d0c2683c11578893632ca11a765c3997685e" | ||
} |
@@ -5,5 +5,5 @@ 'use strict' | ||
import { triggerEventOnUpdate } from '@domql/event' | ||
import { IGNORE_STATE_PARAMS } from './ignore' | ||
import { IGNORE_STATE_PARAMS } from './ignore.js' | ||
import { deepMerge, merge, overwriteDeep, overwriteShallow } from '@domql/utils' | ||
import { checkIfInherits, createNestedObjectByKeyPath, findInheritedState, getParentStateInKey, getRootStateInKey } from './inherit' | ||
import { checkIfInherits, createNestedObjectByKeyPath, findInheritedState, getParentStateInKey, getRootStateInKey } from './inherit.js' | ||
@@ -10,0 +10,0 @@ const STATE_UPDATE_OPTIONS = { |
71097
21
1985
Updated@domql/event@^2.5.186
Updated@domql/report@^2.5.186