feat: estructura base OpenSpec + Skills + arquitectura limpia Capacitor+Dextie
This commit is contained in:
179
node_modules/@ionic/utils-stream/CHANGELOG.md
generated
vendored
Normal file
179
node_modules/@ionic/utils-stream/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,179 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [3.1.5](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@3.1.4...@ionic/utils-stream@3.1.5) (2020-08-28)
|
||||
|
||||
**Note:** Version bump only for package @ionic/utils-stream
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.4](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@3.1.3...@ionic/utils-stream@3.1.4) (2020-08-25)
|
||||
|
||||
**Note:** Version bump only for package @ionic/utils-stream
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.3](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@3.1.2...@ionic/utils-stream@3.1.3) (2020-05-12)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* pin tslib to avoid "Cannot set property pathExists" error ([689e1f0](https://github.com/ionic-team/ionic-cli/commit/689e1f038b907356ef855a067a76d4822e7072a8))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.2](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@3.1.1...@ionic/utils-stream@3.1.2) (2020-05-06)
|
||||
|
||||
**Note:** Version bump only for package @ionic/utils-stream
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.1](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@3.1.0...@ionic/utils-stream@3.1.1) (2020-03-03)
|
||||
|
||||
**Note:** Version bump only for package @ionic/utils-stream
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# 3.1.0 (2020-02-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **start:** add new list starter option ([#4315](https://github.com/ionic-team/ionic-cli/issues/4315)) ([1df44c1](https://github.com/ionic-team/ionic-cli/commit/1df44c1591f37b89f2b672857740edd6cb2aea67))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.2](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@3.0.1...@ionic/utils-stream@3.0.2) (2020-02-10)
|
||||
|
||||
**Note:** Version bump only for package @ionic/utils-stream
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.1](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@3.0.0...@ionic/utils-stream@3.0.1) (2020-02-03)
|
||||
|
||||
**Note:** Version bump only for package @ionic/utils-stream
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [3.0.0](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@2.0.5...@ionic/utils-stream@3.0.0) (2020-01-25)
|
||||
|
||||
|
||||
### chore
|
||||
|
||||
* require Node 10 ([5a47874](https://github.com/ionic-team/ionic-cli/commit/5a478746c074207b6dc96aa8771f04a606deb1ef))
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* A minimum of Node.js 10.3.0 is required.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [2.0.5](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@2.0.4...@ionic/utils-stream@2.0.5) (2019-12-05)
|
||||
|
||||
**Note:** Version bump only for package @ionic/utils-stream
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [2.0.4](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@2.0.3...@ionic/utils-stream@2.0.4) (2019-09-18)
|
||||
|
||||
**Note:** Version bump only for package @ionic/utils-stream
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [2.0.3](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@2.0.2...@ionic/utils-stream@2.0.3) (2019-08-23)
|
||||
|
||||
**Note:** Version bump only for package @ionic/utils-stream
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [2.0.2](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@2.0.1...@ionic/utils-stream@2.0.2) (2019-08-14)
|
||||
|
||||
**Note:** Version bump only for package @ionic/utils-stream
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [2.0.1](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@2.0.0...@ionic/utils-stream@2.0.1) (2019-08-07)
|
||||
|
||||
**Note:** Version bump only for package @ionic/utils-stream
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@1.0.1...@ionic/utils-stream@2.0.0) (2019-06-10)
|
||||
|
||||
|
||||
### Code Refactoring
|
||||
|
||||
* remove combineStreams ([93f4ff2](https://github.com/ionic-team/ionic-cli/commit/93f4ff2))
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* `combineStreams` has been removed. Use
|
||||
`stream-combiner2` directly.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.1](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@1.0.0...@ionic/utils-stream@1.0.1) (2019-06-05)
|
||||
|
||||
**Note:** Version bump only for package @ionic/utils-stream
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [1.0.0](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-stream@0.0.1...@ionic/utils-stream@1.0.0) (2019-05-29)
|
||||
|
||||
|
||||
### chore
|
||||
|
||||
* require Node 8 ([5670e68](https://github.com/ionic-team/ionic-cli/commit/5670e68))
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* A minimum of Node.js 8.9.4 is required.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="0.0.1"></a>
|
||||
## 0.0.1 (2019-02-27)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @ionic/utils-stream
|
||||
21
node_modules/@ionic/utils-stream/LICENSE
generated
vendored
Normal file
21
node_modules/@ionic/utils-stream/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2017 Drifty Co
|
||||
|
||||
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.
|
||||
1
node_modules/@ionic/utils-stream/README.md
generated
vendored
Normal file
1
node_modules/@ionic/utils-stream/README.md
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
# @ionic/utils-stream
|
||||
38
node_modules/@ionic/utils-stream/dist/index.d.ts
generated
vendored
Normal file
38
node_modules/@ionic/utils-stream/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
/// <reference types="node" />
|
||||
import { Readable, ReadableOptions, Writable, WritableOptions } from 'stream';
|
||||
export declare class NullStream extends Writable {
|
||||
_write(chunk: any, encoding: string, callback: () => void): void;
|
||||
}
|
||||
export interface ReadableStreamBufferOptions extends ReadableOptions {
|
||||
chunkSize?: number;
|
||||
allocSize?: number;
|
||||
growSize?: number;
|
||||
}
|
||||
export declare class ReadableStreamBuffer extends Readable {
|
||||
protected buffer: Buffer;
|
||||
protected _size: number;
|
||||
protected _stopped: boolean;
|
||||
protected chunkSize: number;
|
||||
protected growSize: number;
|
||||
constructor(opts?: ReadableStreamBufferOptions);
|
||||
get size(): number;
|
||||
get stopped(): boolean;
|
||||
_read(): void;
|
||||
feed(data: Buffer | string, encoding?: string): void;
|
||||
stop(): void;
|
||||
protected _send(): void;
|
||||
}
|
||||
export interface WritableStreamBufferOptions extends WritableOptions {
|
||||
allocSize?: number;
|
||||
growSize?: number;
|
||||
}
|
||||
export declare class WritableStreamBuffer extends Writable {
|
||||
protected buffer: Buffer;
|
||||
protected _size: number;
|
||||
protected growSize: number;
|
||||
constructor(opts?: WritableStreamBufferOptions);
|
||||
get size(): number;
|
||||
_write(chunk: any, encoding: string, callback: () => void): void;
|
||||
consume(bytes?: number): Buffer;
|
||||
}
|
||||
export declare function growBufferForAppendedData(buf: Buffer, actualsize: number, appendsize: number): Buffer;
|
||||
108
node_modules/@ionic/utils-stream/dist/index.js
generated
vendored
Normal file
108
node_modules/@ionic/utils-stream/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.growBufferForAppendedData = exports.WritableStreamBuffer = exports.ReadableStreamBuffer = exports.NullStream = void 0;
|
||||
const stream_1 = require("stream");
|
||||
const DEFAULT_CHUNK_SIZE = 4;
|
||||
const DEFAULT_ALLOC_SIZE = 32;
|
||||
const DEFAULT_GROW_SIZE = 16;
|
||||
class NullStream extends stream_1.Writable {
|
||||
_write(chunk, encoding, callback) {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
exports.NullStream = NullStream;
|
||||
class ReadableStreamBuffer extends stream_1.Readable {
|
||||
constructor(opts) {
|
||||
super(opts);
|
||||
this._size = 0;
|
||||
this._stopped = false;
|
||||
this.buffer = Buffer.alloc(opts && opts.allocSize ? opts.allocSize : DEFAULT_ALLOC_SIZE);
|
||||
this.chunkSize = opts && opts.chunkSize ? opts.chunkSize : DEFAULT_CHUNK_SIZE;
|
||||
this.growSize = opts && opts.growSize ? opts.growSize : DEFAULT_GROW_SIZE;
|
||||
}
|
||||
get size() {
|
||||
return this._size;
|
||||
}
|
||||
get stopped() {
|
||||
return this._stopped;
|
||||
}
|
||||
_read() {
|
||||
this._send();
|
||||
}
|
||||
feed(data, encoding = 'utf8') {
|
||||
if (this._stopped) {
|
||||
throw new Error('ReadableStreamBuffer is stopped. Can no longer feed.');
|
||||
}
|
||||
const datasize = typeof data === 'string' ? Buffer.byteLength(data) : data.length;
|
||||
this.buffer = growBufferForAppendedData(this.buffer, this._size, Math.ceil(datasize / this.growSize) * this.growSize);
|
||||
if (typeof data === 'string') {
|
||||
this.buffer.write(data, this._size, datasize, encoding);
|
||||
}
|
||||
else {
|
||||
this.buffer.copy(data, this._size, 0);
|
||||
}
|
||||
this._size += datasize;
|
||||
}
|
||||
stop() {
|
||||
if (this._stopped) {
|
||||
return;
|
||||
}
|
||||
this._stopped = true;
|
||||
if (this._size === 0) {
|
||||
this.push(null);
|
||||
}
|
||||
}
|
||||
_send() {
|
||||
const chunkSize = Math.min(this.chunkSize, this._size);
|
||||
let done = false;
|
||||
if (chunkSize > 0) {
|
||||
const chunk = Buffer.alloc(chunkSize);
|
||||
this.buffer.copy(chunk, 0, 0, chunkSize);
|
||||
done = !this.push(chunk);
|
||||
this.buffer.copy(this.buffer, 0, chunkSize, this._size);
|
||||
this._size -= chunkSize;
|
||||
}
|
||||
if (this._size === 0 && this._stopped) {
|
||||
this.push(null);
|
||||
}
|
||||
if (!done) {
|
||||
setTimeout(() => this._send(), 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.ReadableStreamBuffer = ReadableStreamBuffer;
|
||||
class WritableStreamBuffer extends stream_1.Writable {
|
||||
constructor(opts) {
|
||||
super(opts);
|
||||
this._size = 0;
|
||||
this.buffer = Buffer.alloc(opts && opts.allocSize ? opts.allocSize : DEFAULT_ALLOC_SIZE);
|
||||
this.growSize = opts && opts.growSize ? opts.growSize : DEFAULT_GROW_SIZE;
|
||||
}
|
||||
get size() {
|
||||
return this._size;
|
||||
}
|
||||
_write(chunk, encoding, callback) {
|
||||
this.buffer = growBufferForAppendedData(this.buffer, this._size, Math.ceil(chunk.length / this.growSize) * this.growSize);
|
||||
chunk.copy(this.buffer, this._size, 0);
|
||||
this._size += chunk.length;
|
||||
callback();
|
||||
}
|
||||
consume(bytes) {
|
||||
bytes = typeof bytes === 'number' ? bytes : this._size;
|
||||
const data = Buffer.alloc(bytes);
|
||||
this.buffer.copy(data, 0, 0, data.length);
|
||||
this.buffer.copy(this.buffer, 0, data.length);
|
||||
this._size -= data.length;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
exports.WritableStreamBuffer = WritableStreamBuffer;
|
||||
function growBufferForAppendedData(buf, actualsize, appendsize) {
|
||||
if ((buf.length - actualsize) >= appendsize) {
|
||||
return buf;
|
||||
}
|
||||
const newbuffer = Buffer.alloc(buf.length + appendsize);
|
||||
buf.copy(newbuffer, 0, 0, actualsize);
|
||||
return newbuffer;
|
||||
}
|
||||
exports.growBufferForAppendedData = growBufferForAppendedData;
|
||||
50
node_modules/@ionic/utils-stream/package.json
generated
vendored
Normal file
50
node_modules/@ionic/utils-stream/package.json
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"name": "@ionic/utils-stream",
|
||||
"version": "3.1.5",
|
||||
"description": "Stream utils for NodeJS",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"homepage": "https://ionicframework.com/",
|
||||
"author": "Ionic Team <hi@ionic.io> (https://ionic.io)",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10.3.0"
|
||||
},
|
||||
"files": [
|
||||
"dist/",
|
||||
"LICENSE",
|
||||
"README.md"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ionic-team/ionic-cli.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ionic-team/ionic-cli/issues"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf dist",
|
||||
"lint": "true",
|
||||
"build": "npm run clean && tsc",
|
||||
"watch": "tsc -w --preserveWatchOutput",
|
||||
"test": "jest --maxWorkers=4",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": "^4.0.0",
|
||||
"tslib": "^2.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/debug": "^4.1.1",
|
||||
"@types/jest": "^26.0.10",
|
||||
"@types/node": "~10.17.13",
|
||||
"jest": "^26.4.2",
|
||||
"jest-cli": "^26.0.1",
|
||||
"lint-staged": "^10.0.2",
|
||||
"rimraf": "^3.0.0",
|
||||
"stream-combiner2": "^1.1.1",
|
||||
"ts-jest": "~26.3.0",
|
||||
"typescript": "~4.0.2"
|
||||
},
|
||||
"gitHead": "f85e6db0eba47c8d97181b52d69c687c100f93fb"
|
||||
}
|
||||
Reference in New Issue
Block a user