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

ng-mocks

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-mocks - npm Package Compare versions

Comparing version 5.0.0-rc7 to 5.0.0-rc8

206

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="5.0.0-rc8"></a>
# 5.0.0-rc8 (2018-03-25)
### Bug Fixes
* multiple decorators on an input ([13874b9](https://github.com/ike18t/ng-mocks/commit/13874b9))
<a name="5.0.0-rc7"></a>

@@ -202,2 +212,12 @@ # 5.0.0-rc7 (2018-03-17)

<a name="5.0.0-rc7"></a>
# 5.0.0-rc7 (2018-03-17)
### Bug Fixes
* Fix bad return value from mock-directive ([4659a32](https://github.com/ike18t/ng-mocks/commit/4659a32))
<a name="5.0.0-rc6"></a>

@@ -389,2 +409,17 @@ # 5.0.0-rc6 (2018-03-14)

<a name="5.0.0-rc6"></a>
# 5.0.0-rc6 (2018-03-14)
### Bug Fixes
* Outdated package-lock ([7623e98](https://github.com/ike18t/ng-mocks/commit/7623e98))
### Features
* Cleanup exports and export MockDeclaration from MockModule ([9fe2bb1](https://github.com/ike18t/ng-mocks/commit/9fe2bb1))
<a name="5.0.0-rc5"></a>

@@ -409,3 +444,174 @@ # 5.0.0-rc5 (2018-03-07)

### Bug Fixes
* integrate mock-pipe ([d747517](https://github.com/ike18t/ng-mocks/commit/d747517))
* mock_direcive integration ([7f02f7b](https://github.com/ike18t/ng-mocks/commit/7f02f7b))
### Features
* merge in mock-module ([05eaebe](https://github.com/ike18t/ng-mocks/commit/05eaebe))
* support inputs and outputs from extended components ([fc46838](https://github.com/ike18t/ng-mocks/commit/fc46838))
<a name="5.0.0-rc1"></a>
# 5.0.0-rc1 (2018-02-10)
<a name="5.0.1"></a>
## 5.0.1 (2018-02-08)
### Bug Fixes
* Add support for directives with a different kind of meta ([0bd38cc](https://github.com/ike18t/ng-mocks/commit/0bd38cc))
### Features
* memoize function by arg ([031e3a6](https://github.com/ike18t/ng-mocks/commit/031e3a6))
<a name="5.0.0"></a>
# 5.0.0 (2018-02-03)
### Bug Fixes
* add testbed test that exposed now fixed issue ([610cbdc](https://github.com/ike18t/ng-mocks/commit/610cbdc))
* module exports is now all declarations ([fbb0e73](https://github.com/ike18t/ng-mocks/commit/fbb0e73))
### Features
* memoize function by arg ([cac00b3](https://github.com/ike18t/ng-mocks/commit/cac00b3))
* mock module providers ([49b2272](https://github.com/ike18t/ng-mocks/commit/49b2272))
<a name="5.0.0-rc.2"></a>
# 5.0.0-rc.2 (2018-01-26)
### Features
* add exportAs and alias support ([14a1474](https://github.com/ike18t/ng-mocks/commit/14a1474))
<a name="5.0.0-rc.3"></a>
# 5.0.0-rc.3 (2018-01-25)
### Bug Fixes
* forgot how to use js reduce ([de518d4](https://github.com/ike18t/ng-mocks/commit/de518d4))
### Features
* add support for exportAs and input aliases ([9b42a21](https://github.com/ike18t/ng-mocks/commit/9b42a21))
<a name="5.0.0-rc.1"></a>
# 5.0.0-rc.1 (2018-01-23)
### Features
* initial implementation ([893f83b](https://github.com/ike18t/ng-mocks/commit/893f83b))
* Upgrade to angular 5 and pull in testbed for tests ([7df64a8](https://github.com/ike18t/ng-mocks/commit/7df64a8))
<a name="0.7.0"></a>
# 0.7.0 (2017-12-08)
### Features
* component mock implements control value accessor to support ngModel binding ([67ea7c4](https://github.com/ike18t/ng-mocks/commit/67ea7c4))
<a name="0.6.0"></a>
# 0.6.0 (2017-12-07)
### Bug Fixes
* output binding ([59f476d](https://github.com/ike18t/ng-mocks/commit/59f476d))
<a name="0.5.0"></a>
# 0.5.0 (2017-11-27)
### Bug Fixes
* instantiate event emitters in component constructor ([fb4b97d](https://github.com/ike18t/ng-mocks/commit/fb4b97d))
<a name="0.4.0"></a>
# 0.4.0 (2017-11-21)
<a name="0.3.0"></a>
# 0.3.0 (2017-11-14)
### Bug Fixes
* add reflect-metadata back to devDeps ([385c9c4](https://github.com/ike18t/ng-mocks/commit/385c9c4))
* works with component w/o inputs or outputs ([b3d38e7](https://github.com/ike18t/ng-mocks/commit/b3d38e7))
<a name="0.2.0"></a>
# 0.2.0 (2017-10-26)
### Features
* Adding angular 2 compatibility and moving to peerDependency ([#3](https://github.com/ike18t/ng-mocks/issues/3)) ([4bd93db](https://github.com/ike18t/ng-mocks/commit/4bd93db))
<a name="0.0.5"></a>
## 0.0.5 (2017-09-19)
<a name="0.0.4"></a>
## 0.0.4 (2017-09-19)
<a name="5.0.0-rc5"></a>
# 5.0.0-rc5 (2018-03-07)
### Bug Fixes
* package json typings location ([5f6fde0](https://github.com/ike18t/ng-mocks/commit/5f6fde0))
<a name="5.0.0-rc4"></a>
# 5.0.0-rc4 (2018-03-07)
<a name="5.0.0-rc3"></a>
# 5.0.0-rc3 (2018-03-07)
<a name="5.0.0-rc2"></a>

@@ -412,0 +618,0 @@ # 5.0.0-rc2 (2018-03-07)

8

dist/lib/common/reflect.js

@@ -15,8 +15,8 @@ "use strict";

var propertyMetadata = directive.__prop__metadata__ || {};
var outputs = Object.keys(propertyMetadata)
.filter(function (meta) { return propertyMetadata[meta][0].ngMetadataName === type; })
.reduce(metaReducer(propertyMetadata), []);
return outputs.concat(getInputsOutputs(directive.__proto__, type));
return Object.keys(propertyMetadata)
.filter(function (meta) { return propertyMetadata[meta].find(function (m) { return m.ngMetadataName === type; }); })
.reduce(metaReducer(propertyMetadata), [])
.concat(getInputsOutputs(directive.__proto__, type));
}
exports.getInputsOutputs = getInputsOutputs;
//# sourceMappingURL=reflect.js.map

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

selector: 'example-component-container',
template: "\n <simple-component [someInput]=\"'hi'\"\n [someOtherInput]=\"'bye'\"\n (someOutput1)=\"emitted = $event\"\n (someOutput2)=\"emitted = $event\">\n </simple-component>\n <simple-component [someInput]=\"'hi again'\" #f='seeimple'></simple-component>\n <empty-component></empty-component>\n <empty-component id=\"ng-content-component\">doh</empty-component>\n <empty-component id=\"ngmodel-component\" [(ngModel)]=\"someOutputHasEmitted\"></empty-component>\n "
template: "\n <simple-component [someInput]=\"'hi'\"\n [someOtherInput]=\"'bye'\"\n [someInput3]=true\n (someOutput1)=\"emitted = $event\"\n (someOutput2)=\"emitted = $event\">\n </simple-component>\n <simple-component [someInput]=\"'hi again'\" #f='seeimple'></simple-component>\n <empty-component></empty-component>\n <empty-component id=\"ng-content-component\">doh</empty-component>\n <empty-component id=\"ngmodel-component\" [(ngModel)]=\"someOutputHasEmitted\"></empty-component>\n "
})

@@ -62,2 +62,8 @@ ], ExampleComponentContainer);

});
it('has no issues with multiple decorators on an input', function () {
fixture.detectChanges();
var mockedComponent = fixture.debugElement
.query(platform_browser_1.By.directive(mock_component_1.MockComponent(simple_component_component_1.SimpleComponent)));
expect(mockedComponent.componentInstance.someInput3).toEqual(true);
});
it('should trigger output bound behavior', function () {

@@ -64,0 +70,0 @@ fixture.detectChanges();

@@ -8,3 +8,4 @@ import { EventEmitter } from '@angular/core';

someInput2: string;
someInput3: boolean;
someOutput1: EventEmitter<string>;
}

@@ -53,2 +53,6 @@ "use strict";

__decorate([
core_1.HostBinding('class.someClass'), core_1.Input(),
__metadata("design:type", Boolean)
], SimpleComponent.prototype, "someInput3", void 0);
__decorate([
core_1.Output(),

@@ -55,0 +59,0 @@ __metadata("design:type", core_1.EventEmitter)

{
"name": "ng-mocks",
"version": "5.0.0-rc7",
"version": "5.0.0-rc8",
"description": "Functions for creating angular mocks",

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

Sorry, the diff of this file is not supported yet

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