
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
google-cdn-data-angular
Advanced tools
Google CDN data for google-cdn.
This module makes it easy to replace references in your app with links to the Angular libraries on the Google CDN.
$ npm install --save-dev google-cdn google-cdn-data-angular
package.json:
{
"name": "my-awesome-app",
"dependencies": {
"angular": "1.5.9"
}
}
const googlecdn = require('google-cdn');
const fs = require('fs');
const assert = require('chai').assert;
const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf8'));
const markup = '<script src="node_modules/angular/angular.js"></script>';
googlecdn(markup, packageJson, { cdn: require('google-cdn-data-angular') }, function(err, result) {
if (err) {
throw err;
}
assert.equal(result, '<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.9/angular.min.js"></script>');
});
const gulp = require('gulp');
const googlecdn = require('gulp-google-cdn');
gulp.task('default', function () {
return gulp.src('index.html')
.pipe(googlecdn(require('./package.json'), {
componentsPath: 'node_modules',
cdn: require('google-cdn-data-angular')
}))
.pipe(gulp.dest('dist'));
});
MIT
FAQs
AngularJS Google CDN Data for google-cdn
We found that google-cdn-data-angular 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
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.