Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-exemplify

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-exemplify - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

exemplify/directives/exemplify.directive.d.ts

12

CHANGELOG.md

@@ -5,2 +5,14 @@ Release History

# [1.2.0] - 2017-03-09
### Added
- Option for showing/hiding example by default (see issue #3), examples are now hidden by default override using `[show]=true`
### Fixed
- Option for passing strings to be escaped (see issue #1 and #2)
- Angular directives such as `*ngIf` and `*ngFor` will now be escaped
### Breaking change
- `angularInputs` changed to `escapeStrings` to accommodate for more uses cases, so instead of typing `myInput` to escape the angular input `[myInput]` you now need to type `[myInput]`. This also works for `[(myInput)]` or `#myTemplateVar` (otherwise they will be rendered as `[(myinput)]` and `#mytemplatevar`).
# [1.1.0] - 2017-01-19

@@ -7,0 +19,0 @@

8

exemplify/exemplify.module.js

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

var source_service_1 = require("./services/source.service");
var add_example_directive_1 = require("./directives/add-example.directive");
var exemplify_directive_1 = require("./directives/exemplify.directive");
var ExemplifyModule = (function () {

@@ -15,5 +15,5 @@ function ExemplifyModule() {

],
providers: [add_example_directive_1.WindowRef, source_service_1.SourceService],
declarations: [add_example_directive_1.AddExampleDirective],
exports: [add_example_directive_1.AddExampleDirective]
providers: [exemplify_directive_1.WindowRef, source_service_1.ExmplifySourceService],
declarations: [exemplify_directive_1.ExemplifyDirective],
exports: [exemplify_directive_1.ExemplifyDirective]
},] },

@@ -20,0 +20,0 @@ ];

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

[{"__symbolic":"module","version":3,"metadata":{"ExemplifyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"providers":[{"__symbolic":"reference","module":"./directives/add-example.directive","name":"WindowRef"},{"__symbolic":"reference","module":"./services/source.service","name":"SourceService"}],"declarations":[{"__symbolic":"reference","module":"./directives/add-example.directive","name":"AddExampleDirective"}],"exports":[{"__symbolic":"reference","module":"./directives/add-example.directive","name":"AddExampleDirective"}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"ExemplifyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"providers":[{"__symbolic":"reference","module":"./directives/add-example.directive","name":"WindowRef"},{"__symbolic":"reference","module":"./services/source.service","name":"SourceService"}],"declarations":[{"__symbolic":"reference","module":"./directives/add-example.directive","name":"AddExampleDirective"}],"exports":[{"__symbolic":"reference","module":"./directives/add-example.directive","name":"AddExampleDirective"}]}]}]}}}]
[{"__symbolic":"module","version":3,"metadata":{"ExemplifyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"providers":[{"__symbolic":"reference","module":"./directives/exemplify.directive","name":"WindowRef"},{"__symbolic":"reference","module":"./services/source.service","name":"ExmplifySourceService"}],"declarations":[{"__symbolic":"reference","module":"./directives/exemplify.directive","name":"ExemplifyDirective"}],"exports":[{"__symbolic":"reference","module":"./directives/exemplify.directive","name":"ExemplifyDirective"}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"ExemplifyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"providers":[{"__symbolic":"reference","module":"./directives/exemplify.directive","name":"WindowRef"},{"__symbolic":"reference","module":"./services/source.service","name":"ExmplifySourceService"}],"declarations":[{"__symbolic":"reference","module":"./directives/exemplify.directive","name":"ExemplifyDirective"}],"exports":[{"__symbolic":"reference","module":"./directives/exemplify.directive","name":"ExemplifyDirective"}]}]}]}}}]

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

