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
42
increased by27.27%
Maintainers
1
Install size
229 kB
Created
Weekly downloads
 

Changelog

Source

1.16.0 (2020-04-07)

🛠 Builds

  • deps: bump marked from 0.8.0 to 0.8.2 (f0b4da8)
  • deps-dev: bump @semantic-release/changelog from 3.0.6 to 5.0.0 (6693f4f)
  • deps-dev: bump @semantic-release/changelog from 5.0.0 to 5.0.1 (bb64052)
  • deps-dev: bump @semantic-release/git from 7.0.18 to 9.0.0 (91af77e)
  • deps-dev: bump @wmfs/cardscript-examples from 1.11.0 to 1.18.0 (2ea93cf)
  • deps-dev: bump codecov from 3.6.1 to 3.6.2 (c855519)
  • deps-dev: bump codecov from 3.6.2 to 3.6.3 (f1ad437)
  • deps-dev: bump codecov from 3.6.3 to 3.6.4 (3c82868)
  • deps-dev: bump codecov from 3.6.4 to 3.6.5 (2d34fe9)
  • deps-dev: bump conventional-changelog-metahub from 4.0.0 to 4.0.1 (40bbf3f)
  • deps-dev: bump cz-conventional-changelog from 3.0.2 to 3.1.0 (f6d97b7)
  • deps-dev: bump mocha from 7.0.0 to 7.0.1 (b445431)
  • deps-dev: bump mocha from 7.0.1 to 7.1.0 (d19089e)
  • deps-dev: bump mocha from 7.1.0 to 7.1.1 (62b1dd5)
  • deps-dev: bump nyc from 15.0.0 to 15.0.1 (73e3aaa)
  • deps-dev: bump semantic-release from 15.14.0 to 17.0.2 (28c29f4)
  • deps-dev: bump semantic-release from 17.0.2 to 17.0.3 (4c92e43)
  • deps-dev: bump semantic-release from 17.0.3 to 17.0.4 (5aa7281)
  • deps-dev: bump standard from 14.3.1 to 14.3.2 (dabcb0c)
  • deps-dev: bump standard from 14.3.2 to 14.3.3 (8aefc70)
  • deps-dev: update standard requirement from 12.0.1 to 14.3.1 (66d9212)

🚨 Tests

  • update tests for kitchen sink cardscript example (f59a8e7)

⚙️ Continuous Integrations

  • circle: add context env var config to config.yml (7ed0719)

💎 Styles

  • Unexpected lexical declaration in case block. (789642a)

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 07 Apr 2020

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