@appscode/json2yaml
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"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." | ||
} | ||
] | ||
} | ||
}); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
12903
7
356
1
26
1