Socket
Socket
Sign inDemoInstall

@wmfs/cardscript-extract-defaults

Package Overview
Dependencies
2
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @wmfs/cardscript-extract-defaults

Extracts sensible defaults from some Cardscript.


Version published
Weekly downloads
45
increased by36.36%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.34.0 (2021-10-15)

✨ Features

  • default data for Input.Date as GDS theme (a100bd9)

🛠 Builds

  • deps-dev: bump codecov from 3.8.2 to 3.8.3 (81c2941)
  • deps-dev: bump mocha from 9.0.1 to 9.0.2 (a6af892)
  • deps-dev: bump mocha from 9.0.2 to 9.0.3 (5dba065)
  • deps-dev: update dependency @semantic-release/changelog to v6 (4435baa)
  • deps-dev: update dependency @semantic-release/git to v10 (b1c401b)
  • deps-dev: update dependency @semantic-release/git to v9.0.1 (393dc6b)
  • deps-dev: update dependency mocha to v9.1.0 (1bddfbc)
  • deps-dev: update dependency mocha to v9.1.1 (1856be2)
  • deps-dev: update dependency mocha to v9.1.2 (696d946)
  • deps-dev: update dependency mocha to v9.1.3 (4984796)
  • deps-dev: update dependency semantic-release to v17.4.5 (0495b3f)
  • deps-dev: update dependency semantic-release to v17.4.6 (12f7a88)
  • deps-dev: update dependency semantic-release to v17.4.7 (528e163)
  • deps-dev: update dependency semantic-release to v18 (6e15870)
  • deps-dev: update dependency standard to v16.0.4 (d18732f)

♻️ Chores

  • add renovate config [ch6600] (52b2640)

Readme

Source

cardscript-extract-defaults

Tymly Cardscript CircleCI npm (scoped) codecov CodeFactor Dependabot badge Commitizen friendly JavaScript Style Guide license

Extracts sensible defaults from some Cardscript.

Install

$ npm install cardscript-extract-defaults --save

Usage

const extractDefaults = require('@wmfs/cardscript-extract-defaults')

const defaultValues = extractDefaults(
    {
      "type": "AdaptiveCard",
      "body": [
        {
          "type": "TextBlock",
          "text": "Change me!",
          "color": "attention",
          "horizontalAlignment": "center"
        }
      ],
      "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
      "version": "1.0"
    }
)

Testing

$ npm test

License

MIT

Keywords

FAQs

Last updated on 15 Oct 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc