@equinor/fusion-query
Advanced tools
Comparing version 3.0.4 to 3.0.6
@@ -13,6 +13,3 @@ import { castDraft } from 'immer'; | ||
const record = state[key]; | ||
if (!record) { | ||
state[key] = castDraft(Object.assign(Object.assign({}, entry), { created: Date.now() })); | ||
} | ||
else { | ||
if (record) { | ||
record.updated = Date.now(); | ||
@@ -22,2 +19,6 @@ (_a = record.updates) !== null && _a !== void 0 ? _a : (record.updates = 0); | ||
} | ||
else { | ||
const created = Date.now(); | ||
state[key] = castDraft(Object.assign(Object.assign({}, entry), { created, updated: created })); | ||
} | ||
}) | ||
@@ -24,0 +25,0 @@ .addCase(actions.remove, (state, action) => { |
@@ -1,2 +0,2 @@ | ||
export const version = '3.0.4'; | ||
export const version = '3.0.6'; | ||
//# sourceMappingURL=version.js.map |
@@ -1,1 +0,1 @@ | ||
export declare const version = "3.0.4"; | ||
export declare const version = "3.0.6"; |
158
package.json
{ | ||
"name": "@equinor/fusion-query", | ||
"version": "3.0.4", | ||
"description": "WIP", | ||
"keywords": [ | ||
"observable", | ||
"react", | ||
"fusion", | ||
"equinor" | ||
], | ||
"homepage": "https://github.com/equinor/fusion-framework/tree/master/packages/observable#readme", | ||
"license": "ISC", | ||
"main": "dist/esm/index.js", | ||
"exports": { | ||
".": "./dist/esm/index.js", | ||
"./cache": "./dist/esm/cache/index.js", | ||
"./client": "./dist/esm/client/index.js", | ||
"./react": "./dist/esm/react/index.js", | ||
"./operators": "./dist/esm/operators.js" | ||
"name": "@equinor/fusion-query", | ||
"version": "3.0.6", | ||
"description": "WIP", | ||
"keywords": [ | ||
"observable", | ||
"react", | ||
"fusion", | ||
"equinor" | ||
], | ||
"homepage": "https://github.com/equinor/fusion-framework/tree/master/packages/observable#readme", | ||
"license": "ISC", | ||
"main": "dist/esm/index.js", | ||
"exports": { | ||
".": "./dist/esm/index.js", | ||
"./cache": "./dist/esm/cache/index.js", | ||
"./client": "./dist/esm/client/index.js", | ||
"./react": "./dist/esm/react/index.js", | ||
"./operators": "./dist/esm/operators.js" | ||
}, | ||
"types": "dist/types/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"cache": [ | ||
"dist/types/cache/index.d.ts" | ||
], | ||
"client": [ | ||
"dist/types/client/index.d.ts" | ||
], | ||
"operators": [ | ||
"dist/types/operators.d.ts" | ||
], | ||
"react": [ | ||
"dist/types/react/index.d.ts" | ||
] | ||
} | ||
}, | ||
"directories": { | ||
"dist": "dist" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/equinor/fusion-framework.git", | ||
"directory": "packages/utils/query" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/equinor/fusion-framework/issues" | ||
}, | ||
"dependencies": { | ||
"immer": "^9.0.16", | ||
"rxjs": "^7.8.1", | ||
"uuid": "^9.0.0", | ||
"@equinor/fusion-observable": "^8.1.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.2.20", | ||
"@types/uuid": "^9.0.2", | ||
"react": "^18.2.0", | ||
"typescript": "^5.1.3" | ||
}, | ||
"peerDependencies": { | ||
"@types/react": "^16.9.0 || ^17.0.0 || ^18.0.0", | ||
"react": "^16.9.0 || ^17.0.0 || ^18.0.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@types/react": { | ||
"optional": true | ||
}, | ||
"types": "dist/types/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"cache": [ | ||
"dist/types/cache/index.d.ts" | ||
], | ||
"client": [ | ||
"dist/types/client/index.d.ts" | ||
], | ||
"operators": [ | ||
"dist/types/operators.d.ts" | ||
], | ||
"react": [ | ||
"dist/types/react/index.d.ts" | ||
] | ||
} | ||
}, | ||
"directories": { | ||
"dist": "dist" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/equinor/fusion-framework.git", | ||
"directory": "packages/utils/query" | ||
}, | ||
"scripts": { | ||
"build": "tsc -b", | ||
"prepack": "yarn build" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/equinor/fusion-framework/issues" | ||
}, | ||
"dependencies": { | ||
"@equinor/fusion-observable": "^8.0.3", | ||
"rxjs": "^7.5.7", | ||
"uuid": "^9.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^17.0.2", | ||
"@types/uuid": "^9.0.2", | ||
"react": "^17.0.2", | ||
"typescript": "^5.1.3" | ||
}, | ||
"peerDependencies": { | ||
"@types/react": "^16.9.0 || ^17.0.0 || ^18.0.0", | ||
"react": "^16.9.0 || ^17.0.0 || ^18.0.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@types/react": { | ||
"optional": true | ||
}, | ||
"react": { | ||
"optional": true | ||
} | ||
"react": { | ||
"optional": true | ||
} | ||
} | ||
}, | ||
"scripts": { | ||
"build": "tsc -b" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78
1035
148793
6
1
+ Addedimmer@^9.0.16
Updatedrxjs@^7.8.1