Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@taldor-ltd/tld-angular-fnd
Advanced tools
Shared Angular functionality to all Taldor developers.
npm install @taldor-ltd/tld-angular-fnd
Add TldExtensionsModule
to your module's 'imports'
method | parameters | return value | description |
---|---|---|---|
containsElements() | - | boolean | Check if there are elements in the array |
any | predicate | bollean | Check if there are elements in the array according to predicate conditions |
firstOrDefault | predicate | object or null | Returns the first array's element according to predicate conditions. Returns null if none found |
first | predicate | object | Returns the first array's element according to predicate conditions. Throws error if none found |
sum | predicate | number | Returns the sum of the property selected in the predicate |
where | predicate | object[] | Rturns all the elements according to predicate conditions |
min | predicate | number | Returns the minimum value of the property selected in the predicate |
max | predicate | number | Returns the maximum value of the property selected in the predicate |
orderBy | predicate | object[] | Returns array order ascending by the property selected in the predicate |
orderByDesc | predicate | object[] | Returns array order descending by the property selected in the predicate |
average | predicate | number | Returns the average value of the property selected in the predicate |
select | predicate | object[] | Returns array of all elements property selected in the predicate |
groupBy | predicate | object[] | Returns array of [key, values[]] according to the property selected in the predicate |
count | predicate | number | Returns the number of elements according to predicate conditions |
take | number | object[] | Returns the top X elements of the array |
split | predicate | [object[], object[]] | Returns array of elements according to predicate conditions and elements NOT according to predicate conditions |
method | parameters | description |
---|---|---|
applyDelayed | (this, args[]) | Invokes the function with 0 timeout delay |
applyDelayedTimeout | (this,timeOutInMilliseconds args[]) | Invokes the function with timeOutInMilliseconds timeout delay |
Add TldNgFormsModule
to your module's imports
This module includes:
Forms Validator for checking input of TZ
Add tldIsraeliId
attribute to your <input>
<input tldIsraeliId>
<input [tldIsraeliId]="someCondition === true">
Check errors
of input's ngModel object for israeliId
error
<input placeholder="מספר זהות" name="tz" #tz="ngModel" [(ngModel)]="myTz" tldIsraeliId>
<span *ngIf="(tz.errors && tz.errors.israeliId) && (tz.dirty || tz.touched)">ת.ז. לא תקינה</span>
Forms Validator for checking input of Email address
Add tldEmail
attribute to your <input>
<input tldEmail>
Check errors
of input's ngModel object for email
error
<input placeholder="Email Address" name="email" #email="ngModel" [(ngModel)]="myEmail" tldEmail>
<span *ngIf="(email.errors && email.errors.email) && (email.dirty || email.touched)">Invalid Email address</span>
Configure at the styles section, as follow.
"styles": [
//...
"node_modules/@taldor-ltd/tld-angular-fnd/src/resources/tld-snippets.css",
//...
],
Here are some examples for what each css snippet file contains. For almost each example there are many more options with the same naming conventions.
text-align: right !important
;)vertical-align: middle !important;
)vertical-align: middle !important;
)justify-content: center !important;
)order-black border: 1px solid black !important;
)o-border-t border-top: unset !important;
)display: none !important;
)display: block !important;
)display: inline-flex !important;
)visibility: hidden;
)font-style: italic !important;
){ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
)text-decoration: none !important;
)opacity: 0.1;
)background-color: #ffffff !important;
)sets png color to white;
)position: relative;
)position: absolute;
)position: unset !important;
)float: left !important;
)direction: rtl !important;
)clear: both !important;
)overflow: auto;
)cursor: pointer !important;
)line-height: 0px !important;
)height: fit-content !important;
)FAQs
Shared Angular functionality to all Taldor developers
The npm package @taldor-ltd/tld-angular-fnd receives a total of 1 weekly downloads. As such, @taldor-ltd/tld-angular-fnd popularity was classified as not popular.
We found that @taldor-ltd/tld-angular-fnd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.