Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
apply: async ({ manifestFile }) => {
// Make sure we catch all variants; we could load the manifest
// and replace the values in the data structures here; unfortunately
// writing that back to the file messes with the formatting more than
// we'd like; that's why for now, we use a simple patching approach
await toolbox.patching.replace(
manifestFile,
new RegExp('apiVersion: 0.0.2', 'g'),
'apiVersion: 0.0.3',
)
await toolbox.patching.replace(
manifestFile,
new RegExp("apiVersion: '0.0.2'", 'g'),
"apiVersion: '0.0.3'",
)
await toolbox.patching.replace(
manifestFile,
new RegExp('apiVersion: "0.0.2"', 'g'),
'apiVersion: "0.0.3"',
)
},
}
apply: async ({ manifestFile }) => {
// Make sure we catch all variants; we could load the manifest
// and replace the values in the data structures here; unfortunately
// writing that back to the file messes with the formatting more than
// we'd like; that's why for now, we use a simple patching approach
await toolbox.patching.replace(
manifestFile,
new RegExp('apiVersion: 0.0.2', 'g'),
'apiVersion: 0.0.3',
)
await toolbox.patching.replace(
manifestFile,
new RegExp("apiVersion: '0.0.2'", 'g'),
"apiVersion: '0.0.3'",
)
await toolbox.patching.replace(
manifestFile,
new RegExp('apiVersion: "0.0.2"', 'g'),
'apiVersion: "0.0.3"',
)
},
}
apply: async ({ manifestFile }) => {
// Make sure we catch all variants; we could load the manifest
// and replace the values in the data structures here; unfortunately
// writing that back to the file messes with the formatting more than
// we'd like; that's why for now, we use a simple patching approach
await toolbox.patching.replace(
manifestFile,
new RegExp('apiVersion: 0.0.1', 'g'),
'apiVersion: 0.0.2',
)
await toolbox.patching.replace(
manifestFile,
new RegExp("apiVersion: '0.0.1'", 'g'),
"apiVersion: '0.0.2'",
)
await toolbox.patching.replace(
manifestFile,
new RegExp('apiVersion: "0.0.1"', 'g'),
'apiVersion: "0.0.2"',
)
},
}
apply: async ({ manifestFile }) => {
// Make sure we catch all variants; we could load the manifest
// and replace the values in the data structures here; unfortunately
// writing that back to the file messes with the formatting more than
// we'd like; that's why for now, we use a simple patching approach
await toolbox.patching.replace(
manifestFile,
new RegExp('apiVersion: 0.0.1', 'g'),
'apiVersion: 0.0.2',
)
await toolbox.patching.replace(
manifestFile,
new RegExp("apiVersion: '0.0.1'", 'g'),
"apiVersion: '0.0.2'",
)
await toolbox.patching.replace(
manifestFile,
new RegExp('apiVersion: "0.0.1"', 'g'),
'apiVersion: "0.0.2"',
)
},
}
apply: async ({ manifestFile }) => {
await toolbox.patching.replace(
manifestFile,
'specVersion: 0.0.1',
'specVersion: 0.0.2',
)
await toolbox.patching.replace(
manifestFile,
"specVersion: '0.0.1'",
"specVersion: '0.0.2'",
)
await toolbox.patching.replace(
manifestFile,
'specVersion: "0.0.1"',
'specVersion: "0.0.2"',
)
},
}
apply: async ({ manifestFile }) => {
await toolbox.patching.replace(
manifestFile,
'specVersion: 0.0.1',
'specVersion: 0.0.2',
)
await toolbox.patching.replace(
manifestFile,
"specVersion: '0.0.1'",
"specVersion: '0.0.2'",
)
await toolbox.patching.replace(
manifestFile,
'specVersion: "0.0.1"',
'specVersion: "0.0.2"',
)
},
}