initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
30
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/array_deep_bug.json
generated
vendored
Normal file
30
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/array_deep_bug.json
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"name": "array deep bug #10",
|
||||
"options": {
|
||||
"useArray": true
|
||||
},
|
||||
"input": {
|
||||
"a[0]": "A0",
|
||||
"a[1]": "A1",
|
||||
"a[2]": "A2",
|
||||
"a[3].b[0].c[0]": "A3B0C0",
|
||||
"a[3].b[0].c[1]": "A3B0C1"
|
||||
},
|
||||
"expected": {
|
||||
"a": [
|
||||
"A0",
|
||||
"A1",
|
||||
"A2",
|
||||
{
|
||||
"b": [
|
||||
{
|
||||
"c": [
|
||||
"A3B0C0",
|
||||
"A3B0C1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
19
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/array_deep_bug2.json
generated
vendored
Normal file
19
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/array_deep_bug2.json
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"name": "array deep bug2 #10",
|
||||
"options": {
|
||||
"useArray": true
|
||||
},
|
||||
"input": {
|
||||
"b.0.c.1": "b0c1",
|
||||
"b.0.c.2": "b0c2"
|
||||
},
|
||||
"expected": {
|
||||
"b" : [ {
|
||||
"c" : [
|
||||
null,
|
||||
"b0c1",
|
||||
"b0c2"
|
||||
]
|
||||
}]
|
||||
}
|
||||
}
|
||||
43
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/empty_array.json
generated
vendored
Normal file
43
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/empty_array.json
generated
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"name": "empty array",
|
||||
"input": [
|
||||
{
|
||||
"a": []
|
||||
},
|
||||
{
|
||||
"a.0": 1,
|
||||
"a": []
|
||||
},
|
||||
{
|
||||
"a": [],
|
||||
"a.0": 2
|
||||
},
|
||||
{
|
||||
"a.0.b": []
|
||||
},
|
||||
{
|
||||
"b.a.0": "b",
|
||||
"b.a": [],
|
||||
"b.a.1": "c"
|
||||
}
|
||||
],
|
||||
"expected": [
|
||||
{
|
||||
"a": []
|
||||
},
|
||||
{
|
||||
"a": [1]
|
||||
},
|
||||
{
|
||||
"a": [2]
|
||||
},
|
||||
{
|
||||
"a" : [ {"b" : [] } ]
|
||||
},
|
||||
{
|
||||
"b" : {
|
||||
"a": [ "b", "c" ]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
23
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/empty_object.json
generated
vendored
Normal file
23
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/empty_object.json
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"name": "empty object",
|
||||
"input": [
|
||||
{
|
||||
"a.b": {}
|
||||
},
|
||||
{
|
||||
"a.b.c": 1,
|
||||
"a.b": {} ,
|
||||
"a.b.d": 2
|
||||
}
|
||||
],
|
||||
"expected": [
|
||||
{
|
||||
"a" : {"b" : {} }
|
||||
},
|
||||
{
|
||||
"a" : {
|
||||
"b": { "c": 1, "d": 2 }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
8
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/index.js
generated
vendored
Normal file
8
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
module.exports = [
|
||||
require('./array_deep_bug'),
|
||||
require('./array_deep_bug2'),
|
||||
require('./empty_array'),
|
||||
require('./empty_object'),
|
||||
require('./object_deep_numeric_keys'),
|
||||
require('./object_deep_numeric_keys2')
|
||||
]
|
||||
30
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/object_deep_numeric_keys.json
generated
vendored
Normal file
30
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/object_deep_numeric_keys.json
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"name": "object deep numeric keys",
|
||||
"options": {
|
||||
"useArray": false
|
||||
},
|
||||
"input": {
|
||||
"a[0]": "A0",
|
||||
"a[1]": "A1",
|
||||
"a[2]": "A2",
|
||||
"a[3].b[0].c[0]": "A3B0C0",
|
||||
"a[3].b[0].c[1]": "A3B0C1"
|
||||
},
|
||||
"expected": {
|
||||
"a": {
|
||||
"0": "A0",
|
||||
"1": "A1",
|
||||
"2": "A2",
|
||||
"3": {
|
||||
"b": {
|
||||
"0": {
|
||||
"c": {
|
||||
"0": "A3B0C0",
|
||||
"1": "A3B0C1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
20
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/object_deep_numeric_keys2.json
generated
vendored
Normal file
20
dawidd6/action-download-artifact-v3/node_modules/dot-object/test/data/object_deep_numeric_keys2.json
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "object deep numeric keys 2 #10",
|
||||
"options": {
|
||||
"useArray": false
|
||||
},
|
||||
"input": {
|
||||
"b.0.c.1": "b0c1",
|
||||
"b.0.c.2": "b0c2"
|
||||
},
|
||||
"expected": {
|
||||
"b": {
|
||||
"0": {
|
||||
"c": {
|
||||
"1": "b0c1",
|
||||
"2": "b0c2"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue