analyze-action
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,2 +0,2 @@ | ||
export declare type ACTION = { | ||
export declare type ACTION_TYPE = { | ||
owner: string; | ||
@@ -6,8 +6,9 @@ repo: string; | ||
}; | ||
export declare type RESULT_TYPE = { | ||
name: string; | ||
actions: ACTION_TYPE[]; | ||
}; | ||
declare const _default: { | ||
analyzeActionYml: (param: string, countOfficial?: boolean) => { | ||
name: string; | ||
actions: never[]; | ||
}; | ||
analyzeActionYml: (param: string, countOfficial?: boolean) => RESULT_TYPE; | ||
}; | ||
export default _default; |
@@ -25,3 +25,2 @@ var ifCount = function ifCount(owner, countOfficial) { | ||
}; | ||
var arrTemp = []; | ||
params.forEach(function (item) { | ||
@@ -39,3 +38,3 @@ if (item && item.startsWith('name:')) { | ||
if (actionArr.length === 2 && ifCount(actionArr[0].trim(), countOfficial)) { | ||
arrTemp.push({ | ||
result.actions.push({ | ||
owner: actionArr[0].trim(), | ||
@@ -42,0 +41,0 @@ repo: actionArr[1].trim(), |
@@ -27,3 +27,2 @@ 'use strict'; | ||
}; | ||
var arrTemp = []; | ||
params.forEach(function (item) { | ||
@@ -41,3 +40,3 @@ if (item && item.startsWith('name:')) { | ||
if (actionArr.length === 2 && ifCount(actionArr[0].trim(), countOfficial)) { | ||
arrTemp.push({ | ||
result.actions.push({ | ||
owner: actionArr[0].trim(), | ||
@@ -44,0 +43,0 @@ repo: actionArr[1].trim(), |
{ | ||
"private": false, | ||
"name": "analyze-action", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "dist/index.js", | ||
@@ -11,3 +11,6 @@ "module": "dist/index.esm.js", | ||
"format": "prettier --write src/*.ts", | ||
"lint": "eslint src/*.ts" | ||
"format-check": "prettier --check src/*.ts", | ||
"lint": "eslint src/*.ts", | ||
"prepublishOnly": "npm run build && np --yolo --no-publish", | ||
"all": "yarn format-check && yarn lint && yarn build" | ||
}, | ||
@@ -40,4 +43,5 @@ "author": "xrkffgg", | ||
"eslint": "^7.18.0", | ||
"father": "^2.30.1", | ||
"father-build": "^1.19.1" | ||
"father-build": "^1.19.1", | ||
"np": "^7.2.0", | ||
"prettier": "^2.2.1" | ||
}, | ||
@@ -44,0 +48,0 @@ "dependencies": { |
@@ -5,4 +5,8 @@ # Analyze Action | ||
## Usage | ||
[![npm](https://img.shields.io/npm/v/analyze-action?style=flat-square&color=orange)](https://www.npmjs.com/package/analyze-action) | ||
![](https://img.shields.io/github/workflow/status/actions-cool/analyze-action/CI?style=flat-square) | ||
![](https://img.shields.io/npm/l/analyze-action?style=flat-square&color=blue) | ||
## 🚀 Usage | ||
```js | ||
@@ -16,10 +20,8 @@ const { analyzeActionYml } = require('analyze-action'); | ||
## API | ||
## 🎁 API | ||
- analyzeActionYml | ||
- [analyzeActionYml](#analyzeactionyml) `1.0.0` | ||
### analyzeActionYml | ||
`1.0.0` | ||
```js | ||
@@ -26,0 +28,0 @@ analyzeActionYml(data, countOfficial); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6243
50
5
102