init component

This commit is contained in:
Robin COuret
2026-02-16 17:28:37 +01:00
parent 460c7a25e0
commit e0e50af706
4557 changed files with 666911 additions and 8 deletions

38
node_modules/fp-ts-local-storage/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,38 @@
# Changelog
> **Tags:**
>
> - [New Feature]
> - [Bug Fix]
> - [Breaking Change]
> - [Documentation]
> - [Internal]
> - [Polish]
> - [Experimental]
**Note**: Gaps between patch versions are faulty/broken releases.
**Note**: A feature tagged as Experimental is in a high state of flux, you're at risk of it changing without notice.
# 1.0.3
- **Bug Fix**
- don't set `target: es6` in `tsconfig.build-es6.json` (@gcanti)
# 1.0.2
- **New Feature**
- add build in ES6 format, #3 (@StefanoMagrassi)
# 0.2.0
- **Breaking Change**
- upgrade to `fp-ts@2.x` (@gcanti)
# 0.1.1
- **Polish**
- move `fp-ts` to peerDependencies (@gcanti)
# 0.1.0
Initial release

21
node_modules/fp-ts-local-storage/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2018 Giulio Canti
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

15
node_modules/fp-ts-local-storage/README.md generated vendored Normal file
View File

@@ -0,0 +1,15 @@
[fp-ts](https://github.com/gcanti/fp-ts) bindings for LocalStorage
# Documentation
- [API Reference](https://gcanti.github.io/fp-ts-local-storage)
# Example
```ts
import { setItem, getItem } from 'fp-ts-local-storage'
const program = setItem('foo', JSON.stringify({ bar: 'baz' })).chain(() => getItem('foo'))
console.log(program.run()) // => some('{"bar":"baz"}')
```

29
node_modules/fp-ts-local-storage/es6/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,29 @@
/**
* @since 0.2.0
*/
import { IO } from 'fp-ts/es6/IO';
import { Option } from 'fp-ts/es6/Option';
/**
* @since 0.2.0
*/
export declare const clear: IO<void>;
/**
* @since 0.2.0
*/
export declare function getItem(key: string): IO<Option<string>>;
/**
* @since 0.2.0
*/
export declare function key(index: number): IO<Option<string>>;
/**
* @since 0.2.0
*/
export declare const length: IO<number>;
/**
* @since 0.2.0
*/
export declare function removeItem(key: string): IO<void>;
/**
* @since 0.2.0
*/
export declare function setItem(key: string, value: string): IO<void>;

35
node_modules/fp-ts-local-storage/es6/index.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
import { fromNullable } from 'fp-ts/es6/Option';
var _clear = function () { return localStorage.clear(); };
/**
* @since 0.2.0
*/
export var clear = _clear;
/**
* @since 0.2.0
*/
export function getItem(key) {
return function () { return fromNullable(localStorage.getItem(key)); };
}
/**
* @since 0.2.0
*/
export function key(index) {
return function () { return fromNullable(localStorage.key(index)); };
}
var _length = function () { return localStorage.length; };
/**
* @since 0.2.0
*/
export var length = _length;
/**
* @since 0.2.0
*/
export function removeItem(key) {
return function () { return localStorage.removeItem(key); };
}
/**
* @since 0.2.0
*/
export function setItem(key, value) {
return function () { return localStorage.setItem(key, value); };
}

29
node_modules/fp-ts-local-storage/lib/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,29 @@
/**
* @since 0.2.0
*/
import { IO } from 'fp-ts/lib/IO';
import { Option } from 'fp-ts/lib/Option';
/**
* @since 0.2.0
*/
export declare const clear: IO<void>;
/**
* @since 0.2.0
*/
export declare function getItem(key: string): IO<Option<string>>;
/**
* @since 0.2.0
*/
export declare function key(index: number): IO<Option<string>>;
/**
* @since 0.2.0
*/
export declare const length: IO<number>;
/**
* @since 0.2.0
*/
export declare function removeItem(key: string): IO<void>;
/**
* @since 0.2.0
*/
export declare function setItem(key: string, value: string): IO<void>;

41
node_modules/fp-ts-local-storage/lib/index.js generated vendored Normal file
View File

@@ -0,0 +1,41 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Option_1 = require("fp-ts/lib/Option");
var _clear = function () { return localStorage.clear(); };
/**
* @since 0.2.0
*/
exports.clear = _clear;
/**
* @since 0.2.0
*/
function getItem(key) {
return function () { return Option_1.fromNullable(localStorage.getItem(key)); };
}
exports.getItem = getItem;
/**
* @since 0.2.0
*/
function key(index) {
return function () { return Option_1.fromNullable(localStorage.key(index)); };
}
exports.key = key;
var _length = function () { return localStorage.length; };
/**
* @since 0.2.0
*/
exports.length = _length;
/**
* @since 0.2.0
*/
function removeItem(key) {
return function () { return localStorage.removeItem(key); };
}
exports.removeItem = removeItem;
/**
* @since 0.2.0
*/
function setItem(key, value) {
return function () { return localStorage.setItem(key, value); };
}
exports.setItem = setItem;

70
node_modules/fp-ts-local-storage/package.json generated vendored Normal file
View File

@@ -0,0 +1,70 @@
{
"name": "fp-ts-local-storage",
"version": "1.0.3",
"description": "fp-ts bindings for LocalStorage",
"files": [
"lib",
"es6"
],
"main": "lib/index.js",
"module": "es6/index.js",
"typings": "lib/index.d.ts",
"sideEffects": false,
"scripts": {
"check": "tsc -p .",
"lint": "tslint -p .",
"jest": "jest --ci --coverage",
"prettier": "prettier --no-semi --single-quote --print-width 120 --parser typescript --list-different \"{src,test}/**/*.ts\"",
"fix-prettier": "prettier --no-semi --single-quote --print-width 120 --parser typescript --write \"{src,test}/**/*.ts\"",
"pretest": "npm run check && npm run lint && npm run prettier",
"test": "npm run jest",
"posttest": "npm run docs",
"clean": "rm -rf ./lib ./es6",
"prebuild": "npm run clean",
"build": "tsc -p ./tsconfig.build.json && tsc -p ./tsconfig.build-es6.json",
"prepublish": "npm run build",
"docs": "docs-ts",
"postbuild": "import-path-rewrite"
},
"repository": {
"type": "git",
"url": "https://github.com/gcanti/fp-ts-local-storage.git"
},
"author": "Giulio Canti <giulio.canti@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/gcanti/fp-ts-local-storage/issues"
},
"homepage": "https://github.com/gcanti/fp-ts-local-storage",
"peerDependencies": {
"fp-ts": "^2.0.1"
},
"devDependencies": {
"@types/jest": "^22.2.2",
"@types/node": "8.0.19",
"docs-ts": "^0.3.4",
"dtslint": "^0.3.0",
"fp-ts": "^2.0.1",
"import-path-rewrite": "github:gcanti/import-path-rewrite",
"jest": "^24.8.0",
"prettier": "^1.18.2",
"rimraf": "^2.6.2",
"ts-jest": "^24.0.2",
"ts-node": "3.3.0",
"tslint": "^5.9.1",
"tslint-config-standard": "^7.0.0",
"typescript": "^3.5.3"
},
"tags": [
"fp-ts",
"localstorage",
"functional-programming",
"typescript"
],
"keywords": [
"fp-ts",
"localstorage",
"functional-programming",
"typescript"
]
}