Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@coralproject/talk-plugin-custom-asset-id

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coralproject/talk-plugin-custom-asset-id

Custom Asset ID Plugin for The Coral Project's Talk

latest
npmnpm
Version
1.1.0
Version published
Weekly downloads
2
-33.33%
Maintainers
3
Weekly downloads
 
Created
Source

Talk Plugin Custom ID Assets

:sparkles: Thanks to The Register-Guard for agreeing to open source this plugin. :sparkles:

This plugin is designed to allow the embed for Talk to specify an Asset ID to lookup and if not found create with the given ID and URL. If the ID is not provided however, the url will be used instead and it will fall back to Talk assigning an ID.

Algorithm

Asset ID provided

Attempt to lookup Asset with the given ID, if found, return asset. If the asset is not found, create it with the url.

Asset ID not provided

Attempt to lookup Asset with the url, if found, return asset. If the asset is not found, create it with the url and assign a new ID.

Installation

Simply modify/create the plugins.json file to include it:

{
  "server": [
    // ...
    {"@coralproject/talk-plugin-custom-asset-id": "^1.0.0"},
    // ...
  ],
  "client": [
    // ...
  ]
}

Which will enable it.

License

Talk is released under the Apache License, v2.0.

FAQs

Package last updated on 16 Apr 2018

Did you know?

Socket

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.

Install

Related posts