{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"},"type":{"summaryKind":2,"type":{"reference":{"__symbol":0},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[{"provider":{"token":{"identifier":{"reference":{"__symbol":1}}},"useClass":{"reference":{"__symbol":2},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":3}}}}],"lifecycleHooks":[]},"useFactory":null,"useExisting":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":3}}}}],"multi":false},"module":{"reference":{"__symbol":4},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":5},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":5},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"useExisting":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":0},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":6},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":7}}}}],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":6},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":7}}}}],"lifecycleHooks":[]},"useFactory":null,"useExisting":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":7}}}}],"multi":false},"module":{"reference":{"__symbol":0},"diDeps":[],"lifecycleHooks":[]}}],"modules":[{"reference":{"__symbol":4},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":0},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[{"reference":{"__symbol":8}}],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"ExemplifyModule","filePath":"/Users/rhj/dev/angular-exemplify/src/exemplify/exemplify.module.d.ts"},{"__symbol":1,"name":"NgLocalization","filePath":"/Users/rhj/dev/angular-exemplify/node_modules/@angular/common/src/localization.d.ts"},{"__symbol":2,"name":"NgLocaleLocalization","filePath":"/Users/rhj/dev/angular-exemplify/node_modules/@angular/common/src/localization.d.ts"},{"__symbol":3,"name":"LOCALE_ID","filePath":"/Users/rhj/dev/angular-exemplify/node_modules/@angular/core/src/i18n/tokens.d.ts"},{"__symbol":4,"name":"CommonModule","filePath":"/Users/rhj/dev/angular-exemplify/node_modules/@angular/common/src/common_module.d.ts"},{"__symbol":5,"name":"WindowRef","filePath":"/Users/rhj/dev/angular-exemplify/src/exemplify/directives/add-example.directive.d.ts"},{"__symbol":6,"name":"SourceService","filePath":"/Users/rhj/dev/angular-exemplify/src/exemplify/services/source.service.d.ts"},{"__symbol":7,"name":"Http","filePath":"/Users/rhj/dev/angular-exemplify/node_modules/@angular/http/src/http.d.ts"},{"__symbol":8,"name":"AddExampleDirective","filePath":"/Users/rhj/dev/angular-exemplify/src/exemplify/directives/add-example.directive.d.ts"}]}
{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"},"type":{"summaryKind":2,"type":{"reference":{"__symbol":0},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[{"provider":{"token":{"identifier":{"reference":{"__symbol":1}}},"useClass":{"reference":{"__symbol":2},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":3}}}}],"lifecycleHooks":[]},"useFactory":null,"useExisting":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":3}}}}],"multi":false},"module":{"reference":{"__symbol":4},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":5},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":5},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"useExisting":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":0},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":6},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":7}}}}],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":6},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":7}}}}],"lifecycleHooks":[]},"useFactory":null,"useExisting":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":7}}}}],"multi":false},"module":{"reference":{"__symbol":0},"diDeps":[],"lifecycleHooks":[]}}],"modules":[{"reference":{"__symbol":4},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":0},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[{"reference":{"__symbol":8}}],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"ExemplifyModule","filePath":"/Users/rhj/dev/angular-exemplify/src/exemplify/exemplify.module.d.ts"},{"__symbol":1,"name":"NgLocalization","filePath":"/Users/rhj/dev/angular-exemplify/node_modules/@angular/common/src/localization.d.ts"},{"__symbol":2,"name":"NgLocaleLocalization","filePath":"/Users/rhj/dev/angular-exemplify/node_modules/@angular/common/src/localization.d.ts"},{"__symbol":3,"name":"LOCALE_ID","filePath":"/Users/rhj/dev/angular-exemplify/node_modules/@angular/core/src/i18n/tokens.d.ts"},{"__symbol":4,"name":"CommonModule","filePath":"/Users/rhj/dev/angular-exemplify/node_modules/@angular/common/src/common_module.d.ts"},{"__symbol":5,"name":"WindowRef","filePath":"/Users/rhj/dev/angular-exemplify/src/exemplify/directives/exemplify.directive.d.ts"},{"__symbol":6,"name":"ExmplifySourceService","filePath":"/Users/rhj/dev/angular-exemplify/src/exemplify/services/source.service.d.ts"},{"__symbol":7,"name":"Http","filePath":"/Users/rhj/dev/angular-exemplify/node_modules/@angular/http/src/http.d.ts"},{"__symbol":8,"name":"ExemplifyDirective","filePath":"/Users/rhj/dev/angular-exemplify/src/exemplify/directives/exemplify.directive.d.ts"}]}
import { Http } from "@angular/http";
import { Observable } from "rxjs";
import 'rxjs/Rx';
export declare class SourceService {
export declare class ExmplifySourceService {
private http;

@@ -6,0 +6,0 @@ constructor(http: Http);

@@ -6,7 +6,7 @@ "use strict";

require('rxjs/Rx');
var SourceService = (function () {
function SourceService(http) {
var ExmplifySourceService = (function () {
function ExmplifySourceService(http) {
this.http = http;
}
SourceService.prototype.getSource = function (src) {
ExmplifySourceService.prototype.getSource = function (src) {
return this.http.get(src)

@@ -16,3 +16,3 @@ .map(function (res) { return res.text(); })

};
SourceService.prototype.handleError = function (error) {
ExmplifySourceService.prototype.handleError = function (error) {
var errMsg;

@@ -29,12 +29,12 @@ if (error instanceof http_1.Response) {

};
SourceService.decorators = [
ExmplifySourceService.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
SourceService.ctorParameters = function () { return [
ExmplifySourceService.ctorParameters = function () { return [
{ type: http_1.Http, },
]; };
return SourceService;
return ExmplifySourceService;
}());
exports.SourceService = SourceService;
exports.ExmplifySourceService = ExmplifySourceService;
//# sourceMappingURL=source.service.js.map

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

[{"__symbolic":"module","version":3,"metadata":{"SourceService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"getSource":[{"__symbolic":"method"}],"handleError":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SourceService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"getSource":[{"__symbolic":"method"}],"handleError":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":3,"metadata":{"ExmplifySourceService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"getSource":[{"__symbolic":"method"}],"handleError":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ExmplifySourceService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"getSource":[{"__symbolic":"method"}],"handleError":[{"__symbolic":"method"}]}}}}]

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

{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"},"type":{"summaryKind":3,"type":{"reference":{"__symbol":0},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":1}}}}],"lifecycleHooks":[]}}}],"symbols":[{"__symbol":0,"name":"SourceService","filePath":"/Users/rhj/dev/angular-exemplify/src/exemplify/services/source.service.d.ts"},{"__symbol":1,"name":"Http","filePath":"/Users/rhj/dev/angular-exemplify/node_modules/@angular/http/src/http.d.ts"}]}
{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"},"type":{"summaryKind":3,"type":{"reference":{"__symbol":0},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":1}}}}],"lifecycleHooks":[]}}}],"symbols":[{"__symbol":0,"name":"ExmplifySourceService","filePath":"/Users/rhj/dev/angular-exemplify/src/exemplify/services/source.service.d.ts"},{"__symbol":1,"name":"Http","filePath":"/Users/rhj/dev/angular-exemplify/node_modules/@angular/http/src/http.d.ts"}]}
export * from './exemplify/services/source.service';
export * from './exemplify/directives/add-example.directive';
export * from './exemplify/directives/exemplify.directive';
export * from './exemplify/exemplify.module';

