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

ng-jhipster

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-jhipster - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

2

package.json

@@ -69,3 +69,3 @@ {

},
"version": "0.2.7",
"version": "0.2.8",
"scripts": {

@@ -72,0 +72,0 @@ "cleanup": "rimraf src/*.d.ts src/**/*.d.ts src/*.js src/**/*.js aot/* tests/**/*.d.ts tests/**/*.js tests/*.d.ts tests/*.js",

@@ -42,3 +42,4 @@ /*

return function (value) {
for (var i = 0, keys = Object.keys(filter); i < keys.length; i++) {
var keys = Object.keys(filter);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];

@@ -45,0 +46,0 @@ var type = typeof value[key];

@@ -25,3 +25,4 @@ /*

var keys = [];
for (var i = 0, valueKeys = Object.keys(value); i < valueKeys.length; i++) {
var valueKeys = Object.keys(value);
for (var i = 0; i < valueKeys.length; i++) {
var key = valueKeys[i];

@@ -28,0 +29,0 @@ keys.push({ key: key, value: value[key] });

@@ -13,2 +13,3 @@ import { ElementRef } from '@angular/core';

private formatAsBytes(size);
setFileData(event: any, entity: any, field: string, isImage: boolean): void;
}

@@ -95,2 +95,14 @@ /*

};
JhiDataUtils.prototype.setFileData = function (event, entity, field, isImage) {
if (event && event.target.files && event.target.files[0]) {
var file_1 = event.target.files[0];
if (isImage && !/^image\//.test(file_1.type)) {
return;
}
this.toBase64(file_1, function (base64Data) {
entity[field] = base64Data;
entity[field + "ContentType"] = file_1.type;
});
}
};
return JhiDataUtils;

@@ -97,0 +109,0 @@ }());

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

[{"__symbolic":"module","version":3,"metadata":{"JhiDataUtils":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"abbreviate":[{"__symbolic":"method"}],"byteSize":[{"__symbolic":"method"}],"openFile":[{"__symbolic":"method"}],"toBase64":[{"__symbolic":"method"}],"clearInputImage":[{"__symbolic":"method"}],"endsWith":[{"__symbolic":"method"}],"paddingSize":[{"__symbolic":"method"}],"size":[{"__symbolic":"method"}],"formatAsBytes":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"JhiDataUtils":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"abbreviate":[{"__symbolic":"method"}],"byteSize":[{"__symbolic":"method"}],"openFile":[{"__symbolic":"method"}],"toBase64":[{"__symbolic":"method"}],"clearInputImage":[{"__symbolic":"method"}],"endsWith":[{"__symbolic":"method"}],"paddingSize":[{"__symbolic":"method"}],"size":[{"__symbolic":"method"}],"formatAsBytes":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":3,"metadata":{"JhiDataUtils":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"abbreviate":[{"__symbolic":"method"}],"byteSize":[{"__symbolic":"method"}],"openFile":[{"__symbolic":"method"}],"toBase64":[{"__symbolic":"method"}],"clearInputImage":[{"__symbolic":"method"}],"endsWith":[{"__symbolic":"method"}],"paddingSize":[{"__symbolic":"method"}],"size":[{"__symbolic":"method"}],"formatAsBytes":[{"__symbolic":"method"}],"setFileData":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"JhiDataUtils":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"abbreviate":[{"__symbolic":"method"}],"byteSize":[{"__symbolic":"method"}],"openFile":[{"__symbolic":"method"}],"toBase64":[{"__symbolic":"method"}],"clearInputImage":[{"__symbolic":"method"}],"endsWith":[{"__symbolic":"method"}],"paddingSize":[{"__symbolic":"method"}],"size":[{"__symbolic":"method"}],"formatAsBytes":[{"__symbolic":"method"}],"setFileData":[{"__symbolic":"method"}]}}}}]

@@ -75,3 +75,3 @@ /*

var dateParts = date.split(/\D+/);
return new Date(dateParts[0], dateParts[1] - 1, dateParts[2], dateParts[3], dateParts[4]);
return new Date(dateParts[0], dateParts[1] - 1, dateParts[2], dateParts[3], dateParts[4], dateParts[5]);
};

@@ -78,0 +78,0 @@ return JhiDateUtils;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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