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.
@planet/dynamic-tiles
Advanced tools
Support for dynamically colored tiles from Planet Inc. tile servers.
Dynamic tiles are served as numpy tiles. This module has the classes needed to support rendering those tiles inside of OpenLayers.
After cloning the repository, run build, and use npm link
. Example below:
$ npm install
$ npm run build
$ cd dist/
$ npm link
$ cd [to your project]
$ npm link @planet/dynamic-tiles
import {NumpyLayer, NumpySource} from "@planet/dynamic-tiles/ol"
Please only publish the dist/
directory.
$ npm publish ./dist/
The Layer rendering performance can be improved by using WebWorkers. To use it, the NumpyWorker needs imported the project and passed to the NumpyLayer.
Based on using the webpack worker-loader module.
import NumpyWorker from 'worker-loader!@planet/dynamic-tiles/worker';
...
const numpySource = new NumpySource();
numpySource.set('bands', ['r', 'g', 'b', 'a']);
numpySource.set('dtype', 'uint8');
numpySource.set('pixelDepth', 256);
const numpyLayer = new NumpyLayer({
source: numpySource,
workerClass: NumpyWorker,
style: {
name: 'rgb',
},
});
A small parcel
enabled demo application is included.
npm install
cd demo/
npx parcel ./index.html
You will need a valid URL for an endpoint with NumpyTiles.
FAQs
Support for dynamically colored tiles from Planet Inc. tile servers.
The npm package @planet/dynamic-tiles receives a total of 1 weekly downloads. As such, @planet/dynamic-tiles popularity was classified as not popular.
We found that @planet/dynamic-tiles demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.