flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
21
VISUALIZACION/node_modules/accessor-fn/LICENSE
generated
vendored
Executable file
21
VISUALIZACION/node_modules/accessor-fn/LICENSE
generated
vendored
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2017 Vasco Asturiano
|
||||
|
||||
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.
|
||||
48
VISUALIZACION/node_modules/accessor-fn/README.md
generated
vendored
Executable file
48
VISUALIZACION/node_modules/accessor-fn/README.md
generated
vendored
Executable file
|
|
@ -0,0 +1,48 @@
|
|||
Accessor function
|
||||
==============
|
||||
|
||||
[![NPM package][npm-img]][npm-url]
|
||||
[![Build Size][build-size-img]][build-size-url]
|
||||
[![NPM Downloads][npm-downloads-img]][npm-downloads-url]
|
||||
|
||||
A wrapper for property accessors supporting functions, property strings or constant values.
|
||||
|
||||
## Quick start
|
||||
|
||||
```js
|
||||
import accessorFn from 'accessor-fn';
|
||||
```
|
||||
or using a *script* tag
|
||||
```html
|
||||
<script src="//unpkg.com/accessor-fn"></script>
|
||||
```
|
||||
|
||||
## Usage example
|
||||
|
||||
Given an object
|
||||
```js
|
||||
const obj = {
|
||||
a: 1,
|
||||
b: 2
|
||||
}
|
||||
```
|
||||
|
||||
Use `accessorFn` to access object values via property strings or transformation functions:
|
||||
```js
|
||||
const aFn = accessorFn('a');
|
||||
aFn(obj); // 1
|
||||
|
||||
const sumFn = accessorFn(d => d.a + d.b);
|
||||
sumFn(obj); // 3
|
||||
|
||||
const constantFn = accessorFn(7);
|
||||
constantFn(obj); // 7
|
||||
```
|
||||
|
||||
|
||||
[npm-img]: https://img.shields.io/npm/v/accessor-fn
|
||||
[npm-url]: https://npmjs.org/package/accessor-fn
|
||||
[build-size-img]: https://img.shields.io/bundlephobia/minzip/accessor-fn
|
||||
[build-size-url]: https://bundlephobia.com/result?p=accessor-fn
|
||||
[npm-downloads-img]: https://img.shields.io/npm/dt/accessor-fn
|
||||
[npm-downloads-url]: https://www.npmtrends.com/accessor-fn
|
||||
7
VISUALIZACION/node_modules/accessor-fn/dist/accessor-fn.d.ts
generated
vendored
Executable file
7
VISUALIZACION/node_modules/accessor-fn/dist/accessor-fn.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
type AccessorFn = (item: any) => any;
|
||||
|
||||
declare function accessor(
|
||||
accessorParam: string | AccessorFn | any
|
||||
): AccessorFn;
|
||||
|
||||
export { accessor as default };
|
||||
21
VISUALIZACION/node_modules/accessor-fn/dist/accessor-fn.js
generated
vendored
Executable file
21
VISUALIZACION/node_modules/accessor-fn/dist/accessor-fn.js
generated
vendored
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
// Version 1.5.0 accessor-fn - https://github.com/vasturiano/accessor-fn
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.accessorFn = factory());
|
||||
})(this, (function () { 'use strict';
|
||||
|
||||
var index = (function (p) {
|
||||
return typeof p === 'function' ? p // fn
|
||||
: typeof p === 'string' ? function (obj) {
|
||||
return obj[p];
|
||||
} // property name
|
||||
: function (obj) {
|
||||
return p;
|
||||
};
|
||||
}); // constant
|
||||
|
||||
return index;
|
||||
|
||||
}));
|
||||
//# sourceMappingURL=accessor-fn.js.map
|
||||
1
VISUALIZACION/node_modules/accessor-fn/dist/accessor-fn.js.map
generated
vendored
Executable file
1
VISUALIZACION/node_modules/accessor-fn/dist/accessor-fn.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"accessor-fn.js","sources":["../src/index.js"],"sourcesContent":["export default p => typeof p === 'function'\n ? p // fn\n : typeof p === 'string'\n ? obj => obj[p] // property name\n : obj => p; // constant\n"],"names":["p","obj"],"mappings":";;;;;;;AAAA,gBAAA,CAAe,UAAAA,CAAC,EAAA;IAAA,EAAA,OAAI,OAAOA,CAAC,KAAK,UAAU,GACrCA,CAAC;IAAqB,IACtB,OAAOA,CAAC,KAAK,QAAQ,GACjB,UAAAC,GAAG,EAAA;QAAA,OAAIA,GAAG,CAACD,CAAC,CAAC,CAAA;OAAK;IAAA,IAClB,UAAAC,GAAG,EAAA;IAAA,IAAA,OAAID,CAAC,CAAA;IAAA,GAAA,CAAA;IAAA,CAAA,EAAC;;;;;;;;"}
|
||||
2
VISUALIZACION/node_modules/accessor-fn/dist/accessor-fn.min.js
generated
vendored
Executable file
2
VISUALIZACION/node_modules/accessor-fn/dist/accessor-fn.min.js
generated
vendored
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
// Version 1.5.0 accessor-fn - https://github.com/vasturiano/accessor-fn
|
||||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).accessorFn=n()}(this,(function(){"use strict";return function(e){return"function"==typeof e?e:"string"==typeof e?function(n){return n[e]}:function(n){return e}}}));
|
||||
11
VISUALIZACION/node_modules/accessor-fn/dist/accessor-fn.mjs
generated
vendored
Executable file
11
VISUALIZACION/node_modules/accessor-fn/dist/accessor-fn.mjs
generated
vendored
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
var index = (function (p) {
|
||||
return typeof p === 'function' ? p // fn
|
||||
: typeof p === 'string' ? function (obj) {
|
||||
return obj[p];
|
||||
} // property name
|
||||
: function (obj) {
|
||||
return p;
|
||||
};
|
||||
}); // constant
|
||||
|
||||
export { index as default };
|
||||
57
VISUALIZACION/node_modules/accessor-fn/package.json
generated
vendored
Executable file
57
VISUALIZACION/node_modules/accessor-fn/package.json
generated
vendored
Executable file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"name": "accessor-fn",
|
||||
"version": "1.5.0",
|
||||
"description": "A wrapper function for object accessor properties",
|
||||
"type": "module",
|
||||
"unpkg": "dist/accessor-fn.min.js",
|
||||
"main": "dist/accessor-fn.mjs",
|
||||
"module": "dist/accessor-fn.mjs",
|
||||
"types": "dist/accessor-fn.d.ts",
|
||||
"exports": {
|
||||
"umd": "./dist/accessor-fn.min.js",
|
||||
"default": "./dist/accessor-fn.mjs"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vasturiano/accessor-fn.git"
|
||||
},
|
||||
"keywords": [
|
||||
"accessor",
|
||||
"web",
|
||||
"component",
|
||||
"wrapper"
|
||||
],
|
||||
"author": {
|
||||
"name": "Vasco Asturiano",
|
||||
"url": "https://github.com/vasturiano"
|
||||
},
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vasturiano/accessor-fn/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vasturiano/accessor-fn",
|
||||
"scripts": {
|
||||
"build": "rimraf dist && rollup -c",
|
||||
"dev": "rollup -w -c",
|
||||
"prepare": "npm run build"
|
||||
},
|
||||
"files": [
|
||||
"dist/**/*"
|
||||
],
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.22.5",
|
||||
"@babel/preset-env": "^7.22.5",
|
||||
"@rollup/plugin-babel": "^6.0.3",
|
||||
"@rollup/plugin-commonjs": "^25.0.1",
|
||||
"@rollup/plugin-node-resolve": "^15.1.0",
|
||||
"@rollup/plugin-terser": "^0.4.3",
|
||||
"rimraf": "^5.0.1",
|
||||
"rollup": "^3.25.1",
|
||||
"rollup-plugin-dts": "^5.3.0",
|
||||
"typescript": "^5.1.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue