Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@types/uritemplate
Advanced tools
TypeScript definitions for uritemplate
npm install --save @types/uritemplate
This package contains type definitions for uritemplate (https://github.com/fxa/uritemplate-js).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uritemplate.
/*
UriTemplate Copyright (c) 2012-2013 Franz Antesberger. All Rights Reserved.
Available via the MIT license.
*/
export class UriTemplate {
/**
* Expands template into a string using parameter
* supplied
*/
expand(data: {}): string;
}
export interface UriTemplateErrorOptions {
expressionText: string;
message: string;
position: number;
}
export class UriTemplateError {
constructor(options: UriTemplateErrorOptions);
}
/**
* parse template text returning instance of UriTemplate
* @param template text
* @return instance of UriTemplate
* @example
* import UriTemplate = require('uritemplate');
* let template = UriTemplate.parse('http://localhost/query{?name,city}');
* let result = template.expand({name: 'Jayden', city: 'Wodonga'});
* // returns http://localhost/query?name=Jayden&city=Wodonga
*/
export function parse(templateText: string): UriTemplate;
These definitions were written by Chui Tey, and Ruben Taelman.
FAQs
TypeScript definitions for uritemplate
The npm package @types/uritemplate receives a total of 2,732 weekly downloads. As such, @types/uritemplate popularity was classified as popular.
We found that @types/uritemplate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.