Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

data-footstone

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-footstone - npm Package Compare versions

Comparing version 0.1.1-alpha.1 to 0.1.1-alpha.2

tscDist/typings/stack.js

3

dist_cjs/stack.js

@@ -12,5 +12,6 @@ 'use strict';

this.items.push(...p);
return this.size();
}
pop() {
this.items.pop();
return this.items.pop();
}

@@ -17,0 +18,0 @@ peek() {

@@ -10,5 +10,6 @@ class Stack {

this.items.push(...p);
return this.size();
}
pop() {
this.items.pop();
return this.items.pop();
}

@@ -15,0 +16,0 @@ peek() {

{
"name": "data-footstone",
"version": "0.1.1-alpha.1",
"version": "0.1.1-alpha.2",
"description": "data structure",

@@ -24,3 +24,3 @@ "author": "feigebaobei <18515195415@163.com>",

"scripts": {
"test": "node ./__tests__/data-footstone.test.js",
"test": "jest",
"jest": "jest",

@@ -67,7 +67,16 @@ "tsc": "tsc",

"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.5",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@jest/globals": "^29.3.1",
"@types/jest": "^29.2.4",
"@types/node": "^14.11.2",
"babel-jest": "^29.3.1",
"jest": "^29.3.1",
"prettier": "2.8.1",
"ts-jest": "^29.0.3",
"typescript": "~4.7.0"
},
"gitHead": "8d143c73f6f6312aa344ff767941318947a0a331"
"gitHead": "c9936a8ec2cd0eeae10975ef255f26dee324e5e9"
}

@@ -5,9 +5,11 @@ # data-footstone

> TODO: description
> 使用ts编写基本的数据结构。
### feature
- feature0
- feature1
- feature2
- stack
- queue
- hashMap
- tree
- graph 简单

@@ -20,24 +22,16 @@ ## install

同`./demo.md`
```js
const data-footstone = require('data-footstone');
// or
// import data-footstone from 'data-footstone';
// TODO: DEMONSTRATE API
import {Stack} from 'data-footstone'
let s = new Stack()
s.push(1,2,3,4)
s.toArray() // [1,2,3,4]
s.pop() // 4
s.pop() // 3
s.peek() // 2
s.isEmpty() // false
s.clear() // 清空栈
```
## configuration
默认配置文件:`path/to/file.json`。
<!-- prettier-ignore-start -->
|key|description|type|default|enum|demo|||
|-|-|-|-|-|-|-|-|
|||||||||
|||||||||
|||||||||
<!-- prettier-ignore-end -->
## api
详见[官网](https://lixiaodan.netlify.app/jspackages/data-footstone)

@@ -52,27 +46,6 @@ <!-- prettier-ignore-start -->

`data-footstone.fn(param, first: string, second: boolean = true) => void`
description
`data-footstone.fn(param, [options: {a: string, b?: number}])`
description
## principle
此包的处理逻辑。
### uml
```
```
## todo
### 心得
数据结构要求越多越难实现,反之成立。
数据结构越灵活越难实现,反之成立。
> 未来迭代计划。
> 未来迭代计划。
> 未来迭代计划。

@@ -10,5 +10,6 @@ class Stack {

this.items.push(...p);
return this.size();
}
pop() {
this.items.pop();
return this.items.pop();
}

@@ -29,3 +30,2 @@ peek() {

}
// export default Stack
export { Stack };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc