Sign In

msg-switch

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

msg-switch - npm Package Compare versions

Comparing version
0.5.1
to
0.5.2
+1
-1
package.json
{
"name": "msg-switch",
"version": "0.5.1",
"version": "0.5.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/PlanitarInc/msg-switch",

@@ -88,3 +88,3 @@ # msg-switch [![Build Status](https://travis-ci.org/PlanitarInc/msg-switch.svg?branch=master)](https://travis-ci.org/PlanitarInc/msg-switch) [![npm version](https://badge.fury.io/js/msg-switch.svg)](https://badge.fury.io/js/msg-switch) [![](https://img.shields.io/github/license/PlanitarInc/msg-switch.svg)](https://www.npmjs.com/package/msg-switch)

<template slot-scope="{ ctx }">
User {{ ctx.email }} was not found.
Resource {{ ctx.id }} was not found.
</template>

@@ -110,7 +110,15 @@ </MsgCase>

// App.vue
<StdError :value="error.code">
<MsgCase when="not_found">The document was not found.</MsgCase>
<MsgCase when="forbidden">You are not allowed to edit the document.</MsgCase>
<MsgCase when="dynamic">Message for error code missing in StdError.</MsgCase>
</StdError>
<StdErrorWithContext :value="error.code">
<MsgCase when="not_found">
<template slot-scope="{ ctx }">
User {{ ctx.id }} was not found.
</template>
</MsgCase>
<MsgCase when="dynamic">
<template slot-scope="{ ctx }">
Message for error code missing in StdError:
<pre>{{ ctx.someDebugInfo }}</pre>.
</template>
</MsgCase>
</StdErrorWithContext>
```

@@ -117,0 +125,0 @@