@@ -6,4 +6,4 @@ "use strict";

__export(require('./exemplify/services/source.service'));
__export(require('./exemplify/directives/add-example.directive'));
__export(require('./exemplify/directives/exemplify.directive'));
__export(require('./exemplify/exemplify.module'));
//# sourceMappingURL=index.js.map

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

[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./exemplify/services/source.service"},{"from":"./exemplify/directives/add-example.directive"},{"from":"./exemplify/exemplify.module"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./exemplify/services/source.service"},{"from":"./exemplify/directives/add-example.directive"},{"from":"./exemplify/exemplify.module"}]}]
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./exemplify/services/source.service"},{"from":"./exemplify/directives/exemplify.directive"},{"from":"./exemplify/exemplify.module"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./exemplify/services/source.service"},{"from":"./exemplify/directives/exemplify.directive"},{"from":"./exemplify/exemplify.module"}]}]
{
"name": "angular-exemplify",
"version": "1.1.0",
"version": "1.2.0",
"license": "MIT",

@@ -17,3 +17,3 @@ "repository": {

"e2e": "protractor",
"clean": "rimraf exemplify \"index.@(js|js.map|d.ts|metadata.json)\"",
"clean": "rimraf exemplify \"index.@(js|js.map|d.ts|metadata.json|ngsummary.json)\"",
"clean:factory": "rimraf \"exemplify/**/*.ngfactory.ts\"",

@@ -33,35 +33,35 @@ "copy:css": "copyfiles -f src/exemplify/css/exemplify.css exemplify/css",

"devDependencies": {
"@angular/cli": "^1.0.0-rc.1",
"@angular/common": "^2.3.1",
"@angular/compiler": "^2.3.1",
"@angular/compiler-cli": "^2.3.1",
"@angular/core": "^2.3.1",
"@angular/forms": "^2.3.1",
"@angular/http": "^2.3.1",
"@angular/platform-browser": "^2.3.1",
"@angular/platform-browser-dynamic": "^2.3.1",
"@angular/router": "^3.3.1",
"@angular/compiler-cli": "^2.4.0",
"@angular/core": "^2.4.0",
"@angular/forms": "^2.4.0",
"@angular/http": "^2.4.0",
"@angular/platform-browser": "^2.4.0",
"@angular/platform-browser-dynamic": "^2.4.0",
"@angular/router": "^3.4.0",
"@types/jasmine": "2.5.38",
"@types/node": "^6.0.42",
"angular-cli": "1.0.0-beta.24",
"@types/node": "^6.0.60",
"bootstrap": "^4.0.0-alpha.6",
"codelyzer": "~2.0.0-beta.1",
"codelyzer": "~2.0.0",
"copyfiles": "^1.0.0",
"core-js": "^2.4.1",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "2.5.0",
"karma": "1.2.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-remap-istanbul": "^0.2.1",
"karma": "~1.4.1",
"karma-chrome-launcher": "~2.0.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^0.2.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"prismjs": "^1.6.0",
"protractor": "~4.0.13",
"protractor": "~5.1.0",
"rimraf": "^2.5.4",
"rxjs": "^5.0.1",
"rxjs": "^5.1.0",
"ts-helpers": "^1.1.1",
"ts-node": "1.2.1",
"tslint": "^4.0.2",
"ts-node": "~2.0.0",
"tslint": "~4.4.2",
"typescript": "~2.0.3",
"zone.js": "^0.7.2"
"zone.js": "^0.7.6"
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {SourceService} from "./services/source.service";
import {WindowRef, AddExampleDirective} from "./directives/add-example.directive";
import {ExmplifySourceService} from "./services/source.service";
import {WindowRef, ExemplifyDirective} from "./directives/exemplify.directive";

@@ -10,6 +10,6 @@ @NgModule({

],
providers: [WindowRef, SourceService],
declarations: [AddExampleDirective],
exports: [AddExampleDirective]
providers: [WindowRef, ExmplifySourceService],
declarations: [ExemplifyDirective],
exports: [ExemplifyDirective]
})
export class ExemplifyModule { }

@@ -7,3 +7,3 @@ import { Injectable } from '@angular/core';

@Injectable()
export class SourceService {
export class ExmplifySourceService {

@@ -10,0 +10,0 @@ constructor(private http: Http) { }

export * from './exemplify/services/source.service';
export * from './exemplify/directives/add-example.directive';
export * from './exemplify/directives/exemplify.directive';
export * from './exemplify/exemplify.module';

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

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