valdres 0.2.0-pre.1 → 0.2.0-pre.2
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 +2 -5
- package/package.json +1 -1
- /package/dist/types/{src/atom.d.ts → atom.d.ts} +0 -0
- /package/dist/types/{src/atomFamily.d.ts → atomFamily.d.ts} +0 -0
- /package/dist/types/{src/createStoreWithSelectorSet.d.ts → createStoreWithSelectorSet.d.ts} +0 -0
- /package/dist/types/{src/errors → errors}/SelectorCircularDependencyError.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/SelectorEvaluationError.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/lib/generateSelectorTrace.d.ts +0 -0
- /package/dist/types/{src/globalStore.d.ts → globalStore.d.ts} +0 -0
- /package/dist/types/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/types/{src/indexConstructor.d.ts → indexConstructor.d.ts} +0 -0
- /package/dist/types/{src/lib → lib}/atomFamilyAtom.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/createAtomFamily.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/createGlobalAtomFamily.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/createStoreData.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/deleteFamilyAtom.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/equal.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/getState.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/globalAtom.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/initAtom.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/initSelector.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/isFunction.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/isProd.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/propagateUpdatedAtoms.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/resetAtom.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/setAtom.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/setAtoms.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/setValueInData.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/stableStringify.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/storeFromStoreData.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/stringifyFamilyArgs.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/subscribe.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/transaction.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/unsubscribe.d.ts +0 -0
- /package/dist/types/{src/selector.d.ts → selector.d.ts} +0 -0
- /package/dist/types/{src/selectorFamily.d.ts → selectorFamily.d.ts} +0 -0
- /package/dist/types/{src/store.d.ts → store.d.ts} +0 -0
- /package/dist/types/{src/types → types}/Atom.d.ts +0 -0
- /package/dist/types/{src/types → types}/AtomDefaultValue.d.ts +0 -0
- /package/dist/types/{src/types → types}/AtomFamily.d.ts +0 -0
- /package/dist/types/{src/types → types}/AtomFamilyAtom.d.ts +0 -0
- /package/dist/types/{src/types → types}/AtomFamilyDefaultValue.d.ts +0 -0
- /package/dist/types/{src/types → types}/AtomFamilyGlobalAtom.d.ts +0 -0
- /package/dist/types/{src/types → types}/AtomFamilySelector.d.ts +0 -0
- /package/dist/types/{src/types → types}/AtomOnInit.d.ts +0 -0
- /package/dist/types/{src/types → types}/AtomOnSet.d.ts +0 -0
- /package/dist/types/{src/types → types}/AtomOptions.d.ts +0 -0
- /package/dist/types/{src/types → types}/EqualFunc.d.ts +0 -0
- /package/dist/types/{src/types → types}/Family.d.ts +0 -0
- /package/dist/types/{src/types → types}/FamilyKey.d.ts +0 -0
- /package/dist/types/{src/types → types}/GetValue.d.ts +0 -0
- /package/dist/types/{src/types → types}/GlobalAtom.d.ts +0 -0
- /package/dist/types/{src/types → types}/GlobalAtomGetSelfFunc.d.ts +0 -0
- /package/dist/types/{src/types → types}/GlobalAtomResetSelfFunc.d.ts +0 -0
- /package/dist/types/{src/types → types}/GlobalAtomSetSelfFunc.d.ts +0 -0
- /package/dist/types/{src/types → types}/ResetAtom.d.ts +0 -0
- /package/dist/types/{src/types → types}/Selector.d.ts +0 -0
- /package/dist/types/{src/types → types}/SelectorFamily.d.ts +0 -0
- /package/dist/types/{src/types → types}/SelectorOptions.d.ts +0 -0
- /package/dist/types/{src/types → types}/SetAtom.d.ts +0 -0
- /package/dist/types/{src/types → types}/SetAtomValue.d.ts +0 -0
- /package/dist/types/{src/types → types}/State.d.ts +0 -0
- /package/dist/types/{src/types → types}/Store.d.ts +0 -0
- /package/dist/types/{src/types → types}/StoreData.d.ts +0 -0
- /package/dist/types/{src/types → types}/SubscribeFn.d.ts +0 -0
- /package/dist/types/{src/types → types}/Subscription.d.ts +0 -0
- /package/dist/types/{src/types → types}/TransactionFn.d.ts +0 -0
- /package/dist/types/{src/types → types}/TransactionInterface.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/deepFreeze.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/isAtom.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/isAtomFamily.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/isFamily.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/isFamilyAtom.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/isFamilySelector.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/isFamilyState.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/isPromiseLike.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/isSelector.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/isSelectorFamily.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
|
-
import { version } from "../package.json";
|
|
3
|
-
|
|
4
1
|
// src/lib/equal.ts
|
|
5
2
|
var hasElementType = typeof Element !== "undefined";
|
|
6
3
|
var hasMap = typeof Map === "function";
|
|
@@ -1329,9 +1326,9 @@ var isFamilySelector = (state) => isFamilyState(state) && isSelector(state);
|
|
|
1329
1326
|
|
|
1330
1327
|
// src/index.ts
|
|
1331
1328
|
if (globalThis.__valdres__) {
|
|
1332
|
-
throw new Error(`Error! An instance of valdres is already loaded. Loaded: ${globalThis.__valdres__}. Attempted to load: ${
|
|
1329
|
+
throw new Error(`Error! An instance of valdres is already loaded. Loaded: ${globalThis.__valdres__}. Attempted to load: ${"0.2.0-pre.2"}`);
|
|
1333
1330
|
} else {
|
|
1334
|
-
globalThis.__valdres__ =
|
|
1331
|
+
globalThis.__valdres__ = "0.2.0-pre.2";
|
|
1335
1332
|
}
|
|
1336
1333
|
export {
|
|
1337
1334
|
store,
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|