New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@appscode/json2yaml

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appscode/json2yaml - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

index.js

6

package.json
{
"name": "@appscode/json2yaml",
"version": "0.1.0",
"version": "0.1.1",
"description": "Javascript JSON to YAML converter",
"main": "src/json2yaml.js",
"main": "index.js",
"directories": {

@@ -12,3 +12,3 @@ "test": "test"

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "node test/basic.js"
},

@@ -15,0 +15,0 @@ "repository": {

@@ -20,1 +20,7 @@ json2yaml

- world
Acknowledgement
---------------
For [string conversion](http://symfony.com/doc/current/components/yaml/yaml_format.html#strings), we're using [yaml.js](https://github.com/jeremyfa/yaml.js)'s [Escaper](https://github.com/jeremyfa/yaml.js/blob/develop/lib/Escaper.js) and [Pattern](https://github.com/jeremyfa/yaml.js/blob/develop/lib/Pattern.js).
// to be run using nodejs
var json2yaml = require('../src/json2yaml').json2yaml;
var json2yaml = require('../index');
function test(obj) {

@@ -24,2 +24,93 @@ console.log('TESTING:');

test({ hello: '"你好, 世界!'});
test({ hello: '%你好, 世界!'});
test({ hello: '%你好, 世界!'});
test({
"status": true,
"lastUpdateTime": "2017-03-02T05:41:47Z",
"schedule": "every @6m"
});
test({
"kind": "Deployment",
"metadata": {
"name": "appscode-voyager",
"namespace": "default",
"selfLink": "/apis/extensions/v1beta1/namespaces/default/deployments/appscode-voyager",
"uid": "c424855e-3962-11e7-a602-12f236046fba",
"resourceVersion": "15275024",
"generation": 1,
"creationTimestamp": "2017-05-15T11:36:41Z",
"labels": {
"run": "appscode-voyager"
},
"annotations": {
"deployment.kubernetes.io/revision": "1"
}
},
"spec": {
"replicas": 1,
"selector": {
"matchLabels": {
"run": "appscode-voyager"
}
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"run": "appscode-voyager"
}
},
"spec": {
"volumes": null,
"containers": [
{
"name": "appscode-voyager",
"image": "appscode/voyager:update-fix",
"args": [
"--cloud-provider=aws",
"--cluster-name=h505",
"--v=5"
],
"ports": [
{
"name": "zero",
"containerPort": 1234,
"protocol": "TCP"
}
],
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"imagePullPolicy": "IfNotPresent"
}
],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"serviceAccountName": "",
"securityContext": {}
}
},
"strategy": {
"type": "RollingUpdate",
"rollingUpdate": {
"maxUnavailable": 1,
"maxSurge": 1
}
}
},
"status": {
"observedGeneration": 1,
"replicas": 1,
"updatedReplicas": 1,
"availableReplicas": 1,
"conditions": [
{
"type": "Available",
"status": "True",
"lastUpdateTime": "2017-05-15T11:36:41Z",
"lastTransitionTime": "2017-05-15T11:36:41Z",
"reason": "MinimumReplicasAvailable",
"message": "Deployment has minimum availability."
}
]
}
});
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc