🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

todash

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

todash - npm Package Compare versions

Comparing version
1.0.2
to
1.0.3
+45
.github/workflows/nodejs.yml
name: CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Checkout branch master
uses: actions/checkout@v2
with:
ref: master
path: master-branch
- name: Checkout branch gh-pages
uses: actions/checkout@v2
with:
ref: gh-pages
path: gh-pages-branch
- name: Build docs
run: |
cd ${GITHUB_WORKSPACE}/master-branch/docs
npm i
npm run build
cp -rf ./public/ /tmp/todash-docs
ls -al /tmp/todash-docs
- name: Deploy docs
run: |
cd ${GITHUB_WORKSPACE}/gh-pages-branch
git rm -rf *
cp -r /tmp/todash-docs/* ./
git config --local user.name github-actions
git config --local user.email github-actions@github.com
git add .
git commit -m "deploy docs"
git push
+12
-4

@@ -41,2 +41,14 @@ import * as Utils from './utils';

/**
* 将 union 转化为 元组
*/
type Union2Tuple<T> = Tuple.Union2Tuple<T>;
/**
* 从对象中删除指定值类型的字段
*/
type OmitBy<T, V> = Utils.OmitBy<T, V>;
/**
* 从对象中删除非指定值类型的字段
*/
type FilterBy<T, V> = Utils.FilterBy<T, V>;
/**
* 返回元组的第一项

@@ -73,7 +85,3 @@ */

type TupleByConcat<T extends any[], E extends any[]> = Tuple.TupleByConcat<T, E>;
/**
* 将 union 转化为 元组
*/
type Union2Tuple<T> = Tuple.Union2Tuple<T>;
}
export default Todash;

@@ -42,4 +42,16 @@ /**

/**
* 从对象中删除指定值类型的字段
*/
export declare type OmitBy<T, V> = Omit<T, {
[K in keyof T]: T[K] extends V ? K : never;
}[keyof T]>;
/**
* 从对象中删除非指定值类型的字段
*/
export declare type FilterBy<T, V> = Omit<T, {
[K in keyof T]: T[K] extends V ? never : K;
}[keyof T]>;
/**
* 确保指定类型一定是 数组/元组
*/
export declare type EnsureArray<T> = T extends any[] ? T : [];
{
"name": "todash",
"version": "1.0.2",
"version": "1.0.3",
"description": "Todash 是一个类型推导工具库,旨在帮助你快速方便的编写具备类型推导的 TypeScript 代码。",

@@ -5,0 +5,0 @@ "main": "index.js",