@qiwi/substrate-std
Advanced tools
Comparing version
{ | ||
"git": { | ||
"commitId": "2bad474f1c9956fd4beccb432b329538bcffe34b", | ||
"commitId": "d47ab598f0be4f853f56aa5d9feaf583be38a539", | ||
"repoUrl": "https://github.com/qiwi/substrate.git", | ||
"repoName": "qiwi/substrate" | ||
}, | ||
"date": "2021-02-28T12:59:26.436Z" | ||
"date": "2021-03-30T14:28:51.520Z" | ||
} |
@@ -0,1 +1,16 @@ | ||
# @qiwi/substrate-std [1.3.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-std@1.2.4...@qiwi/substrate-std@1.3.0) (2021-03-30) | ||
### Features | ||
* update IDeviceInfo ([#414](https://github.com/qiwi/substrate/issues/414)) ([d47ab59](https://github.com/qiwi/substrate/commit/d47ab598f0be4f853f56aa5d9feaf583be38a539)) | ||
### Dependencies | ||
* **@qiwi/substrate-types:** upgraded to 1.49.0 | ||
## @qiwi/substrate-std [1.2.4](https://github.com/qiwi/substrate/compare/@qiwi/substrate-std@1.2.3...@qiwi/substrate-std@1.2.4) (2021-02-28) | ||
@@ -2,0 +17,0 @@ |
{ | ||
"name": "@qiwi/substrate-std", | ||
"version": "1.2.4", | ||
"version": "1.3.0", | ||
"main": "target/es5/index.js", | ||
@@ -45,12 +45,12 @@ "source": "target/ts/index.ts", | ||
"@types/parsimmon": "1.10.6", | ||
"@types/underscore": "1.10.24", | ||
"@types/underscore": "1.11.0", | ||
"bluebird": "3.7.2", | ||
"conf": "9.0.2", | ||
"config": "3.3.4", | ||
"config": "3.3.6", | ||
"lodash": "4.17.21", | ||
"underscore": "1.12.0" | ||
"underscore": "1.12.1" | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.1.0", | ||
"@qiwi/substrate-types": "1.48.0" | ||
"@qiwi/substrate-types": "1.49.0" | ||
}, | ||
@@ -57,0 +57,0 @@ "peerDependencies": {}, |
@@ -11,3 +11,3 @@ /** @module @qiwi/substrate-std */ | ||
private _storage: Array<T> | ||
constructor (...args: Array<T>) { | ||
constructor(...args: Array<T>) { | ||
// super(...args) | ||
@@ -17,7 +17,7 @@ this._storage = [...args] | ||
get (index: number | string): T | undefined { | ||
get(index: number | string): T | undefined { | ||
return this._storage[+index] | ||
} | ||
push (...items: Array<T>): T { | ||
push(...items: Array<T>): T { | ||
this._storage.push(...items) | ||
@@ -28,11 +28,11 @@ | ||
pop (): T | undefined { | ||
pop(): T | undefined { | ||
return this._storage.pop() | ||
} | ||
shift (): T | undefined { | ||
shift(): T | undefined { | ||
return this._storage.shift() | ||
} | ||
unshift (...items: Array<T>): T { | ||
unshift(...items: Array<T>): T { | ||
this._storage.unshift(...items) | ||
@@ -43,7 +43,7 @@ | ||
get size (): number { | ||
get size(): number { | ||
return this._storage.length | ||
} | ||
remove (index: number | string): T { | ||
remove(index: number | string): T { | ||
const idx = +index | ||
@@ -57,23 +57,23 @@ const found = this._storage[+idx] | ||
last (): any { | ||
last(): any { | ||
return this._storage[this.size - 1] | ||
} | ||
first (): any { | ||
first(): any { | ||
return this._storage[0] | ||
} | ||
toArray (): Array<any> { | ||
toArray(): Array<any> { | ||
return [...this._storage] | ||
} | ||
clear (): void { | ||
clear(): void { | ||
this._storage.length = 0 | ||
} | ||
indexOf (item: T): number { | ||
indexOf(item: T): number { | ||
return this._storage.indexOf(item) | ||
} | ||
add (index: number | string, item: T): T { | ||
add(index: number | string, item: T): T { | ||
this._storage[+index] = item | ||
@@ -84,5 +84,5 @@ | ||
isEmpty (): boolean { | ||
isEmpty(): boolean { | ||
return this.size !== 0 | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
// Generated by dts-bundle v0.7.4 | ||
// Generated by dts-bundle v0.7.5 | ||
// Dependencies for this module: | ||
@@ -3,0 +3,0 @@ // ../../../../../../../@qiwi/substrate-types |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
31748
1.22%+ Added
- Removed
Updated