Comparing version 1.0.29 to 1.0.30
@@ -5,2 +5,2 @@ /// <reference types="node" /> | ||
export declare function decodeHelmTemplates(data: string): string; | ||
export declare function readHelmTemplateSync(pathOrData: Path | Buffer, parent?: ParentObject): string; | ||
export declare function readHelmTemplateSync(pathOrData: Path | Buffer, parent?: ParentObject, context?: any): string; |
@@ -35,3 +35,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // eslint-disable-next-line no-unused-vars | ||
/******/ var hotCurrentHash = "afdd734625ac3ced0c51"; | ||
/******/ var hotCurrentHash = "46a2298cb8a93f8739d4"; | ||
/******/ var hotRequestTimeout = 10000; | ||
@@ -877,3 +877,3 @@ /******/ var hotCurrentModuleData = {}; | ||
} | ||
function readHelmTemplateSync(pathOrData, parent) { | ||
function readHelmTemplateSync(pathOrData, parent, context) { | ||
var data, basePath = "./"; | ||
@@ -900,3 +900,4 @@ if (typeof pathOrData === "string") { | ||
parentPath: parentPath, | ||
basePath: basePath | ||
basePath: basePath, | ||
context: context | ||
}); | ||
@@ -944,3 +945,3 @@ var yamlData = yaml.safeDump(compiledDoc); | ||
var uri = _a[0], encoding = _a[1]; | ||
var basePath = _b.basePath, parentName = _b.parentName, globalObj = _b.globalObj, _c = _b.parentPath, parentPath = _c === void 0 ? "" : _c, parentObj = _b.parentObj; | ||
var basePath = _b.basePath, parentName = _b.parentName, globalObj = _b.globalObj, _c = _b.parentPath, parentPath = _c === void 0 ? "" : _c, parentObj = _b.parentObj, context = _b.context; | ||
var ext = uri.substring(uri.lastIndexOf(".") + 1, uri.length); | ||
@@ -973,3 +974,3 @@ var resolvedPath = path.resolve(basePath, uri); | ||
parentPath: parentPath | ||
}); | ||
}, context); | ||
} | ||
@@ -980,3 +981,3 @@ else { | ||
parentPath: parentPath | ||
}); | ||
}, context); | ||
} | ||
@@ -1014,10 +1015,12 @@ break; | ||
global: function (_a, _b) { | ||
var name = _a[0]; | ||
var name = _a[0], defaultValue = _a[1]; | ||
var globalObj = _b.globalObj; | ||
return get(globalObj, name); | ||
var value = get(globalObj, name); | ||
return value === undefined ? defaultValue : value; | ||
}, | ||
self: function (_a, _b) { | ||
var name = _a[0]; | ||
var name = _a[0], defaultValue = _a[1]; | ||
var selfObj = _b.selfObj; | ||
return get(selfObj, name); | ||
var value = get(selfObj, name); | ||
return value === undefined ? defaultValue : value; | ||
}, | ||
@@ -1024,0 +1027,0 @@ helm: function (_a) { |
@@ -12,2 +12,3 @@ declare type FunctionMap = { | ||
parentObj?: any; | ||
context?: any; | ||
}; | ||
@@ -14,0 +15,0 @@ export declare const functions: FunctionMap; |
{ | ||
"name": "sls-yaml", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"description": "Serverless framework yaml extension parser", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128712
1541