New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aurelia-validation

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aurelia-validation - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

yarn.lock

2

bower.json
{
"name": "aurelia-validation",
"version": "1.1.1",
"version": "1.1.2",
"description": "Validation for Aurelia applications",

@@ -5,0 +5,0 @@ "keywords": [

@@ -1,4 +0,3 @@

import { Rule, RuleProperty } from './rule';
import { Rule, RuleProperty, ValidationDisplayNameAccessor } from './rule';
import { ValidationMessageParser } from './validation-message-parser';
import { ValidationDisplayNameAccessor } from './rule';
import { PropertyAccessorParser, PropertyAccessor } from '../property-accessor-parser';

@@ -5,0 +4,0 @@ /**

@@ -394,3 +394,3 @@ define(["require", "exports", "./validator", "./validate-trigger", "./property-info", "./validate-result", "./property-accessor-parser", "./validate-event"], function (require, exports, validator_1, validate_trigger_1, property_info_1, validate_result_1, property_accessor_parser_1, validate_event_1) {

}
var rules = [rule];
var rules = [[rule]];
this.validate({ object: object, propertyName: propertyName, rules: rules });

@@ -397,0 +397,0 @@ }

@@ -1,4 +0,3 @@

import { Rule, RuleProperty } from './rule';
import { Rule, RuleProperty, ValidationDisplayNameAccessor } from './rule';
import { ValidationMessageParser } from './validation-message-parser';
import { ValidationDisplayNameAccessor } from './rule';
import { PropertyAccessorParser, PropertyAccessor } from '../property-accessor-parser';

@@ -5,0 +4,0 @@ /**

@@ -399,3 +399,3 @@ "use strict";

}
var rules = [rule];
var rules = [[rule]];
this.validate({ object: object, propertyName: propertyName, rules: rules });

@@ -402,0 +402,0 @@ }

@@ -1,4 +0,3 @@

import { Rule, RuleProperty } from './rule';
import { Rule, RuleProperty, ValidationDisplayNameAccessor } from './rule';
import { ValidationMessageParser } from './validation-message-parser';
import { ValidationDisplayNameAccessor } from './rule';
import { PropertyAccessorParser, PropertyAccessor } from '../property-accessor-parser';

@@ -5,0 +4,0 @@ /**

@@ -378,3 +378,3 @@ import { Validator } from './validator';

}
const rules = [rule];
const rules = [[rule]];
this.validate({ object, propertyName, rules });

@@ -381,0 +381,0 @@ }

@@ -1,4 +0,3 @@

import { Rule, RuleProperty } from './rule';
import { Rule, RuleProperty, ValidationDisplayNameAccessor } from './rule';
import { ValidationMessageParser } from './validation-message-parser';
import { ValidationDisplayNameAccessor } from './rule';
import { PropertyAccessorParser, PropertyAccessor } from '../property-accessor-parser';

@@ -5,0 +4,0 @@ /**

@@ -378,3 +378,3 @@ import { Validator } from './validator';

}
const rules = [rule];
const rules = [[rule]];
this.validate({ object, propertyName, rules });

@@ -381,0 +381,0 @@ }

@@ -1,4 +0,3 @@

import { Rule, RuleProperty } from './rule';
import { Rule, RuleProperty, ValidationDisplayNameAccessor } from './rule';
import { ValidationMessageParser } from './validation-message-parser';
import { ValidationDisplayNameAccessor } from './rule';
import { PropertyAccessorParser, PropertyAccessor } from '../property-accessor-parser';

@@ -5,0 +4,0 @@ /**

@@ -397,3 +397,3 @@ import { Validator } from './validator';

}
var rules = [rule];
var rules = [[rule]];
this.validate({ object: object, propertyName: propertyName, rules: rules });

@@ -400,0 +400,0 @@ }

@@ -1,4 +0,3 @@

import { Rule, RuleProperty } from './rule';
import { Rule, RuleProperty, ValidationDisplayNameAccessor } from './rule';
import { ValidationMessageParser } from './validation-message-parser';
import { ValidationDisplayNameAccessor } from './rule';
import { PropertyAccessorParser, PropertyAccessor } from '../property-accessor-parser';

@@ -5,0 +4,0 @@ /**

@@ -412,3 +412,3 @@ System.register(["./validator", "./validate-trigger", "./property-info", "./validate-result", "./property-accessor-parser", "./validate-event"], function (exports_1, context_1) {

}
var rules = [rule];
var rules = [[rule]];
this.validate({ object: object, propertyName: propertyName, rules: rules });

@@ -415,0 +415,0 @@ }

@@ -238,3 +238,3 @@ ---

const translation = i18next.t(key);
return this.parser.parseMessage(translation);
return this.parser.parse(translation);
};

@@ -921,3 +921,3 @@ </source-code>

const translation = i18n.tr(`errorMessages.${key}`);
return this.parser.parseMessage(translation);
return this.parser.parse(translation);
};

@@ -924,0 +924,0 @@

@@ -0,1 +1,11 @@

<a name="1.1.2"></a>
## [1.1.2](https://github.com/aurelia/validation/compare/1.1.1...v1.1.2) (2017-10-02)
### Bug Fixes
* **validation-controller:** fix revalidateErrors method ([bcf8a46](https://github.com/aurelia/validation/commit/bcf8a46)), closes [#456](https://github.com/aurelia/validation/issues/456)
<a name="1.1.0"></a>

@@ -2,0 +12,0 @@ # [1.1.0](https://github.com/aurelia/validation/compare/1.0.0...v1.1.0) (2017-06-27)

{
"name": "aurelia-validation",
"version": "1.1.1",
"version": "1.1.2",
"description": "Validation for Aurelia applications",

@@ -90,24 +90,24 @@ "keywords": [

"devDependencies": {
"@types/node": "^7.0.31",
"@types/node": "^8.0.20",
"aurelia-bootstrapper": "^2.1.1",
"aurelia-pal-browser": "^1.2.1",
"aurelia-pal-nodejs": "^1.0.0-beta.1.0.0",
"aurelia-polyfills": "^1.2.1",
"aurelia-polyfills": "^1.2.2",
"aurelia-testing": "^1.0.0-beta.3.0.1",
"concurrently": "^3.4.0",
"conventional-changelog-cli": "^1.3.1",
"concurrently": "^3.5.0",
"conventional-changelog-cli": "^1.3.2",
"copyfiles": "^1.2.0",
"cross-env": "^5.0.1",
"jasmine-core": "^2.6.3",
"cross-env": "^5.0.5",
"jasmine-core": "^2.7.0",
"karma": "^1.7.0",
"karma-chrome-launcher": "^2.1.1",
"karma-chrome-launcher": "^2.2.0",
"karma-ie-launcher": "^1.0.0",
"karma-jasmine": "^1.1.0",
"karma-requirejs": "^1.1.0",
"requirejs": "^2.3.3",
"requirejs": "^2.3.4",
"requirejs-text": "^2.0.15",
"rimraf": "^2.6.1",
"tslint": "^5.4.3",
"typedoc": "^0.7.1",
"typescript": "^2.3.4"
"tslint": "^5.6.0",
"typedoc": "^0.8.0",
"typescript": "^2.4.2"
},

@@ -114,0 +114,0 @@ "aurelia": {

@@ -1,6 +0,5 @@

import { Rule, RuleProperty } from './rule';
import { Rule, RuleProperty, ValidationDisplayNameAccessor } from './rule';
import { ValidationMessageParser } from './validation-message-parser';
import { Rules } from './rules';
import { validationMessages } from './validation-messages';
import { ValidationDisplayNameAccessor } from './rule';
import { PropertyAccessorParser, PropertyAccessor } from '../property-accessor-parser';

@@ -7,0 +6,0 @@ import { isString } from '../util';

@@ -427,3 +427,3 @@ import { Binding, Expression } from 'aurelia-binding';

}
const rules = [rule];
const rules = [[rule]];
this.validate({ object, propertyName, rules });

@@ -430,0 +430,0 @@ }

@@ -8,3 +8,3 @@ import { inject } from 'aurelia-dependency-injection';

} from '../../src/aurelia-validation';
import {InlineViewStrategy} from 'aurelia-framework';
import { InlineViewStrategy } from 'aurelia-framework';

@@ -11,0 +11,0 @@ @noView

import 'aurelia-polyfills';
import {initialize} from 'aurelia-pal-nodejs';
import {Container} from 'aurelia-dependency-injection';
import {configure as configureBindingLanguage} from 'aurelia-templating-binding';
import { initialize } from 'aurelia-pal-nodejs';
import { Container } from 'aurelia-dependency-injection';
import { configure as configureBindingLanguage } from 'aurelia-templating-binding';
import {

@@ -24,3 +24,3 @@ configure as configureValidation,

validator.validateObject({ firstName: '', lastName: 'test'}, rules)
validator.validateObject({ firstName: '', lastName: 'test' }, rules)
.then(result => {

@@ -34,3 +34,3 @@ assert(result.length === 2);

validator.validateProperty({ firstName: '', lastName: 'test'}, 'firstName', rules)
validator.validateProperty({ firstName: '', lastName: 'test' }, 'firstName', rules)
.then(result => {

@@ -42,3 +42,3 @@ assert(result.length === 1);

validator.validateProperty({ firstName: '', lastName: 'test'}, 'lastName', rules)
validator.validateProperty({ firstName: '', lastName: 'test' }, 'lastName', rules)
.then(result => {

@@ -45,0 +45,0 @@ assert(result.length === 1);

@@ -18,3 +18,3 @@ import { StageComponent, ComponentTester } from 'aurelia-testing';

const stageTest = (validationErrors: string, supplyControllerToViewModel?: boolean) => {
const form: string = `
const form: string = `
<template>

@@ -33,5 +33,5 @@ <form novalidate autocomplete='off' ${validationErrors}>

// tslint:enable-next-line:max-line-length
.boundTo( parentViewModel );
.boundTo(parentViewModel);
const myConfigure = (aurelia: Aurelia) => {
const myConfigure = (aurelia: Aurelia) => {
configure(aurelia);

@@ -43,5 +43,5 @@ container = aurelia.container;

/*
at this point validation plugin has not yet been initialized, not until in component.create()
*/
/*
at this point validation plugin has not yet been initialized, not until in component.create()
*/
if (supplyControllerToViewModel) {

@@ -82,3 +82,3 @@ /*

.catch(e => { console.log(e.toString()); done(); });
/* tslint:enable:no-console */
/* tslint:enable:no-console */
});

@@ -100,3 +100,3 @@

.catch(e => { console.log(e.toString()); done(); });
/* tslint:enable:no-console */
/* tslint:enable:no-console */
});

@@ -103,0 +103,0 @@

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