Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@plattar/plattar-services
Advanced tools
Plattar SDK for interfacing with Remote Plattar Services such as Configurators, File Converters and Asset Optimisers
plattar-services allows interfacing with Remote Plattar Services such as Configurators, File Converters and Asset Optimisers.
// Minified Version ES2015 & ES2019 (Latest)
https://cdn.jsdelivr.net/npm/@plattar/plattar-services/build/es2015/plattar-services.min.js
https://cdn.jsdelivr.net/npm/@plattar/plattar-services/build/es2019/plattar-services.min.js
// Standard Version ES2015 & ES2019 (Latest)
https://cdn.jsdelivr.net/npm/@plattar/plattar-services/build/es2015/plattar-services.js
https://cdn.jsdelivr.net/npm/@plattar/plattar-services/build/es2019/plattar-services.js
npm install @plattar/plattar-services
const configurator = new PlattarServices.Configurator();
// add SceneProduct and ProductVariation mapping to our configurator
// if using plattar-api objects, the attributes will be hashed aswell
configurator.addSceneProduct("e6d79450-4e5a-11ec-8441-19fd21954ae9", "568b63d0-3af6-11e9-8543-4d96b548a86f");
configurator.addSceneProduct("e6d890b0-4e5a-11ec-b6da-dfb7e6b01d2b", "c8bc3d40-3af6-11e9-8e4f-fb10e27e3a41");
configurator.addSceneProduct("e6d66ae0-4e5a-11ec-94a1-cf20ab6b8fd4", "1bf213e0-3af7-11e9-bb39-dbde969e139c");
// configurator also aupports adding models without variations
configurator.addModel("15e26685-fdda-806c-bd62-70f57594ea38");
// output configuration as USDZ - default is glb
configurator.output = "usdz";
// execute on staging objects - default is production
configurator.server = "staging";
configurator.get().then((data) => {
// this says if the object is returned from cache or generated new
console.log("cache_status - " + data.cache_status);
// this is the full url to the final generated object
console.log("filename - " + data.filename);
// this is the request/file hash used for caching
console.log("hash - " + data.hash);
}).catch((err) => {
console.error(err);
});
const configurator = new PlattarServices.Configurator();
// add SceneProduct and ProductVariation mapping to our configurator
// if using plattar-api objects, the attributes will be hashed aswell
configurator.addProduct("bc136a6c-1abf-699b-f122-e72e43b32d2a", "e49e93a0-427f-11ec-acd9-9d5725e9cdf9");
// output configuration as Apple Reality USDZ - default is glb
// this model will track onto the users-face. The alignment
// can be changed via the Plattar CMS!
configurator.output = "vto";
// execute on staging objects - default is production
configurator.server = "staging";
configurator.get().then((data) => {
// this says if the object is returned from cache or generated new
console.log("cache_status - " + data.cache_status);
// this is the full url to the final generated object
console.log("filename - " + data.filename);
// this is the request/file hash used for caching
console.log("hash - " + data.hash);
}).catch((err) => {
console.error(err);
});
const converter = new PlattarServices.ModelConverter();
// the FileModel id, this can be a string or FileModel instance
converter.model = "0d8c6d90-0b88-11ec-b58b-ffbce2e5da06";
// output model as USDZ - default is glb
converter.output = "usdz";
// execute on staging objects - default is production
converter.server = "staging";
converter.get().then((data) => {
// this says if the object is returned from cache or generated new
console.log("cache_status - " + data.cache_status);
// this is the full url to the final generated object
console.log("filename - " + data.filename);
// this is the request/file hash used for caching
console.log("hash - " + data.hash);
}).catch((err) => {
console.error(err);
});
FAQs
Plattar SDK for interfacing with Remote Plattar Services such as Configurators, File Converters and Asset Optimisers
The npm package @plattar/plattar-services receives a total of 23 weekly downloads. As such, @plattar/plattar-services popularity was classified as not popular.
We found that @plattar/plattar-services 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.