@ebflat9/fp
Advanced tools
Comparing version 1.2.27 to 1.2.28
{ | ||
"name": "@ebflat9/fp", | ||
"version": "1.2.27", | ||
"version": "1.2.28", | ||
"description": "my fp utils", | ||
"source": "src/index.js", | ||
"main": "src/index.js", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"type": "module", | ||
@@ -16,3 +17,6 @@ "keywords": [ | ||
"scripts": { | ||
"test": "mocha --parallel" | ||
"test": "parcel build src/index.ts && mocha --parallel", | ||
"build": "parcel build src/index.ts", | ||
"check": "tsc --noEmit", | ||
"watch": "parcel watch" | ||
}, | ||
@@ -35,4 +39,10 @@ "repository": { | ||
"devDependencies": { | ||
"@parcel/packager-ts": "^2.0.1", | ||
"@parcel/transformer-typescript-types": "^2.0.1", | ||
"@typescript-eslint/eslint-plugin": "^5.3.1", | ||
"@typescript-eslint/parser": "^5.3.1", | ||
"eslint": "^8.2.0", | ||
"mocha": "^9.1.3", | ||
"parcel": "latest" | ||
"parcel": "^2.0.1", | ||
"typescript": "^4.4.4" | ||
}, | ||
@@ -39,0 +49,0 @@ "alias": { |
@@ -1,2 +0,2 @@ | ||
export const LazyCollection = { | ||
export const Collection = { | ||
map(fn) { | ||
@@ -15,3 +15,3 @@ return Object.assign( | ||
}, | ||
LazyCollection | ||
Collection | ||
) | ||
@@ -44,3 +44,3 @@ }, | ||
}, | ||
LazyCollection | ||
Collection | ||
) | ||
@@ -64,3 +64,3 @@ }, | ||
}, | ||
LazyCollection | ||
Collection | ||
) | ||
@@ -82,3 +82,3 @@ }, | ||
}, | ||
LazyCollection | ||
Collection | ||
) | ||
@@ -98,3 +98,3 @@ }, | ||
}, | ||
LazyCollection | ||
Collection | ||
) | ||
@@ -117,3 +117,3 @@ }, | ||
}, | ||
LazyCollection | ||
Collection | ||
) | ||
@@ -144,3 +144,3 @@ }, | ||
}, | ||
LazyCollection | ||
Collection | ||
) | ||
@@ -170,3 +170,3 @@ | ||
}, | ||
LazyCollection | ||
Collection | ||
) | ||
@@ -208,3 +208,3 @@ | ||
}, | ||
LazyCollection | ||
Collection | ||
) | ||
@@ -221,3 +221,7 @@ | ||
export function Lazy(target) { | ||
return Object.assign(target, LazyCollection) | ||
return Object.assign(target, Collection) | ||
} | ||
Lazy.Collection = Collection | ||
Lazy.Stack = Stack | ||
Lazy.Numbers = Numbers |
@@ -1,5 +0,4 @@ | ||
import { createStore } from './store/createStore.js' | ||
import { applyMiddleware } from './store/applyMiddleware.js' | ||
import { thunk } from './store/thunk.js' | ||
export { createStore } from './store/createStore.js' | ||
export { applyMiddleware } from './store/applyMiddleware.js' | ||
export { thunk } from './store/thunk.js' | ||
export { bindActionCreators } from './store/bindActionCreators.js' | ||
@@ -11,12 +10,1 @@ export { createAsyncThunk } from './store/asyncThunk.js' | ||
export { Reducer } from './store/reducer.js' | ||
export { createStore, applyMiddleware, thunk } | ||
/** | ||
* Convenience function to create a store with thunk middleware already | ||
* installed | ||
* | ||
* @param {function} Reducer function | ||
* @param {object} Initial state | ||
* @returns {object} Store | ||
*/ | ||
export const createConfiguredStore = applyMiddleware(thunk)(createStore) |
@@ -1,2 +0,2 @@ | ||
import { Lazy, Numbers } from '../src/lazy.js' | ||
import { Lazy, Numbers } from '../dist/index.js' | ||
import { describe, it } from 'mocha' | ||
@@ -3,0 +3,0 @@ import { strict as assert } from 'assert' |
@@ -10,3 +10,3 @@ import { describe, it } from 'mocha' | ||
createSelector, | ||
} from '../src/index.js' | ||
} from '../dist/index.js' | ||
@@ -13,0 +13,0 @@ const testReducer = Reducer.builder() |
650847
11889
8
2