vue3-form-validation
Advanced tools
Comparing version 3.3.6 to 4.0.0
@@ -1,1 +0,1 @@ | ||
export declare function getResultFormData(transformedFormData: any): {}; | ||
export declare function getResultFormData(transformedFormData: any): any; |
@@ -13,3 +13,3 @@ import { watch } from 'vue'; | ||
} | ||
}); | ||
}, { deep: true }); | ||
return { | ||
@@ -16,0 +16,0 @@ $uid: uid, |
@@ -5,8 +5,7 @@ export declare class PromiseCancel<T = unknown> { | ||
private reject; | ||
private raceHasBeenCalled; | ||
constructor(); | ||
cancelResolve(value: T | PromiseLike<T>): void; | ||
cancelReject(reason?: any): void; | ||
race<TRace extends readonly Promise<any>[]>(...promises: [...TRace]): Promise<T | ([...TRace][number] extends PromiseLike<infer U> ? U : [...TRace][number])>; | ||
race<Ps extends readonly Promise<any>[]>(...promises: [...Ps]): Promise<T | ([...Ps][number] extends PromiseLike<infer U> ? U : [...Ps][number])>; | ||
private assign; | ||
} |
export class PromiseCancel { | ||
constructor() { | ||
this.raceHasBeenCalled = false; | ||
this.assign(); | ||
} | ||
cancelResolve(value) { | ||
if (this.raceHasBeenCalled) { | ||
this.resolve(value); | ||
this.assign(); | ||
} | ||
this.resolve(value); | ||
this.assign(); | ||
} | ||
cancelReject(reason) { | ||
if (this.raceHasBeenCalled) { | ||
this.reject(reason); | ||
this.assign(); | ||
} | ||
this.reject(reason); | ||
this.assign(); | ||
} | ||
race(...promises) { | ||
this.raceHasBeenCalled = true; | ||
return Promise.race([this.promise, ...promises]); | ||
@@ -21,0 +15,0 @@ } |
{ | ||
"name": "vue3-form-validation", | ||
"version": "3.3.6", | ||
"version": "4.0.0", | ||
"description": "Vue composition function for Form Validation", | ||
@@ -9,7 +9,5 @@ "author": { | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/JensDll/vue3-form-validation" | ||
}, | ||
"main": "dist/index.js", | ||
"type": "module", | ||
"exports": "./dist/index.js", | ||
"main": "./dist/index.js", | ||
"types": "dist/index.d.ts", | ||
@@ -21,2 +19,6 @@ "files": [ | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/JensDll/vue3-form-validation" | ||
}, | ||
"keywords": [ | ||
@@ -30,59 +32,5 @@ "vue", | ||
], | ||
"scripts": { | ||
"build": "npx eslint --rule=\"no-console:error\" --max-warnings 0 --fix-dry-run main && npx tsc --project ./main", | ||
"test": "jest --config ./main/jest.config.ts", | ||
"test-dts": "npx tsd", | ||
"test-all": "npm run build && npm run test && npm run test-dts", | ||
"dev": "vite", | ||
"_postinstall": "husky install", | ||
"prepublishOnly": "pinst --disable", | ||
"postpublish": "pinst --enable" | ||
}, | ||
"devDependencies": { | ||
"@heroicons/vue": "^1.0.1", | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "^15.6.1", | ||
"@typescript-eslint/eslint-plugin": "^4.25.0", | ||
"@typescript-eslint/parser": "^4.25.0", | ||
"@vitejs/plugin-vue": "^1.2.2", | ||
"@vue/compiler-sfc": "^3.0.11", | ||
"autoprefixer": "^10.2.6", | ||
"eslint": "^7.27.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-vue": "^7.9.0", | ||
"husky": "^6.0.0", | ||
"jest": "^27.0.1", | ||
"lint-staged": "^11.0.0", | ||
"pinst": "^2.1.6", | ||
"postcss": "^8.3.0", | ||
"postcss-nesting": "^8.0.1", | ||
"prettier": "^2.3.0", | ||
"tailwindcss": "^2.1.2", | ||
"ts-jest": "^27.0.1", | ||
"ts-node": "^10.0.0", | ||
"tsd": "^0.16.0", | ||
"typescript": "^4.3.2", | ||
"vite": "^2.3.4", | ||
"vue": "^3.0.7", | ||
"vue-router": "^4.0.4" | ||
}, | ||
"peerDependencies": { | ||
"vue": "3.x" | ||
}, | ||
"prettier": { | ||
"singleQuote": true, | ||
"arrowParens": "avoid", | ||
"trailingComma": "none", | ||
"endOfLine": "crlf" | ||
}, | ||
"tsd": { | ||
"directory": "main/test-dts", | ||
"compilerOptions": { | ||
"lib": [ | ||
"DOM", | ||
"ES2020" | ||
], | ||
"strict": true | ||
} | ||
} | ||
} |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
0
Yes
32654
45
880
2
0