@alma-cdk/project 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +22 -0
- package/.jsii +5569 -0
- package/.nvmrc +1 -0
- package/API.md +3500 -0
- package/LICENSE +202 -0
- package/README.md +201 -0
- package/assets/accounts-1x.svg +3 -0
- package/assets/accounts-2x.svg +3 -0
- package/assets/accounts-3x.svg +3 -0
- package/assets/accounts.drawio +1 -0
- package/assets/alma-cdk-logo.afdesign +0 -0
- package/assets/alma-cdk-project.svg +61 -0
- package/lib/configurations/accounts.d.ts +108 -0
- package/lib/configurations/accounts.js +176 -0
- package/lib/configurations/environments.d.ts +45 -0
- package/lib/configurations/environments.js +83 -0
- package/lib/configurations/index.d.ts +2 -0
- package/lib/configurations/index.js +8 -0
- package/lib/context/account.d.ts +12 -0
- package/lib/context/account.js +41 -0
- package/lib/context/environment.d.ts +144 -0
- package/lib/context/environment.js +183 -0
- package/lib/context/index.d.ts +2 -0
- package/lib/context/index.js +9 -0
- package/lib/error/add.d.ts +2 -0
- package/lib/error/add.js +9 -0
- package/lib/error/index.d.ts +1 -0
- package/lib/error/index.js +5 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +19 -0
- package/lib/name/index.d.ts +10 -0
- package/lib/name/index.js +18 -0
- package/lib/name/interfaces.d.ts +4 -0
- package/lib/name/interfaces.js +3 -0
- package/lib/name/max-length.d.ts +6 -0
- package/lib/name/max-length.js +29 -0
- package/lib/name/name-path.d.ts +8 -0
- package/lib/name/name-path.js +32 -0
- package/lib/name/name-path.test.d.ts +1 -0
- package/lib/name/name-path.test.js +88 -0
- package/lib/name/name-url.d.ts +8 -0
- package/lib/name/name-url.js +33 -0
- package/lib/name/name-url.test.d.ts +1 -0
- package/lib/name/name-url.test.js +84 -0
- package/lib/name/name.d.ts +13 -0
- package/lib/name/name.js +61 -0
- package/lib/name/name.test.d.ts +1 -0
- package/lib/name/name.test.js +83 -0
- package/lib/name/trim.d.ts +3 -0
- package/lib/name/trim.js +24 -0
- package/lib/name/trim.test.d.ts +1 -0
- package/lib/name/trim.test.js +30 -0
- package/lib/project/account-type.d.ts +10 -0
- package/lib/project/account-type.js +37 -0
- package/lib/project/environment-type.d.ts +9 -0
- package/lib/project/environment-type.js +40 -0
- package/lib/project/envregexp.d.ts +5 -0
- package/lib/project/envregexp.js +17 -0
- package/lib/project/index.d.ts +6 -0
- package/lib/project/index.js +25 -0
- package/lib/project/interfaces.d.ts +102 -0
- package/lib/project/interfaces.js +3 -0
- package/lib/project/project-context.d.ts +29 -0
- package/lib/project/project-context.js +87 -0
- package/lib/project/project.d.ts +51 -0
- package/lib/project/project.js +82 -0
- package/lib/project/resolve-region.d.ts +2 -0
- package/lib/project/resolve-region.js +24 -0
- package/lib/smartstack/description/index.d.ts +6 -0
- package/lib/smartstack/description/index.js +16 -0
- package/lib/smartstack/description/index.test.d.ts +1 -0
- package/lib/smartstack/description/index.test.js +104 -0
- package/lib/smartstack/index.d.ts +1 -0
- package/lib/smartstack/index.js +5 -0
- package/lib/smartstack/name/index.d.ts +8 -0
- package/lib/smartstack/name/index.js +21 -0
- package/lib/smartstack/name/index.test.d.ts +1 -0
- package/lib/smartstack/name/index.test.js +129 -0
- package/lib/smartstack/stack.d.ts +9 -0
- package/lib/smartstack/stack.js +66 -0
- package/lib/smartstack/tags/checks.d.ts +5 -0
- package/lib/smartstack/tags/checks.js +18 -0
- package/lib/smartstack/tags/exclude.d.ts +2 -0
- package/lib/smartstack/tags/exclude.js +17 -0
- package/lib/smartstack/tags/index.d.ts +2 -0
- package/lib/smartstack/tags/index.js +23 -0
- package/lib/smartstack/tags/taggers.d.ts +13 -0
- package/lib/smartstack/tags/taggers.js +41 -0
- package/lib/smartstack/tags/values.d.ts +20 -0
- package/lib/smartstack/tags/values.js +27 -0
- package/lib/smartstack/termination/index.d.ts +5 -0
- package/lib/smartstack/termination/index.js +22 -0
- package/lib/smartstack/termination/index.test.d.ts +1 -0
- package/lib/smartstack/termination/index.test.js +86 -0
- package/lib/template/index.d.ts +5 -0
- package/lib/template/index.js +28 -0
- package/lib/utils/isSet.d.ts +1 -0
- package/lib/utils/isSet.js +9 -0
- package/lib/wrapper/account.d.ts +4 -0
- package/lib/wrapper/account.js +23 -0
- package/lib/wrapper/environment.d.ts +4 -0
- package/lib/wrapper/environment.js +19 -0
- package/lib/wrapper/index.d.ts +2 -0
- package/lib/wrapper/index.js +7 -0
- package/node_modules/a-sync-waterfall/LICENSE +21 -0
- package/node_modules/a-sync-waterfall/README.md +95 -0
- package/node_modules/a-sync-waterfall/index.js +83 -0
- package/node_modules/a-sync-waterfall/package.json +25 -0
- package/node_modules/a-sync-waterfall/test.js +77 -0
- package/node_modules/asap/CHANGES.md +70 -0
- package/node_modules/asap/LICENSE.md +21 -0
- package/node_modules/asap/README.md +237 -0
- package/node_modules/asap/asap.js +65 -0
- package/node_modules/asap/browser-asap.js +66 -0
- package/node_modules/asap/browser-raw.js +223 -0
- package/node_modules/asap/package.json +62 -0
- package/node_modules/asap/raw.js +101 -0
- package/node_modules/camel-case/LICENSE +21 -0
- package/node_modules/camel-case/README.md +47 -0
- package/node_modules/camel-case/dist/index.d.ts +5 -0
- package/node_modules/camel-case/dist/index.js +23 -0
- package/node_modules/camel-case/dist/index.js.map +1 -0
- package/node_modules/camel-case/dist/index.spec.d.ts +1 -0
- package/node_modules/camel-case/dist/index.spec.js +26 -0
- package/node_modules/camel-case/dist/index.spec.js.map +1 -0
- package/node_modules/camel-case/dist.es2015/index.d.ts +5 -0
- package/node_modules/camel-case/dist.es2015/index.js +17 -0
- package/node_modules/camel-case/dist.es2015/index.js.map +1 -0
- package/node_modules/camel-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/camel-case/dist.es2015/index.spec.js +24 -0
- package/node_modules/camel-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/camel-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/camel-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/camel-case/node_modules/tslib/README.md +164 -0
- package/node_modules/camel-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/camel-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/camel-case/node_modules/tslib/package.json +42 -0
- package/node_modules/camel-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/camel-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/camel-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/camel-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/camel-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/camel-case/package.json +93 -0
- package/node_modules/capital-case/LICENSE +21 -0
- package/node_modules/capital-case/README.md +37 -0
- package/node_modules/capital-case/dist/index.d.ts +4 -0
- package/node_modules/capital-case/dist/index.js +16 -0
- package/node_modules/capital-case/dist/index.js.map +1 -0
- package/node_modules/capital-case/dist/index.spec.d.ts +1 -0
- package/node_modules/capital-case/dist/index.spec.js +24 -0
- package/node_modules/capital-case/dist/index.spec.js.map +1 -0
- package/node_modules/capital-case/dist.es2015/index.d.ts +4 -0
- package/node_modules/capital-case/dist.es2015/index.js +11 -0
- package/node_modules/capital-case/dist.es2015/index.js.map +1 -0
- package/node_modules/capital-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/capital-case/dist.es2015/index.spec.js +22 -0
- package/node_modules/capital-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/capital-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/capital-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/capital-case/node_modules/tslib/README.md +164 -0
- package/node_modules/capital-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/capital-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/capital-case/node_modules/tslib/package.json +42 -0
- package/node_modules/capital-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/capital-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/capital-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/capital-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/capital-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/capital-case/package.json +94 -0
- package/node_modules/change-case/LICENSE +21 -0
- package/node_modules/change-case/README.md +44 -0
- package/node_modules/change-case/dist/index.d.ts +11 -0
- package/node_modules/change-case/dist/index.js +15 -0
- package/node_modules/change-case/dist/index.js.map +1 -0
- package/node_modules/change-case/dist/index.spec.d.ts +1 -0
- package/node_modules/change-case/dist/index.spec.js +9 -0
- package/node_modules/change-case/dist/index.spec.js.map +1 -0
- package/node_modules/change-case/dist.es2015/index.d.ts +11 -0
- package/node_modules/change-case/dist.es2015/index.js +12 -0
- package/node_modules/change-case/dist.es2015/index.js.map +1 -0
- package/node_modules/change-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/change-case/dist.es2015/index.spec.js +7 -0
- package/node_modules/change-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/change-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/change-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/change-case/node_modules/tslib/README.md +164 -0
- package/node_modules/change-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/change-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/change-case/node_modules/tslib/package.json +42 -0
- package/node_modules/change-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/change-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/change-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/change-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/change-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/change-case/package.json +105 -0
- package/node_modules/constant-case/LICENSE +21 -0
- package/node_modules/constant-case/README.md +37 -0
- package/node_modules/constant-case/dist/index.d.ts +3 -0
- package/node_modules/constant-case/dist/index.js +12 -0
- package/node_modules/constant-case/dist/index.js.map +1 -0
- package/node_modules/constant-case/dist/index.spec.d.ts +1 -0
- package/node_modules/constant-case/dist/index.spec.js +26 -0
- package/node_modules/constant-case/dist/index.spec.js.map +1 -0
- package/node_modules/constant-case/dist.es2015/index.d.ts +3 -0
- package/node_modules/constant-case/dist.es2015/index.js +8 -0
- package/node_modules/constant-case/dist.es2015/index.js.map +1 -0
- package/node_modules/constant-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/constant-case/dist.es2015/index.spec.js +24 -0
- package/node_modules/constant-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/constant-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/constant-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/constant-case/node_modules/tslib/README.md +164 -0
- package/node_modules/constant-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/constant-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/constant-case/node_modules/tslib/package.json +42 -0
- package/node_modules/constant-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/constant-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/constant-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/constant-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/constant-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/constant-case/package.json +94 -0
- package/node_modules/dot-case/LICENSE +21 -0
- package/node_modules/dot-case/README.md +37 -0
- package/node_modules/dot-case/dist/index.d.ts +3 -0
- package/node_modules/dot-case/dist/index.js +11 -0
- package/node_modules/dot-case/dist/index.js.map +1 -0
- package/node_modules/dot-case/dist/index.spec.d.ts +1 -0
- package/node_modules/dot-case/dist/index.spec.js +26 -0
- package/node_modules/dot-case/dist/index.spec.js.map +1 -0
- package/node_modules/dot-case/dist.es2015/index.d.ts +3 -0
- package/node_modules/dot-case/dist.es2015/index.js +7 -0
- package/node_modules/dot-case/dist.es2015/index.js.map +1 -0
- package/node_modules/dot-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/dot-case/dist.es2015/index.spec.js +24 -0
- package/node_modules/dot-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/dot-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/dot-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/dot-case/node_modules/tslib/README.md +164 -0
- package/node_modules/dot-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/dot-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/dot-case/node_modules/tslib/package.json +42 -0
- package/node_modules/dot-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/dot-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/dot-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/dot-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/dot-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/dot-case/package.json +93 -0
- package/node_modules/header-case/LICENSE +21 -0
- package/node_modules/header-case/README.md +37 -0
- package/node_modules/header-case/dist/index.d.ts +3 -0
- package/node_modules/header-case/dist/index.js +11 -0
- package/node_modules/header-case/dist/index.js.map +1 -0
- package/node_modules/header-case/dist/index.spec.d.ts +1 -0
- package/node_modules/header-case/dist/index.spec.js +24 -0
- package/node_modules/header-case/dist/index.spec.js.map +1 -0
- package/node_modules/header-case/dist.es2015/index.d.ts +3 -0
- package/node_modules/header-case/dist.es2015/index.js +7 -0
- package/node_modules/header-case/dist.es2015/index.js.map +1 -0
- package/node_modules/header-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/header-case/dist.es2015/index.spec.js +22 -0
- package/node_modules/header-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/header-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/header-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/header-case/node_modules/tslib/README.md +164 -0
- package/node_modules/header-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/header-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/header-case/node_modules/tslib/package.json +42 -0
- package/node_modules/header-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/header-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/header-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/header-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/header-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/header-case/package.json +93 -0
- package/node_modules/lodash/LICENSE +47 -0
- package/node_modules/lodash/README.md +39 -0
- package/node_modules/lodash/_DataView.js +7 -0
- package/node_modules/lodash/_Hash.js +32 -0
- package/node_modules/lodash/_LazyWrapper.js +28 -0
- package/node_modules/lodash/_ListCache.js +32 -0
- package/node_modules/lodash/_LodashWrapper.js +22 -0
- package/node_modules/lodash/_Map.js +7 -0
- package/node_modules/lodash/_MapCache.js +32 -0
- package/node_modules/lodash/_Promise.js +7 -0
- package/node_modules/lodash/_Set.js +7 -0
- package/node_modules/lodash/_SetCache.js +27 -0
- package/node_modules/lodash/_Stack.js +27 -0
- package/node_modules/lodash/_Symbol.js +6 -0
- package/node_modules/lodash/_Uint8Array.js +6 -0
- package/node_modules/lodash/_WeakMap.js +7 -0
- package/node_modules/lodash/_apply.js +21 -0
- package/node_modules/lodash/_arrayAggregator.js +22 -0
- package/node_modules/lodash/_arrayEach.js +22 -0
- package/node_modules/lodash/_arrayEachRight.js +21 -0
- package/node_modules/lodash/_arrayEvery.js +23 -0
- package/node_modules/lodash/_arrayFilter.js +25 -0
- package/node_modules/lodash/_arrayIncludes.js +17 -0
- package/node_modules/lodash/_arrayIncludesWith.js +22 -0
- package/node_modules/lodash/_arrayLikeKeys.js +49 -0
- package/node_modules/lodash/_arrayMap.js +21 -0
- package/node_modules/lodash/_arrayPush.js +20 -0
- package/node_modules/lodash/_arrayReduce.js +26 -0
- package/node_modules/lodash/_arrayReduceRight.js +24 -0
- package/node_modules/lodash/_arraySample.js +15 -0
- package/node_modules/lodash/_arraySampleSize.js +17 -0
- package/node_modules/lodash/_arrayShuffle.js +15 -0
- package/node_modules/lodash/_arraySome.js +23 -0
- package/node_modules/lodash/_asciiSize.js +12 -0
- package/node_modules/lodash/_asciiToArray.js +12 -0
- package/node_modules/lodash/_asciiWords.js +15 -0
- package/node_modules/lodash/_assignMergeValue.js +20 -0
- package/node_modules/lodash/_assignValue.js +28 -0
- package/node_modules/lodash/_assocIndexOf.js +21 -0
- package/node_modules/lodash/_baseAggregator.js +21 -0
- package/node_modules/lodash/_baseAssign.js +17 -0
- package/node_modules/lodash/_baseAssignIn.js +17 -0
- package/node_modules/lodash/_baseAssignValue.js +25 -0
- package/node_modules/lodash/_baseAt.js +23 -0
- package/node_modules/lodash/_baseClamp.js +22 -0
- package/node_modules/lodash/_baseClone.js +166 -0
- package/node_modules/lodash/_baseConforms.js +18 -0
- package/node_modules/lodash/_baseConformsTo.js +27 -0
- package/node_modules/lodash/_baseCreate.js +30 -0
- package/node_modules/lodash/_baseDelay.js +21 -0
- package/node_modules/lodash/_baseDifference.js +67 -0
- package/node_modules/lodash/_baseEach.js +14 -0
- package/node_modules/lodash/_baseEachRight.js +14 -0
- package/node_modules/lodash/_baseEvery.js +21 -0
- package/node_modules/lodash/_baseExtremum.js +32 -0
- package/node_modules/lodash/_baseFill.js +32 -0
- package/node_modules/lodash/_baseFilter.js +21 -0
- package/node_modules/lodash/_baseFindIndex.js +24 -0
- package/node_modules/lodash/_baseFindKey.js +23 -0
- package/node_modules/lodash/_baseFlatten.js +38 -0
- package/node_modules/lodash/_baseFor.js +16 -0
- package/node_modules/lodash/_baseForOwn.js +16 -0
- package/node_modules/lodash/_baseForOwnRight.js +16 -0
- package/node_modules/lodash/_baseForRight.js +15 -0
- package/node_modules/lodash/_baseFunctions.js +19 -0
- package/node_modules/lodash/_baseGet.js +24 -0
- package/node_modules/lodash/_baseGetAllKeys.js +20 -0
- package/node_modules/lodash/_baseGetTag.js +28 -0
- package/node_modules/lodash/_baseGt.js +14 -0
- package/node_modules/lodash/_baseHas.js +19 -0
- package/node_modules/lodash/_baseHasIn.js +13 -0
- package/node_modules/lodash/_baseInRange.js +18 -0
- package/node_modules/lodash/_baseIndexOf.js +20 -0
- package/node_modules/lodash/_baseIndexOfWith.js +23 -0
- package/node_modules/lodash/_baseIntersection.js +74 -0
- package/node_modules/lodash/_baseInverter.js +21 -0
- package/node_modules/lodash/_baseInvoke.js +24 -0
- package/node_modules/lodash/_baseIsArguments.js +18 -0
- package/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
- package/node_modules/lodash/_baseIsDate.js +18 -0
- package/node_modules/lodash/_baseIsEqual.js +28 -0
- package/node_modules/lodash/_baseIsEqualDeep.js +83 -0
- package/node_modules/lodash/_baseIsMap.js +18 -0
- package/node_modules/lodash/_baseIsMatch.js +62 -0
- package/node_modules/lodash/_baseIsNaN.js +12 -0
- package/node_modules/lodash/_baseIsNative.js +47 -0
- package/node_modules/lodash/_baseIsRegExp.js +18 -0
- package/node_modules/lodash/_baseIsSet.js +18 -0
- package/node_modules/lodash/_baseIsTypedArray.js +60 -0
- package/node_modules/lodash/_baseIteratee.js +31 -0
- package/node_modules/lodash/_baseKeys.js +30 -0
- package/node_modules/lodash/_baseKeysIn.js +33 -0
- package/node_modules/lodash/_baseLodash.js +10 -0
- package/node_modules/lodash/_baseLt.js +14 -0
- package/node_modules/lodash/_baseMap.js +22 -0
- package/node_modules/lodash/_baseMatches.js +22 -0
- package/node_modules/lodash/_baseMatchesProperty.js +33 -0
- package/node_modules/lodash/_baseMean.js +20 -0
- package/node_modules/lodash/_baseMerge.js +42 -0
- package/node_modules/lodash/_baseMergeDeep.js +94 -0
- package/node_modules/lodash/_baseNth.js +20 -0
- package/node_modules/lodash/_baseOrderBy.js +49 -0
- package/node_modules/lodash/_basePick.js +19 -0
- package/node_modules/lodash/_basePickBy.js +30 -0
- package/node_modules/lodash/_baseProperty.js +14 -0
- package/node_modules/lodash/_basePropertyDeep.js +16 -0
- package/node_modules/lodash/_basePropertyOf.js +14 -0
- package/node_modules/lodash/_basePullAll.js +51 -0
- package/node_modules/lodash/_basePullAt.js +37 -0
- package/node_modules/lodash/_baseRandom.js +18 -0
- package/node_modules/lodash/_baseRange.js +28 -0
- package/node_modules/lodash/_baseReduce.js +23 -0
- package/node_modules/lodash/_baseRepeat.js +35 -0
- package/node_modules/lodash/_baseRest.js +17 -0
- package/node_modules/lodash/_baseSample.js +15 -0
- package/node_modules/lodash/_baseSampleSize.js +18 -0
- package/node_modules/lodash/_baseSet.js +51 -0
- package/node_modules/lodash/_baseSetData.js +17 -0
- package/node_modules/lodash/_baseSetToString.js +22 -0
- package/node_modules/lodash/_baseShuffle.js +15 -0
- package/node_modules/lodash/_baseSlice.js +31 -0
- package/node_modules/lodash/_baseSome.js +22 -0
- package/node_modules/lodash/_baseSortBy.js +21 -0
- package/node_modules/lodash/_baseSortedIndex.js +42 -0
- package/node_modules/lodash/_baseSortedIndexBy.js +67 -0
- package/node_modules/lodash/_baseSortedUniq.js +30 -0
- package/node_modules/lodash/_baseSum.js +24 -0
- package/node_modules/lodash/_baseTimes.js +20 -0
- package/node_modules/lodash/_baseToNumber.js +24 -0
- package/node_modules/lodash/_baseToPairs.js +18 -0
- package/node_modules/lodash/_baseToString.js +37 -0
- package/node_modules/lodash/_baseTrim.js +19 -0
- package/node_modules/lodash/_baseUnary.js +14 -0
- package/node_modules/lodash/_baseUniq.js +72 -0
- package/node_modules/lodash/_baseUnset.js +20 -0
- package/node_modules/lodash/_baseUpdate.js +18 -0
- package/node_modules/lodash/_baseValues.js +19 -0
- package/node_modules/lodash/_baseWhile.js +26 -0
- package/node_modules/lodash/_baseWrapperValue.js +25 -0
- package/node_modules/lodash/_baseXor.js +36 -0
- package/node_modules/lodash/_baseZipObject.js +23 -0
- package/node_modules/lodash/_cacheHas.js +13 -0
- package/node_modules/lodash/_castArrayLikeObject.js +14 -0
- package/node_modules/lodash/_castFunction.js +14 -0
- package/node_modules/lodash/_castPath.js +21 -0
- package/node_modules/lodash/_castRest.js +14 -0
- package/node_modules/lodash/_castSlice.js +18 -0
- package/node_modules/lodash/_charsEndIndex.js +19 -0
- package/node_modules/lodash/_charsStartIndex.js +20 -0
- package/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/node_modules/lodash/_cloneBuffer.js +35 -0
- package/node_modules/lodash/_cloneDataView.js +16 -0
- package/node_modules/lodash/_cloneRegExp.js +17 -0
- package/node_modules/lodash/_cloneSymbol.js +18 -0
- package/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/node_modules/lodash/_compareAscending.js +41 -0
- package/node_modules/lodash/_compareMultiple.js +44 -0
- package/node_modules/lodash/_composeArgs.js +39 -0
- package/node_modules/lodash/_composeArgsRight.js +41 -0
- package/node_modules/lodash/_copyArray.js +20 -0
- package/node_modules/lodash/_copyObject.js +40 -0
- package/node_modules/lodash/_copySymbols.js +16 -0
- package/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/node_modules/lodash/_coreJsData.js +6 -0
- package/node_modules/lodash/_countHolders.js +21 -0
- package/node_modules/lodash/_createAggregator.js +23 -0
- package/node_modules/lodash/_createAssigner.js +37 -0
- package/node_modules/lodash/_createBaseEach.js +32 -0
- package/node_modules/lodash/_createBaseFor.js +25 -0
- package/node_modules/lodash/_createBind.js +28 -0
- package/node_modules/lodash/_createCaseFirst.js +33 -0
- package/node_modules/lodash/_createCompounder.js +24 -0
- package/node_modules/lodash/_createCtor.js +37 -0
- package/node_modules/lodash/_createCurry.js +46 -0
- package/node_modules/lodash/_createFind.js +25 -0
- package/node_modules/lodash/_createFlow.js +78 -0
- package/node_modules/lodash/_createHybrid.js +92 -0
- package/node_modules/lodash/_createInverter.js +17 -0
- package/node_modules/lodash/_createMathOperation.js +38 -0
- package/node_modules/lodash/_createOver.js +27 -0
- package/node_modules/lodash/_createPadding.js +33 -0
- package/node_modules/lodash/_createPartial.js +43 -0
- package/node_modules/lodash/_createRange.js +30 -0
- package/node_modules/lodash/_createRecurry.js +56 -0
- package/node_modules/lodash/_createRelationalOperation.js +20 -0
- package/node_modules/lodash/_createRound.js +35 -0
- package/node_modules/lodash/_createSet.js +19 -0
- package/node_modules/lodash/_createToPairs.js +30 -0
- package/node_modules/lodash/_createWrap.js +106 -0
- package/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
- package/node_modules/lodash/_customDefaultsMerge.js +28 -0
- package/node_modules/lodash/_customOmitClone.js +16 -0
- package/node_modules/lodash/_deburrLetter.js +71 -0
- package/node_modules/lodash/_defineProperty.js +11 -0
- package/node_modules/lodash/_equalArrays.js +84 -0
- package/node_modules/lodash/_equalByTag.js +112 -0
- package/node_modules/lodash/_equalObjects.js +90 -0
- package/node_modules/lodash/_escapeHtmlChar.js +21 -0
- package/node_modules/lodash/_escapeStringChar.js +22 -0
- package/node_modules/lodash/_flatRest.js +16 -0
- package/node_modules/lodash/_freeGlobal.js +4 -0
- package/node_modules/lodash/_getAllKeys.js +16 -0
- package/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/node_modules/lodash/_getData.js +15 -0
- package/node_modules/lodash/_getFuncName.js +31 -0
- package/node_modules/lodash/_getHolder.js +13 -0
- package/node_modules/lodash/_getMapData.js +18 -0
- package/node_modules/lodash/_getMatchData.js +24 -0
- package/node_modules/lodash/_getNative.js +17 -0
- package/node_modules/lodash/_getPrototype.js +6 -0
- package/node_modules/lodash/_getRawTag.js +46 -0
- package/node_modules/lodash/_getSymbols.js +30 -0
- package/node_modules/lodash/_getSymbolsIn.js +25 -0
- package/node_modules/lodash/_getTag.js +58 -0
- package/node_modules/lodash/_getValue.js +13 -0
- package/node_modules/lodash/_getView.js +33 -0
- package/node_modules/lodash/_getWrapDetails.js +17 -0
- package/node_modules/lodash/_hasPath.js +39 -0
- package/node_modules/lodash/_hasUnicode.js +26 -0
- package/node_modules/lodash/_hasUnicodeWord.js +15 -0
- package/node_modules/lodash/_hashClear.js +15 -0
- package/node_modules/lodash/_hashDelete.js +17 -0
- package/node_modules/lodash/_hashGet.js +30 -0
- package/node_modules/lodash/_hashHas.js +23 -0
- package/node_modules/lodash/_hashSet.js +23 -0
- package/node_modules/lodash/_initCloneArray.js +26 -0
- package/node_modules/lodash/_initCloneByTag.js +77 -0
- package/node_modules/lodash/_initCloneObject.js +18 -0
- package/node_modules/lodash/_insertWrapDetails.js +23 -0
- package/node_modules/lodash/_isFlattenable.js +20 -0
- package/node_modules/lodash/_isIndex.js +25 -0
- package/node_modules/lodash/_isIterateeCall.js +30 -0
- package/node_modules/lodash/_isKey.js +29 -0
- package/node_modules/lodash/_isKeyable.js +15 -0
- package/node_modules/lodash/_isLaziable.js +28 -0
- package/node_modules/lodash/_isMaskable.js +14 -0
- package/node_modules/lodash/_isMasked.js +20 -0
- package/node_modules/lodash/_isPrototype.js +18 -0
- package/node_modules/lodash/_isStrictComparable.js +15 -0
- package/node_modules/lodash/_iteratorToArray.js +18 -0
- package/node_modules/lodash/_lazyClone.js +23 -0
- package/node_modules/lodash/_lazyReverse.js +23 -0
- package/node_modules/lodash/_lazyValue.js +69 -0
- package/node_modules/lodash/_listCacheClear.js +13 -0
- package/node_modules/lodash/_listCacheDelete.js +35 -0
- package/node_modules/lodash/_listCacheGet.js +19 -0
- package/node_modules/lodash/_listCacheHas.js +16 -0
- package/node_modules/lodash/_listCacheSet.js +26 -0
- package/node_modules/lodash/_mapCacheClear.js +21 -0
- package/node_modules/lodash/_mapCacheDelete.js +18 -0
- package/node_modules/lodash/_mapCacheGet.js +16 -0
- package/node_modules/lodash/_mapCacheHas.js +16 -0
- package/node_modules/lodash/_mapCacheSet.js +22 -0
- package/node_modules/lodash/_mapToArray.js +18 -0
- package/node_modules/lodash/_matchesStrictComparable.js +20 -0
- package/node_modules/lodash/_memoizeCapped.js +26 -0
- package/node_modules/lodash/_mergeData.js +90 -0
- package/node_modules/lodash/_metaMap.js +6 -0
- package/node_modules/lodash/_nativeCreate.js +6 -0
- package/node_modules/lodash/_nativeKeys.js +6 -0
- package/node_modules/lodash/_nativeKeysIn.js +20 -0
- package/node_modules/lodash/_nodeUtil.js +30 -0
- package/node_modules/lodash/_objectToString.js +22 -0
- package/node_modules/lodash/_overArg.js +15 -0
- package/node_modules/lodash/_overRest.js +36 -0
- package/node_modules/lodash/_parent.js +16 -0
- package/node_modules/lodash/_reEscape.js +4 -0
- package/node_modules/lodash/_reEvaluate.js +4 -0
- package/node_modules/lodash/_reInterpolate.js +4 -0
- package/node_modules/lodash/_realNames.js +4 -0
- package/node_modules/lodash/_reorder.js +29 -0
- package/node_modules/lodash/_replaceHolders.js +29 -0
- package/node_modules/lodash/_root.js +9 -0
- package/node_modules/lodash/_safeGet.js +21 -0
- package/node_modules/lodash/_setCacheAdd.js +19 -0
- package/node_modules/lodash/_setCacheHas.js +14 -0
- package/node_modules/lodash/_setData.js +20 -0
- package/node_modules/lodash/_setToArray.js +18 -0
- package/node_modules/lodash/_setToPairs.js +18 -0
- package/node_modules/lodash/_setToString.js +14 -0
- package/node_modules/lodash/_setWrapToString.js +21 -0
- package/node_modules/lodash/_shortOut.js +37 -0
- package/node_modules/lodash/_shuffleSelf.js +28 -0
- package/node_modules/lodash/_stackClear.js +15 -0
- package/node_modules/lodash/_stackDelete.js +18 -0
- package/node_modules/lodash/_stackGet.js +14 -0
- package/node_modules/lodash/_stackHas.js +14 -0
- package/node_modules/lodash/_stackSet.js +34 -0
- package/node_modules/lodash/_strictIndexOf.js +23 -0
- package/node_modules/lodash/_strictLastIndexOf.js +21 -0
- package/node_modules/lodash/_stringSize.js +18 -0
- package/node_modules/lodash/_stringToArray.js +18 -0
- package/node_modules/lodash/_stringToPath.js +27 -0
- package/node_modules/lodash/_toKey.js +21 -0
- package/node_modules/lodash/_toSource.js +26 -0
- package/node_modules/lodash/_trimmedEndIndex.js +19 -0
- package/node_modules/lodash/_unescapeHtmlChar.js +21 -0
- package/node_modules/lodash/_unicodeSize.js +44 -0
- package/node_modules/lodash/_unicodeToArray.js +40 -0
- package/node_modules/lodash/_unicodeWords.js +69 -0
- package/node_modules/lodash/_updateWrapDetails.js +46 -0
- package/node_modules/lodash/_wrapperClone.js +23 -0
- package/node_modules/lodash/add.js +22 -0
- package/node_modules/lodash/after.js +42 -0
- package/node_modules/lodash/array.js +67 -0
- package/node_modules/lodash/ary.js +29 -0
- package/node_modules/lodash/assign.js +58 -0
- package/node_modules/lodash/assignIn.js +40 -0
- package/node_modules/lodash/assignInWith.js +38 -0
- package/node_modules/lodash/assignWith.js +37 -0
- package/node_modules/lodash/at.js +23 -0
- package/node_modules/lodash/attempt.js +35 -0
- package/node_modules/lodash/before.js +40 -0
- package/node_modules/lodash/bind.js +57 -0
- package/node_modules/lodash/bindAll.js +41 -0
- package/node_modules/lodash/bindKey.js +68 -0
- package/node_modules/lodash/camelCase.js +29 -0
- package/node_modules/lodash/capitalize.js +23 -0
- package/node_modules/lodash/castArray.js +44 -0
- package/node_modules/lodash/ceil.js +26 -0
- package/node_modules/lodash/chain.js +38 -0
- package/node_modules/lodash/chunk.js +50 -0
- package/node_modules/lodash/clamp.js +39 -0
- package/node_modules/lodash/clone.js +36 -0
- package/node_modules/lodash/cloneDeep.js +29 -0
- package/node_modules/lodash/cloneDeepWith.js +40 -0
- package/node_modules/lodash/cloneWith.js +42 -0
- package/node_modules/lodash/collection.js +30 -0
- package/node_modules/lodash/commit.js +33 -0
- package/node_modules/lodash/compact.js +31 -0
- package/node_modules/lodash/concat.js +43 -0
- package/node_modules/lodash/cond.js +60 -0
- package/node_modules/lodash/conforms.js +35 -0
- package/node_modules/lodash/conformsTo.js +32 -0
- package/node_modules/lodash/constant.js +26 -0
- package/node_modules/lodash/core.js +3877 -0
- package/node_modules/lodash/core.min.js +29 -0
- package/node_modules/lodash/countBy.js +40 -0
- package/node_modules/lodash/create.js +43 -0
- package/node_modules/lodash/curry.js +57 -0
- package/node_modules/lodash/curryRight.js +54 -0
- package/node_modules/lodash/date.js +3 -0
- package/node_modules/lodash/debounce.js +191 -0
- package/node_modules/lodash/deburr.js +45 -0
- package/node_modules/lodash/defaultTo.js +25 -0
- package/node_modules/lodash/defaults.js +64 -0
- package/node_modules/lodash/defaultsDeep.js +30 -0
- package/node_modules/lodash/defer.js +26 -0
- package/node_modules/lodash/delay.js +28 -0
- package/node_modules/lodash/difference.js +33 -0
- package/node_modules/lodash/differenceBy.js +44 -0
- package/node_modules/lodash/differenceWith.js +40 -0
- package/node_modules/lodash/divide.js +22 -0
- package/node_modules/lodash/drop.js +38 -0
- package/node_modules/lodash/dropRight.js +39 -0
- package/node_modules/lodash/dropRightWhile.js +45 -0
- package/node_modules/lodash/dropWhile.js +45 -0
- package/node_modules/lodash/each.js +1 -0
- package/node_modules/lodash/eachRight.js +1 -0
- package/node_modules/lodash/endsWith.js +43 -0
- package/node_modules/lodash/entries.js +1 -0
- package/node_modules/lodash/entriesIn.js +1 -0
- package/node_modules/lodash/eq.js +37 -0
- package/node_modules/lodash/escape.js +43 -0
- package/node_modules/lodash/escapeRegExp.js +32 -0
- package/node_modules/lodash/every.js +56 -0
- package/node_modules/lodash/extend.js +1 -0
- package/node_modules/lodash/extendWith.js +1 -0
- package/node_modules/lodash/fill.js +45 -0
- package/node_modules/lodash/filter.js +52 -0
- package/node_modules/lodash/find.js +42 -0
- package/node_modules/lodash/findIndex.js +55 -0
- package/node_modules/lodash/findKey.js +44 -0
- package/node_modules/lodash/findLast.js +25 -0
- package/node_modules/lodash/findLastIndex.js +59 -0
- package/node_modules/lodash/findLastKey.js +44 -0
- package/node_modules/lodash/first.js +1 -0
- package/node_modules/lodash/flake.lock +40 -0
- package/node_modules/lodash/flake.nix +20 -0
- package/node_modules/lodash/flatMap.js +29 -0
- package/node_modules/lodash/flatMapDeep.js +31 -0
- package/node_modules/lodash/flatMapDepth.js +31 -0
- package/node_modules/lodash/flatten.js +22 -0
- package/node_modules/lodash/flattenDeep.js +25 -0
- package/node_modules/lodash/flattenDepth.js +33 -0
- package/node_modules/lodash/flip.js +28 -0
- package/node_modules/lodash/floor.js +26 -0
- package/node_modules/lodash/flow.js +27 -0
- package/node_modules/lodash/flowRight.js +26 -0
- package/node_modules/lodash/forEach.js +41 -0
- package/node_modules/lodash/forEachRight.js +31 -0
- package/node_modules/lodash/forIn.js +39 -0
- package/node_modules/lodash/forInRight.js +37 -0
- package/node_modules/lodash/forOwn.js +36 -0
- package/node_modules/lodash/forOwnRight.js +34 -0
- package/node_modules/lodash/fp/F.js +1 -0
- package/node_modules/lodash/fp/T.js +1 -0
- package/node_modules/lodash/fp/__.js +1 -0
- package/node_modules/lodash/fp/_baseConvert.js +569 -0
- package/node_modules/lodash/fp/_convertBrowser.js +18 -0
- package/node_modules/lodash/fp/_falseOptions.js +7 -0
- package/node_modules/lodash/fp/_mapping.js +358 -0
- package/node_modules/lodash/fp/_util.js +16 -0
- package/node_modules/lodash/fp/add.js +5 -0
- package/node_modules/lodash/fp/after.js +5 -0
- package/node_modules/lodash/fp/all.js +1 -0
- package/node_modules/lodash/fp/allPass.js +1 -0
- package/node_modules/lodash/fp/always.js +1 -0
- package/node_modules/lodash/fp/any.js +1 -0
- package/node_modules/lodash/fp/anyPass.js +1 -0
- package/node_modules/lodash/fp/apply.js +1 -0
- package/node_modules/lodash/fp/array.js +2 -0
- package/node_modules/lodash/fp/ary.js +5 -0
- package/node_modules/lodash/fp/assign.js +5 -0
- package/node_modules/lodash/fp/assignAll.js +5 -0
- package/node_modules/lodash/fp/assignAllWith.js +5 -0
- package/node_modules/lodash/fp/assignIn.js +5 -0
- package/node_modules/lodash/fp/assignInAll.js +5 -0
- package/node_modules/lodash/fp/assignInAllWith.js +5 -0
- package/node_modules/lodash/fp/assignInWith.js +5 -0
- package/node_modules/lodash/fp/assignWith.js +5 -0
- package/node_modules/lodash/fp/assoc.js +1 -0
- package/node_modules/lodash/fp/assocPath.js +1 -0
- package/node_modules/lodash/fp/at.js +5 -0
- package/node_modules/lodash/fp/attempt.js +5 -0
- package/node_modules/lodash/fp/before.js +5 -0
- package/node_modules/lodash/fp/bind.js +5 -0
- package/node_modules/lodash/fp/bindAll.js +5 -0
- package/node_modules/lodash/fp/bindKey.js +5 -0
- package/node_modules/lodash/fp/camelCase.js +5 -0
- package/node_modules/lodash/fp/capitalize.js +5 -0
- package/node_modules/lodash/fp/castArray.js +5 -0
- package/node_modules/lodash/fp/ceil.js +5 -0
- package/node_modules/lodash/fp/chain.js +5 -0
- package/node_modules/lodash/fp/chunk.js +5 -0
- package/node_modules/lodash/fp/clamp.js +5 -0
- package/node_modules/lodash/fp/clone.js +5 -0
- package/node_modules/lodash/fp/cloneDeep.js +5 -0
- package/node_modules/lodash/fp/cloneDeepWith.js +5 -0
- package/node_modules/lodash/fp/cloneWith.js +5 -0
- package/node_modules/lodash/fp/collection.js +2 -0
- package/node_modules/lodash/fp/commit.js +5 -0
- package/node_modules/lodash/fp/compact.js +5 -0
- package/node_modules/lodash/fp/complement.js +1 -0
- package/node_modules/lodash/fp/compose.js +1 -0
- package/node_modules/lodash/fp/concat.js +5 -0
- package/node_modules/lodash/fp/cond.js +5 -0
- package/node_modules/lodash/fp/conforms.js +1 -0
- package/node_modules/lodash/fp/conformsTo.js +5 -0
- package/node_modules/lodash/fp/constant.js +5 -0
- package/node_modules/lodash/fp/contains.js +1 -0
- package/node_modules/lodash/fp/convert.js +18 -0
- package/node_modules/lodash/fp/countBy.js +5 -0
- package/node_modules/lodash/fp/create.js +5 -0
- package/node_modules/lodash/fp/curry.js +5 -0
- package/node_modules/lodash/fp/curryN.js +5 -0
- package/node_modules/lodash/fp/curryRight.js +5 -0
- package/node_modules/lodash/fp/curryRightN.js +5 -0
- package/node_modules/lodash/fp/date.js +2 -0
- package/node_modules/lodash/fp/debounce.js +5 -0
- package/node_modules/lodash/fp/deburr.js +5 -0
- package/node_modules/lodash/fp/defaultTo.js +5 -0
- package/node_modules/lodash/fp/defaults.js +5 -0
- package/node_modules/lodash/fp/defaultsAll.js +5 -0
- package/node_modules/lodash/fp/defaultsDeep.js +5 -0
- package/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
- package/node_modules/lodash/fp/defer.js +5 -0
- package/node_modules/lodash/fp/delay.js +5 -0
- package/node_modules/lodash/fp/difference.js +5 -0
- package/node_modules/lodash/fp/differenceBy.js +5 -0
- package/node_modules/lodash/fp/differenceWith.js +5 -0
- package/node_modules/lodash/fp/dissoc.js +1 -0
- package/node_modules/lodash/fp/dissocPath.js +1 -0
- package/node_modules/lodash/fp/divide.js +5 -0
- package/node_modules/lodash/fp/drop.js +5 -0
- package/node_modules/lodash/fp/dropLast.js +1 -0
- package/node_modules/lodash/fp/dropLastWhile.js +1 -0
- package/node_modules/lodash/fp/dropRight.js +5 -0
- package/node_modules/lodash/fp/dropRightWhile.js +5 -0
- package/node_modules/lodash/fp/dropWhile.js +5 -0
- package/node_modules/lodash/fp/each.js +1 -0
- package/node_modules/lodash/fp/eachRight.js +1 -0
- package/node_modules/lodash/fp/endsWith.js +5 -0
- package/node_modules/lodash/fp/entries.js +1 -0
- package/node_modules/lodash/fp/entriesIn.js +1 -0
- package/node_modules/lodash/fp/eq.js +5 -0
- package/node_modules/lodash/fp/equals.js +1 -0
- package/node_modules/lodash/fp/escape.js +5 -0
- package/node_modules/lodash/fp/escapeRegExp.js +5 -0
- package/node_modules/lodash/fp/every.js +5 -0
- package/node_modules/lodash/fp/extend.js +1 -0
- package/node_modules/lodash/fp/extendAll.js +1 -0
- package/node_modules/lodash/fp/extendAllWith.js +1 -0
- package/node_modules/lodash/fp/extendWith.js +1 -0
- package/node_modules/lodash/fp/fill.js +5 -0
- package/node_modules/lodash/fp/filter.js +5 -0
- package/node_modules/lodash/fp/find.js +5 -0
- package/node_modules/lodash/fp/findFrom.js +5 -0
- package/node_modules/lodash/fp/findIndex.js +5 -0
- package/node_modules/lodash/fp/findIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findKey.js +5 -0
- package/node_modules/lodash/fp/findLast.js +5 -0
- package/node_modules/lodash/fp/findLastFrom.js +5 -0
- package/node_modules/lodash/fp/findLastIndex.js +5 -0
- package/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findLastKey.js +5 -0
- package/node_modules/lodash/fp/first.js +1 -0
- package/node_modules/lodash/fp/flatMap.js +5 -0
- package/node_modules/lodash/fp/flatMapDeep.js +5 -0
- package/node_modules/lodash/fp/flatMapDepth.js +5 -0
- package/node_modules/lodash/fp/flatten.js +5 -0
- package/node_modules/lodash/fp/flattenDeep.js +5 -0
- package/node_modules/lodash/fp/flattenDepth.js +5 -0
- package/node_modules/lodash/fp/flip.js +5 -0
- package/node_modules/lodash/fp/floor.js +5 -0
- package/node_modules/lodash/fp/flow.js +5 -0
- package/node_modules/lodash/fp/flowRight.js +5 -0
- package/node_modules/lodash/fp/forEach.js +5 -0
- package/node_modules/lodash/fp/forEachRight.js +5 -0
- package/node_modules/lodash/fp/forIn.js +5 -0
- package/node_modules/lodash/fp/forInRight.js +5 -0
- package/node_modules/lodash/fp/forOwn.js +5 -0
- package/node_modules/lodash/fp/forOwnRight.js +5 -0
- package/node_modules/lodash/fp/fromPairs.js +5 -0
- package/node_modules/lodash/fp/function.js +2 -0
- package/node_modules/lodash/fp/functions.js +5 -0
- package/node_modules/lodash/fp/functionsIn.js +5 -0
- package/node_modules/lodash/fp/get.js +5 -0
- package/node_modules/lodash/fp/getOr.js +5 -0
- package/node_modules/lodash/fp/groupBy.js +5 -0
- package/node_modules/lodash/fp/gt.js +5 -0
- package/node_modules/lodash/fp/gte.js +5 -0
- package/node_modules/lodash/fp/has.js +5 -0
- package/node_modules/lodash/fp/hasIn.js +5 -0
- package/node_modules/lodash/fp/head.js +5 -0
- package/node_modules/lodash/fp/identical.js +1 -0
- package/node_modules/lodash/fp/identity.js +5 -0
- package/node_modules/lodash/fp/inRange.js +5 -0
- package/node_modules/lodash/fp/includes.js +5 -0
- package/node_modules/lodash/fp/includesFrom.js +5 -0
- package/node_modules/lodash/fp/indexBy.js +1 -0
- package/node_modules/lodash/fp/indexOf.js +5 -0
- package/node_modules/lodash/fp/indexOfFrom.js +5 -0
- package/node_modules/lodash/fp/init.js +1 -0
- package/node_modules/lodash/fp/initial.js +5 -0
- package/node_modules/lodash/fp/intersection.js +5 -0
- package/node_modules/lodash/fp/intersectionBy.js +5 -0
- package/node_modules/lodash/fp/intersectionWith.js +5 -0
- package/node_modules/lodash/fp/invert.js +5 -0
- package/node_modules/lodash/fp/invertBy.js +5 -0
- package/node_modules/lodash/fp/invertObj.js +1 -0
- package/node_modules/lodash/fp/invoke.js +5 -0
- package/node_modules/lodash/fp/invokeArgs.js +5 -0
- package/node_modules/lodash/fp/invokeArgsMap.js +5 -0
- package/node_modules/lodash/fp/invokeMap.js +5 -0
- package/node_modules/lodash/fp/isArguments.js +5 -0
- package/node_modules/lodash/fp/isArray.js +5 -0
- package/node_modules/lodash/fp/isArrayBuffer.js +5 -0
- package/node_modules/lodash/fp/isArrayLike.js +5 -0
- package/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
- package/node_modules/lodash/fp/isBoolean.js +5 -0
- package/node_modules/lodash/fp/isBuffer.js +5 -0
- package/node_modules/lodash/fp/isDate.js +5 -0
- package/node_modules/lodash/fp/isElement.js +5 -0
- package/node_modules/lodash/fp/isEmpty.js +5 -0
- package/node_modules/lodash/fp/isEqual.js +5 -0
- package/node_modules/lodash/fp/isEqualWith.js +5 -0
- package/node_modules/lodash/fp/isError.js +5 -0
- package/node_modules/lodash/fp/isFinite.js +5 -0
- package/node_modules/lodash/fp/isFunction.js +5 -0
- package/node_modules/lodash/fp/isInteger.js +5 -0
- package/node_modules/lodash/fp/isLength.js +5 -0
- package/node_modules/lodash/fp/isMap.js +5 -0
- package/node_modules/lodash/fp/isMatch.js +5 -0
- package/node_modules/lodash/fp/isMatchWith.js +5 -0
- package/node_modules/lodash/fp/isNaN.js +5 -0
- package/node_modules/lodash/fp/isNative.js +5 -0
- package/node_modules/lodash/fp/isNil.js +5 -0
- package/node_modules/lodash/fp/isNull.js +5 -0
- package/node_modules/lodash/fp/isNumber.js +5 -0
- package/node_modules/lodash/fp/isObject.js +5 -0
- package/node_modules/lodash/fp/isObjectLike.js +5 -0
- package/node_modules/lodash/fp/isPlainObject.js +5 -0
- package/node_modules/lodash/fp/isRegExp.js +5 -0
- package/node_modules/lodash/fp/isSafeInteger.js +5 -0
- package/node_modules/lodash/fp/isSet.js +5 -0
- package/node_modules/lodash/fp/isString.js +5 -0
- package/node_modules/lodash/fp/isSymbol.js +5 -0
- package/node_modules/lodash/fp/isTypedArray.js +5 -0
- package/node_modules/lodash/fp/isUndefined.js +5 -0
- package/node_modules/lodash/fp/isWeakMap.js +5 -0
- package/node_modules/lodash/fp/isWeakSet.js +5 -0
- package/node_modules/lodash/fp/iteratee.js +5 -0
- package/node_modules/lodash/fp/join.js +5 -0
- package/node_modules/lodash/fp/juxt.js +1 -0
- package/node_modules/lodash/fp/kebabCase.js +5 -0
- package/node_modules/lodash/fp/keyBy.js +5 -0
- package/node_modules/lodash/fp/keys.js +5 -0
- package/node_modules/lodash/fp/keysIn.js +5 -0
- package/node_modules/lodash/fp/lang.js +2 -0
- package/node_modules/lodash/fp/last.js +5 -0
- package/node_modules/lodash/fp/lastIndexOf.js +5 -0
- package/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
- package/node_modules/lodash/fp/lowerCase.js +5 -0
- package/node_modules/lodash/fp/lowerFirst.js +5 -0
- package/node_modules/lodash/fp/lt.js +5 -0
- package/node_modules/lodash/fp/lte.js +5 -0
- package/node_modules/lodash/fp/map.js +5 -0
- package/node_modules/lodash/fp/mapKeys.js +5 -0
- package/node_modules/lodash/fp/mapValues.js +5 -0
- package/node_modules/lodash/fp/matches.js +1 -0
- package/node_modules/lodash/fp/matchesProperty.js +5 -0
- package/node_modules/lodash/fp/math.js +2 -0
- package/node_modules/lodash/fp/max.js +5 -0
- package/node_modules/lodash/fp/maxBy.js +5 -0
- package/node_modules/lodash/fp/mean.js +5 -0
- package/node_modules/lodash/fp/meanBy.js +5 -0
- package/node_modules/lodash/fp/memoize.js +5 -0
- package/node_modules/lodash/fp/merge.js +5 -0
- package/node_modules/lodash/fp/mergeAll.js +5 -0
- package/node_modules/lodash/fp/mergeAllWith.js +5 -0
- package/node_modules/lodash/fp/mergeWith.js +5 -0
- package/node_modules/lodash/fp/method.js +5 -0
- package/node_modules/lodash/fp/methodOf.js +5 -0
- package/node_modules/lodash/fp/min.js +5 -0
- package/node_modules/lodash/fp/minBy.js +5 -0
- package/node_modules/lodash/fp/mixin.js +5 -0
- package/node_modules/lodash/fp/multiply.js +5 -0
- package/node_modules/lodash/fp/nAry.js +1 -0
- package/node_modules/lodash/fp/negate.js +5 -0
- package/node_modules/lodash/fp/next.js +5 -0
- package/node_modules/lodash/fp/noop.js +5 -0
- package/node_modules/lodash/fp/now.js +5 -0
- package/node_modules/lodash/fp/nth.js +5 -0
- package/node_modules/lodash/fp/nthArg.js +5 -0
- package/node_modules/lodash/fp/number.js +2 -0
- package/node_modules/lodash/fp/object.js +2 -0
- package/node_modules/lodash/fp/omit.js +5 -0
- package/node_modules/lodash/fp/omitAll.js +1 -0
- package/node_modules/lodash/fp/omitBy.js +5 -0
- package/node_modules/lodash/fp/once.js +5 -0
- package/node_modules/lodash/fp/orderBy.js +5 -0
- package/node_modules/lodash/fp/over.js +5 -0
- package/node_modules/lodash/fp/overArgs.js +5 -0
- package/node_modules/lodash/fp/overEvery.js +5 -0
- package/node_modules/lodash/fp/overSome.js +5 -0
- package/node_modules/lodash/fp/pad.js +5 -0
- package/node_modules/lodash/fp/padChars.js +5 -0
- package/node_modules/lodash/fp/padCharsEnd.js +5 -0
- package/node_modules/lodash/fp/padCharsStart.js +5 -0
- package/node_modules/lodash/fp/padEnd.js +5 -0
- package/node_modules/lodash/fp/padStart.js +5 -0
- package/node_modules/lodash/fp/parseInt.js +5 -0
- package/node_modules/lodash/fp/partial.js +5 -0
- package/node_modules/lodash/fp/partialRight.js +5 -0
- package/node_modules/lodash/fp/partition.js +5 -0
- package/node_modules/lodash/fp/path.js +1 -0
- package/node_modules/lodash/fp/pathEq.js +1 -0
- package/node_modules/lodash/fp/pathOr.js +1 -0
- package/node_modules/lodash/fp/paths.js +1 -0
- package/node_modules/lodash/fp/pick.js +5 -0
- package/node_modules/lodash/fp/pickAll.js +1 -0
- package/node_modules/lodash/fp/pickBy.js +5 -0
- package/node_modules/lodash/fp/pipe.js +1 -0
- package/node_modules/lodash/fp/placeholder.js +6 -0
- package/node_modules/lodash/fp/plant.js +5 -0
- package/node_modules/lodash/fp/pluck.js +1 -0
- package/node_modules/lodash/fp/prop.js +1 -0
- package/node_modules/lodash/fp/propEq.js +1 -0
- package/node_modules/lodash/fp/propOr.js +1 -0
- package/node_modules/lodash/fp/property.js +1 -0
- package/node_modules/lodash/fp/propertyOf.js +5 -0
- package/node_modules/lodash/fp/props.js +1 -0
- package/node_modules/lodash/fp/pull.js +5 -0
- package/node_modules/lodash/fp/pullAll.js +5 -0
- package/node_modules/lodash/fp/pullAllBy.js +5 -0
- package/node_modules/lodash/fp/pullAllWith.js +5 -0
- package/node_modules/lodash/fp/pullAt.js +5 -0
- package/node_modules/lodash/fp/random.js +5 -0
- package/node_modules/lodash/fp/range.js +5 -0
- package/node_modules/lodash/fp/rangeRight.js +5 -0
- package/node_modules/lodash/fp/rangeStep.js +5 -0
- package/node_modules/lodash/fp/rangeStepRight.js +5 -0
- package/node_modules/lodash/fp/rearg.js +5 -0
- package/node_modules/lodash/fp/reduce.js +5 -0
- package/node_modules/lodash/fp/reduceRight.js +5 -0
- package/node_modules/lodash/fp/reject.js +5 -0
- package/node_modules/lodash/fp/remove.js +5 -0
- package/node_modules/lodash/fp/repeat.js +5 -0
- package/node_modules/lodash/fp/replace.js +5 -0
- package/node_modules/lodash/fp/rest.js +5 -0
- package/node_modules/lodash/fp/restFrom.js +5 -0
- package/node_modules/lodash/fp/result.js +5 -0
- package/node_modules/lodash/fp/reverse.js +5 -0
- package/node_modules/lodash/fp/round.js +5 -0
- package/node_modules/lodash/fp/sample.js +5 -0
- package/node_modules/lodash/fp/sampleSize.js +5 -0
- package/node_modules/lodash/fp/seq.js +2 -0
- package/node_modules/lodash/fp/set.js +5 -0
- package/node_modules/lodash/fp/setWith.js +5 -0
- package/node_modules/lodash/fp/shuffle.js +5 -0
- package/node_modules/lodash/fp/size.js +5 -0
- package/node_modules/lodash/fp/slice.js +5 -0
- package/node_modules/lodash/fp/snakeCase.js +5 -0
- package/node_modules/lodash/fp/some.js +5 -0
- package/node_modules/lodash/fp/sortBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndex.js +5 -0
- package/node_modules/lodash/fp/sortedIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndex.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedUniq.js +5 -0
- package/node_modules/lodash/fp/sortedUniqBy.js +5 -0
- package/node_modules/lodash/fp/split.js +5 -0
- package/node_modules/lodash/fp/spread.js +5 -0
- package/node_modules/lodash/fp/spreadFrom.js +5 -0
- package/node_modules/lodash/fp/startCase.js +5 -0
- package/node_modules/lodash/fp/startsWith.js +5 -0
- package/node_modules/lodash/fp/string.js +2 -0
- package/node_modules/lodash/fp/stubArray.js +5 -0
- package/node_modules/lodash/fp/stubFalse.js +5 -0
- package/node_modules/lodash/fp/stubObject.js +5 -0
- package/node_modules/lodash/fp/stubString.js +5 -0
- package/node_modules/lodash/fp/stubTrue.js +5 -0
- package/node_modules/lodash/fp/subtract.js +5 -0
- package/node_modules/lodash/fp/sum.js +5 -0
- package/node_modules/lodash/fp/sumBy.js +5 -0
- package/node_modules/lodash/fp/symmetricDifference.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
- package/node_modules/lodash/fp/tail.js +5 -0
- package/node_modules/lodash/fp/take.js +5 -0
- package/node_modules/lodash/fp/takeLast.js +1 -0
- package/node_modules/lodash/fp/takeLastWhile.js +1 -0
- package/node_modules/lodash/fp/takeRight.js +5 -0
- package/node_modules/lodash/fp/takeRightWhile.js +5 -0
- package/node_modules/lodash/fp/takeWhile.js +5 -0
- package/node_modules/lodash/fp/tap.js +5 -0
- package/node_modules/lodash/fp/template.js +5 -0
- package/node_modules/lodash/fp/templateSettings.js +5 -0
- package/node_modules/lodash/fp/throttle.js +5 -0
- package/node_modules/lodash/fp/thru.js +5 -0
- package/node_modules/lodash/fp/times.js +5 -0
- package/node_modules/lodash/fp/toArray.js +5 -0
- package/node_modules/lodash/fp/toFinite.js +5 -0
- package/node_modules/lodash/fp/toInteger.js +5 -0
- package/node_modules/lodash/fp/toIterator.js +5 -0
- package/node_modules/lodash/fp/toJSON.js +5 -0
- package/node_modules/lodash/fp/toLength.js +5 -0
- package/node_modules/lodash/fp/toLower.js +5 -0
- package/node_modules/lodash/fp/toNumber.js +5 -0
- package/node_modules/lodash/fp/toPairs.js +5 -0
- package/node_modules/lodash/fp/toPairsIn.js +5 -0
- package/node_modules/lodash/fp/toPath.js +5 -0
- package/node_modules/lodash/fp/toPlainObject.js +5 -0
- package/node_modules/lodash/fp/toSafeInteger.js +5 -0
- package/node_modules/lodash/fp/toString.js +5 -0
- package/node_modules/lodash/fp/toUpper.js +5 -0
- package/node_modules/lodash/fp/transform.js +5 -0
- package/node_modules/lodash/fp/trim.js +5 -0
- package/node_modules/lodash/fp/trimChars.js +5 -0
- package/node_modules/lodash/fp/trimCharsEnd.js +5 -0
- package/node_modules/lodash/fp/trimCharsStart.js +5 -0
- package/node_modules/lodash/fp/trimEnd.js +5 -0
- package/node_modules/lodash/fp/trimStart.js +5 -0
- package/node_modules/lodash/fp/truncate.js +5 -0
- package/node_modules/lodash/fp/unapply.js +1 -0
- package/node_modules/lodash/fp/unary.js +5 -0
- package/node_modules/lodash/fp/unescape.js +5 -0
- package/node_modules/lodash/fp/union.js +5 -0
- package/node_modules/lodash/fp/unionBy.js +5 -0
- package/node_modules/lodash/fp/unionWith.js +5 -0
- package/node_modules/lodash/fp/uniq.js +5 -0
- package/node_modules/lodash/fp/uniqBy.js +5 -0
- package/node_modules/lodash/fp/uniqWith.js +5 -0
- package/node_modules/lodash/fp/uniqueId.js +5 -0
- package/node_modules/lodash/fp/unnest.js +1 -0
- package/node_modules/lodash/fp/unset.js +5 -0
- package/node_modules/lodash/fp/unzip.js +5 -0
- package/node_modules/lodash/fp/unzipWith.js +5 -0
- package/node_modules/lodash/fp/update.js +5 -0
- package/node_modules/lodash/fp/updateWith.js +5 -0
- package/node_modules/lodash/fp/upperCase.js +5 -0
- package/node_modules/lodash/fp/upperFirst.js +5 -0
- package/node_modules/lodash/fp/useWith.js +1 -0
- package/node_modules/lodash/fp/util.js +2 -0
- package/node_modules/lodash/fp/value.js +5 -0
- package/node_modules/lodash/fp/valueOf.js +5 -0
- package/node_modules/lodash/fp/values.js +5 -0
- package/node_modules/lodash/fp/valuesIn.js +5 -0
- package/node_modules/lodash/fp/where.js +1 -0
- package/node_modules/lodash/fp/whereEq.js +1 -0
- package/node_modules/lodash/fp/without.js +5 -0
- package/node_modules/lodash/fp/words.js +5 -0
- package/node_modules/lodash/fp/wrap.js +5 -0
- package/node_modules/lodash/fp/wrapperAt.js +5 -0
- package/node_modules/lodash/fp/wrapperChain.js +5 -0
- package/node_modules/lodash/fp/wrapperLodash.js +5 -0
- package/node_modules/lodash/fp/wrapperReverse.js +5 -0
- package/node_modules/lodash/fp/wrapperValue.js +5 -0
- package/node_modules/lodash/fp/xor.js +5 -0
- package/node_modules/lodash/fp/xorBy.js +5 -0
- package/node_modules/lodash/fp/xorWith.js +5 -0
- package/node_modules/lodash/fp/zip.js +5 -0
- package/node_modules/lodash/fp/zipAll.js +5 -0
- package/node_modules/lodash/fp/zipObj.js +1 -0
- package/node_modules/lodash/fp/zipObject.js +5 -0
- package/node_modules/lodash/fp/zipObjectDeep.js +5 -0
- package/node_modules/lodash/fp/zipWith.js +5 -0
- package/node_modules/lodash/fp.js +2 -0
- package/node_modules/lodash/fromPairs.js +28 -0
- package/node_modules/lodash/function.js +25 -0
- package/node_modules/lodash/functions.js +31 -0
- package/node_modules/lodash/functionsIn.js +31 -0
- package/node_modules/lodash/get.js +33 -0
- package/node_modules/lodash/groupBy.js +41 -0
- package/node_modules/lodash/gt.js +29 -0
- package/node_modules/lodash/gte.js +30 -0
- package/node_modules/lodash/has.js +35 -0
- package/node_modules/lodash/hasIn.js +34 -0
- package/node_modules/lodash/head.js +23 -0
- package/node_modules/lodash/identity.js +21 -0
- package/node_modules/lodash/inRange.js +55 -0
- package/node_modules/lodash/includes.js +53 -0
- package/node_modules/lodash/index.js +1 -0
- package/node_modules/lodash/indexOf.js +42 -0
- package/node_modules/lodash/initial.js +22 -0
- package/node_modules/lodash/intersection.js +30 -0
- package/node_modules/lodash/intersectionBy.js +45 -0
- package/node_modules/lodash/intersectionWith.js +41 -0
- package/node_modules/lodash/invert.js +42 -0
- package/node_modules/lodash/invertBy.js +56 -0
- package/node_modules/lodash/invoke.js +24 -0
- package/node_modules/lodash/invokeMap.js +41 -0
- package/node_modules/lodash/isArguments.js +36 -0
- package/node_modules/lodash/isArray.js +26 -0
- package/node_modules/lodash/isArrayBuffer.js +27 -0
- package/node_modules/lodash/isArrayLike.js +33 -0
- package/node_modules/lodash/isArrayLikeObject.js +33 -0
- package/node_modules/lodash/isBoolean.js +29 -0
- package/node_modules/lodash/isBuffer.js +38 -0
- package/node_modules/lodash/isDate.js +27 -0
- package/node_modules/lodash/isElement.js +25 -0
- package/node_modules/lodash/isEmpty.js +77 -0
- package/node_modules/lodash/isEqual.js +35 -0
- package/node_modules/lodash/isEqualWith.js +41 -0
- package/node_modules/lodash/isError.js +36 -0
- package/node_modules/lodash/isFinite.js +36 -0
- package/node_modules/lodash/isFunction.js +37 -0
- package/node_modules/lodash/isInteger.js +33 -0
- package/node_modules/lodash/isLength.js +35 -0
- package/node_modules/lodash/isMap.js +27 -0
- package/node_modules/lodash/isMatch.js +36 -0
- package/node_modules/lodash/isMatchWith.js +41 -0
- package/node_modules/lodash/isNaN.js +38 -0
- package/node_modules/lodash/isNative.js +40 -0
- package/node_modules/lodash/isNil.js +25 -0
- package/node_modules/lodash/isNull.js +22 -0
- package/node_modules/lodash/isNumber.js +38 -0
- package/node_modules/lodash/isObject.js +31 -0
- package/node_modules/lodash/isObjectLike.js +29 -0
- package/node_modules/lodash/isPlainObject.js +62 -0
- package/node_modules/lodash/isRegExp.js +27 -0
- package/node_modules/lodash/isSafeInteger.js +37 -0
- package/node_modules/lodash/isSet.js +27 -0
- package/node_modules/lodash/isString.js +30 -0
- package/node_modules/lodash/isSymbol.js +29 -0
- package/node_modules/lodash/isTypedArray.js +27 -0
- package/node_modules/lodash/isUndefined.js +22 -0
- package/node_modules/lodash/isWeakMap.js +28 -0
- package/node_modules/lodash/isWeakSet.js +28 -0
- package/node_modules/lodash/iteratee.js +53 -0
- package/node_modules/lodash/join.js +26 -0
- package/node_modules/lodash/kebabCase.js +28 -0
- package/node_modules/lodash/keyBy.js +36 -0
- package/node_modules/lodash/keys.js +37 -0
- package/node_modules/lodash/keysIn.js +32 -0
- package/node_modules/lodash/lang.js +58 -0
- package/node_modules/lodash/last.js +20 -0
- package/node_modules/lodash/lastIndexOf.js +46 -0
- package/node_modules/lodash/lodash.js +17209 -0
- package/node_modules/lodash/lodash.min.js +140 -0
- package/node_modules/lodash/lowerCase.js +27 -0
- package/node_modules/lodash/lowerFirst.js +22 -0
- package/node_modules/lodash/lt.js +29 -0
- package/node_modules/lodash/lte.js +30 -0
- package/node_modules/lodash/map.js +53 -0
- package/node_modules/lodash/mapKeys.js +36 -0
- package/node_modules/lodash/mapValues.js +43 -0
- package/node_modules/lodash/matches.js +46 -0
- package/node_modules/lodash/matchesProperty.js +44 -0
- package/node_modules/lodash/math.js +17 -0
- package/node_modules/lodash/max.js +29 -0
- package/node_modules/lodash/maxBy.js +34 -0
- package/node_modules/lodash/mean.js +22 -0
- package/node_modules/lodash/meanBy.js +31 -0
- package/node_modules/lodash/memoize.js +73 -0
- package/node_modules/lodash/merge.js +39 -0
- package/node_modules/lodash/mergeWith.js +39 -0
- package/node_modules/lodash/method.js +34 -0
- package/node_modules/lodash/methodOf.js +33 -0
- package/node_modules/lodash/min.js +29 -0
- package/node_modules/lodash/minBy.js +34 -0
- package/node_modules/lodash/mixin.js +74 -0
- package/node_modules/lodash/multiply.js +22 -0
- package/node_modules/lodash/negate.js +40 -0
- package/node_modules/lodash/next.js +35 -0
- package/node_modules/lodash/noop.js +17 -0
- package/node_modules/lodash/now.js +23 -0
- package/node_modules/lodash/nth.js +29 -0
- package/node_modules/lodash/nthArg.js +32 -0
- package/node_modules/lodash/number.js +5 -0
- package/node_modules/lodash/object.js +49 -0
- package/node_modules/lodash/omit.js +57 -0
- package/node_modules/lodash/omitBy.js +29 -0
- package/node_modules/lodash/once.js +25 -0
- package/node_modules/lodash/orderBy.js +47 -0
- package/node_modules/lodash/over.js +24 -0
- package/node_modules/lodash/overArgs.js +61 -0
- package/node_modules/lodash/overEvery.js +34 -0
- package/node_modules/lodash/overSome.js +37 -0
- package/node_modules/lodash/package.json +21 -0
- package/node_modules/lodash/pad.js +49 -0
- package/node_modules/lodash/padEnd.js +39 -0
- package/node_modules/lodash/padStart.js +39 -0
- package/node_modules/lodash/parseInt.js +43 -0
- package/node_modules/lodash/partial.js +50 -0
- package/node_modules/lodash/partialRight.js +49 -0
- package/node_modules/lodash/partition.js +43 -0
- package/node_modules/lodash/pick.js +25 -0
- package/node_modules/lodash/pickBy.js +37 -0
- package/node_modules/lodash/plant.js +48 -0
- package/node_modules/lodash/property.js +32 -0
- package/node_modules/lodash/propertyOf.js +30 -0
- package/node_modules/lodash/pull.js +29 -0
- package/node_modules/lodash/pullAll.js +29 -0
- package/node_modules/lodash/pullAllBy.js +33 -0
- package/node_modules/lodash/pullAllWith.js +32 -0
- package/node_modules/lodash/pullAt.js +43 -0
- package/node_modules/lodash/random.js +82 -0
- package/node_modules/lodash/range.js +46 -0
- package/node_modules/lodash/rangeRight.js +41 -0
- package/node_modules/lodash/rearg.js +33 -0
- package/node_modules/lodash/reduce.js +51 -0
- package/node_modules/lodash/reduceRight.js +36 -0
- package/node_modules/lodash/reject.js +46 -0
- package/node_modules/lodash/release.md +48 -0
- package/node_modules/lodash/remove.js +53 -0
- package/node_modules/lodash/repeat.js +37 -0
- package/node_modules/lodash/replace.js +29 -0
- package/node_modules/lodash/rest.js +40 -0
- package/node_modules/lodash/result.js +56 -0
- package/node_modules/lodash/reverse.js +34 -0
- package/node_modules/lodash/round.js +26 -0
- package/node_modules/lodash/sample.js +24 -0
- package/node_modules/lodash/sampleSize.js +37 -0
- package/node_modules/lodash/seq.js +16 -0
- package/node_modules/lodash/set.js +35 -0
- package/node_modules/lodash/setWith.js +32 -0
- package/node_modules/lodash/shuffle.js +25 -0
- package/node_modules/lodash/size.js +46 -0
- package/node_modules/lodash/slice.js +37 -0
- package/node_modules/lodash/snakeCase.js +28 -0
- package/node_modules/lodash/some.js +51 -0
- package/node_modules/lodash/sortBy.js +48 -0
- package/node_modules/lodash/sortedIndex.js +24 -0
- package/node_modules/lodash/sortedIndexBy.js +33 -0
- package/node_modules/lodash/sortedIndexOf.js +31 -0
- package/node_modules/lodash/sortedLastIndex.js +25 -0
- package/node_modules/lodash/sortedLastIndexBy.js +33 -0
- package/node_modules/lodash/sortedLastIndexOf.js +31 -0
- package/node_modules/lodash/sortedUniq.js +24 -0
- package/node_modules/lodash/sortedUniqBy.js +26 -0
- package/node_modules/lodash/split.js +52 -0
- package/node_modules/lodash/spread.js +63 -0
- package/node_modules/lodash/startCase.js +29 -0
- package/node_modules/lodash/startsWith.js +39 -0
- package/node_modules/lodash/string.js +33 -0
- package/node_modules/lodash/stubArray.js +23 -0
- package/node_modules/lodash/stubFalse.js +18 -0
- package/node_modules/lodash/stubObject.js +23 -0
- package/node_modules/lodash/stubString.js +18 -0
- package/node_modules/lodash/stubTrue.js +18 -0
- package/node_modules/lodash/subtract.js +22 -0
- package/node_modules/lodash/sum.js +24 -0
- package/node_modules/lodash/sumBy.js +33 -0
- package/node_modules/lodash/tail.js +22 -0
- package/node_modules/lodash/take.js +37 -0
- package/node_modules/lodash/takeRight.js +39 -0
- package/node_modules/lodash/takeRightWhile.js +45 -0
- package/node_modules/lodash/takeWhile.js +45 -0
- package/node_modules/lodash/tap.js +29 -0
- package/node_modules/lodash/template.js +272 -0
- package/node_modules/lodash/templateSettings.js +67 -0
- package/node_modules/lodash/throttle.js +69 -0
- package/node_modules/lodash/thru.js +28 -0
- package/node_modules/lodash/times.js +51 -0
- package/node_modules/lodash/toArray.js +58 -0
- package/node_modules/lodash/toFinite.js +42 -0
- package/node_modules/lodash/toInteger.js +36 -0
- package/node_modules/lodash/toIterator.js +23 -0
- package/node_modules/lodash/toJSON.js +1 -0
- package/node_modules/lodash/toLength.js +38 -0
- package/node_modules/lodash/toLower.js +28 -0
- package/node_modules/lodash/toNumber.js +64 -0
- package/node_modules/lodash/toPairs.js +30 -0
- package/node_modules/lodash/toPairsIn.js +30 -0
- package/node_modules/lodash/toPath.js +33 -0
- package/node_modules/lodash/toPlainObject.js +32 -0
- package/node_modules/lodash/toSafeInteger.js +37 -0
- package/node_modules/lodash/toString.js +28 -0
- package/node_modules/lodash/toUpper.js +28 -0
- package/node_modules/lodash/transform.js +65 -0
- package/node_modules/lodash/trim.js +47 -0
- package/node_modules/lodash/trimEnd.js +41 -0
- package/node_modules/lodash/trimStart.js +43 -0
- package/node_modules/lodash/truncate.js +111 -0
- package/node_modules/lodash/unary.js +22 -0
- package/node_modules/lodash/unescape.js +34 -0
- package/node_modules/lodash/union.js +26 -0
- package/node_modules/lodash/unionBy.js +39 -0
- package/node_modules/lodash/unionWith.js +34 -0
- package/node_modules/lodash/uniq.js +25 -0
- package/node_modules/lodash/uniqBy.js +31 -0
- package/node_modules/lodash/uniqWith.js +28 -0
- package/node_modules/lodash/uniqueId.js +28 -0
- package/node_modules/lodash/unset.js +34 -0
- package/node_modules/lodash/unzip.js +45 -0
- package/node_modules/lodash/unzipWith.js +39 -0
- package/node_modules/lodash/update.js +35 -0
- package/node_modules/lodash/updateWith.js +33 -0
- package/node_modules/lodash/upperCase.js +27 -0
- package/node_modules/lodash/upperFirst.js +22 -0
- package/node_modules/lodash/util.js +34 -0
- package/node_modules/lodash/value.js +1 -0
- package/node_modules/lodash/valueOf.js +1 -0
- package/node_modules/lodash/values.js +34 -0
- package/node_modules/lodash/valuesIn.js +32 -0
- package/node_modules/lodash/without.js +31 -0
- package/node_modules/lodash/words.js +35 -0
- package/node_modules/lodash/wrap.js +30 -0
- package/node_modules/lodash/wrapperAt.js +48 -0
- package/node_modules/lodash/wrapperChain.js +34 -0
- package/node_modules/lodash/wrapperLodash.js +147 -0
- package/node_modules/lodash/wrapperReverse.js +44 -0
- package/node_modules/lodash/wrapperValue.js +21 -0
- package/node_modules/lodash/xor.js +28 -0
- package/node_modules/lodash/xorBy.js +39 -0
- package/node_modules/lodash/xorWith.js +34 -0
- package/node_modules/lodash/zip.js +22 -0
- package/node_modules/lodash/zipObject.js +24 -0
- package/node_modules/lodash/zipObjectDeep.js +23 -0
- package/node_modules/lodash/zipWith.js +32 -0
- package/node_modules/lower-case/LICENSE +21 -0
- package/node_modules/lower-case/README.md +35 -0
- package/node_modules/lower-case/dist/index.d.ts +8 -0
- package/node_modules/lower-case/dist/index.js +53 -0
- package/node_modules/lower-case/dist/index.js.map +1 -0
- package/node_modules/lower-case/dist/index.spec.d.ts +1 -0
- package/node_modules/lower-case/dist/index.spec.js +36 -0
- package/node_modules/lower-case/dist/index.spec.js.map +1 -0
- package/node_modules/lower-case/dist.es2015/index.d.ts +8 -0
- package/node_modules/lower-case/dist.es2015/index.js +48 -0
- package/node_modules/lower-case/dist.es2015/index.js.map +1 -0
- package/node_modules/lower-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/lower-case/dist.es2015/index.spec.js +34 -0
- package/node_modules/lower-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/lower-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/lower-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/lower-case/node_modules/tslib/README.md +164 -0
- package/node_modules/lower-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/lower-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/lower-case/node_modules/tslib/package.json +42 -0
- package/node_modules/lower-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/lower-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/lower-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/lower-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/lower-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/lower-case/package.json +91 -0
- package/node_modules/no-case/LICENSE +21 -0
- package/node_modules/no-case/README.md +37 -0
- package/node_modules/no-case/dist/index.d.ts +10 -0
- package/node_modules/no-case/dist/index.js +35 -0
- package/node_modules/no-case/dist/index.js.map +1 -0
- package/node_modules/no-case/dist/index.spec.d.ts +1 -0
- package/node_modules/no-case/dist/index.spec.js +59 -0
- package/node_modules/no-case/dist/index.spec.js.map +1 -0
- package/node_modules/no-case/dist.es2015/index.d.ts +10 -0
- package/node_modules/no-case/dist.es2015/index.js +31 -0
- package/node_modules/no-case/dist.es2015/index.js.map +1 -0
- package/node_modules/no-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/no-case/dist.es2015/index.spec.js +57 -0
- package/node_modules/no-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/no-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/no-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/no-case/node_modules/tslib/README.md +164 -0
- package/node_modules/no-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/no-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/no-case/node_modules/tslib/package.json +42 -0
- package/node_modules/no-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/no-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/no-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/no-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/no-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/no-case/package.json +89 -0
- package/node_modules/nunjucks/CHANGELOG.md +736 -0
- package/node_modules/nunjucks/LICENSE +26 -0
- package/node_modules/nunjucks/README.md +58 -0
- package/node_modules/nunjucks/bin/precompile +58 -0
- package/node_modules/nunjucks/bin/precompile.cmd +5 -0
- package/node_modules/nunjucks/browser/nunjucks-slim.js +4263 -0
- package/node_modules/nunjucks/browser/nunjucks-slim.js.map +1 -0
- package/node_modules/nunjucks/browser/nunjucks-slim.min.js +3 -0
- package/node_modules/nunjucks/browser/nunjucks-slim.min.js.map +1 -0
- package/node_modules/nunjucks/browser/nunjucks.js +8423 -0
- package/node_modules/nunjucks/browser/nunjucks.js.map +1 -0
- package/node_modules/nunjucks/browser/nunjucks.min.js +3 -0
- package/node_modules/nunjucks/browser/nunjucks.min.js.map +1 -0
- package/node_modules/nunjucks/index.js +103 -0
- package/node_modules/nunjucks/node_modules/commander/CHANGELOG.md +385 -0
- package/node_modules/nunjucks/node_modules/commander/LICENSE +22 -0
- package/node_modules/nunjucks/node_modules/commander/Readme.md +737 -0
- package/node_modules/nunjucks/node_modules/commander/index.js +1756 -0
- package/node_modules/nunjucks/node_modules/commander/package.json +52 -0
- package/node_modules/nunjucks/node_modules/commander/typings/index.d.ts +386 -0
- package/node_modules/nunjucks/package.json +116 -0
- package/node_modules/nunjucks/src/compiler.js +1449 -0
- package/node_modules/nunjucks/src/environment.js +659 -0
- package/node_modules/nunjucks/src/express-app.js +28 -0
- package/node_modules/nunjucks/src/filters.js +680 -0
- package/node_modules/nunjucks/src/globals.js +72 -0
- package/node_modules/nunjucks/src/jinja-compat.js +358 -0
- package/node_modules/nunjucks/src/lexer.js +542 -0
- package/node_modules/nunjucks/src/lib.js +417 -0
- package/node_modules/nunjucks/src/loader.js +30 -0
- package/node_modules/nunjucks/src/loaders.js +5 -0
- package/node_modules/nunjucks/src/node-loaders.js +177 -0
- package/node_modules/nunjucks/src/nodes.js +394 -0
- package/node_modules/nunjucks/src/object.js +129 -0
- package/node_modules/nunjucks/src/parser.js +1267 -0
- package/node_modules/nunjucks/src/precompile-global.js +22 -0
- package/node_modules/nunjucks/src/precompile.js +131 -0
- package/node_modules/nunjucks/src/precompiled-loader.js +41 -0
- package/node_modules/nunjucks/src/runtime.js +405 -0
- package/node_modules/nunjucks/src/tests.js +286 -0
- package/node_modules/nunjucks/src/transformer.js +197 -0
- package/node_modules/nunjucks/src/web-loaders.js +110 -0
- package/node_modules/param-case/LICENSE +21 -0
- package/node_modules/param-case/README.md +37 -0
- package/node_modules/param-case/dist/index.d.ts +3 -0
- package/node_modules/param-case/dist/index.js +11 -0
- package/node_modules/param-case/dist/index.js.map +1 -0
- package/node_modules/param-case/dist/index.spec.d.ts +1 -0
- package/node_modules/param-case/dist/index.spec.js +24 -0
- package/node_modules/param-case/dist/index.spec.js.map +1 -0
- package/node_modules/param-case/dist.es2015/index.d.ts +3 -0
- package/node_modules/param-case/dist.es2015/index.js +7 -0
- package/node_modules/param-case/dist.es2015/index.js.map +1 -0
- package/node_modules/param-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/param-case/dist.es2015/index.spec.js +22 -0
- package/node_modules/param-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/param-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/param-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/param-case/node_modules/tslib/README.md +164 -0
- package/node_modules/param-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/param-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/param-case/node_modules/tslib/package.json +42 -0
- package/node_modules/param-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/param-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/param-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/param-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/param-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/param-case/package.json +95 -0
- package/node_modules/pascal-case/LICENSE +21 -0
- package/node_modules/pascal-case/README.md +47 -0
- package/node_modules/pascal-case/dist/index.d.ts +5 -0
- package/node_modules/pascal-case/dist/index.js +24 -0
- package/node_modules/pascal-case/dist/index.js.map +1 -0
- package/node_modules/pascal-case/dist/index.spec.d.ts +1 -0
- package/node_modules/pascal-case/dist/index.spec.js +25 -0
- package/node_modules/pascal-case/dist/index.spec.js.map +1 -0
- package/node_modules/pascal-case/dist.es2015/index.d.ts +5 -0
- package/node_modules/pascal-case/dist.es2015/index.js +18 -0
- package/node_modules/pascal-case/dist.es2015/index.js.map +1 -0
- package/node_modules/pascal-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/pascal-case/dist.es2015/index.spec.js +23 -0
- package/node_modules/pascal-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/pascal-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/pascal-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/pascal-case/node_modules/tslib/README.md +164 -0
- package/node_modules/pascal-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/pascal-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/pascal-case/node_modules/tslib/package.json +42 -0
- package/node_modules/pascal-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/pascal-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/pascal-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/pascal-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/pascal-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/pascal-case/package.json +94 -0
- package/node_modules/path-case/LICENSE +21 -0
- package/node_modules/path-case/README.md +37 -0
- package/node_modules/path-case/dist/index.d.ts +3 -0
- package/node_modules/path-case/dist/index.js +11 -0
- package/node_modules/path-case/dist/index.js.map +1 -0
- package/node_modules/path-case/dist/index.spec.d.ts +1 -0
- package/node_modules/path-case/dist/index.spec.js +24 -0
- package/node_modules/path-case/dist/index.spec.js.map +1 -0
- package/node_modules/path-case/dist.es2015/index.d.ts +3 -0
- package/node_modules/path-case/dist.es2015/index.js +7 -0
- package/node_modules/path-case/dist.es2015/index.js.map +1 -0
- package/node_modules/path-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/path-case/dist.es2015/index.spec.js +22 -0
- package/node_modules/path-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/path-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/path-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/path-case/node_modules/tslib/README.md +164 -0
- package/node_modules/path-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/path-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/path-case/node_modules/tslib/package.json +42 -0
- package/node_modules/path-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/path-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/path-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/path-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/path-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/path-case/package.json +92 -0
- package/node_modules/sentence-case/LICENSE +21 -0
- package/node_modules/sentence-case/README.md +37 -0
- package/node_modules/sentence-case/dist/index.d.ts +4 -0
- package/node_modules/sentence-case/dist/index.js +19 -0
- package/node_modules/sentence-case/dist/index.js.map +1 -0
- package/node_modules/sentence-case/dist/index.spec.d.ts +1 -0
- package/node_modules/sentence-case/dist/index.spec.js +24 -0
- package/node_modules/sentence-case/dist/index.spec.js.map +1 -0
- package/node_modules/sentence-case/dist.es2015/index.d.ts +4 -0
- package/node_modules/sentence-case/dist.es2015/index.js +14 -0
- package/node_modules/sentence-case/dist.es2015/index.js.map +1 -0
- package/node_modules/sentence-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/sentence-case/dist.es2015/index.spec.js +22 -0
- package/node_modules/sentence-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/sentence-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/sentence-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/sentence-case/node_modules/tslib/README.md +164 -0
- package/node_modules/sentence-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/sentence-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/sentence-case/node_modules/tslib/package.json +42 -0
- package/node_modules/sentence-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/sentence-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/sentence-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/sentence-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/sentence-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/sentence-case/package.json +93 -0
- package/node_modules/snake-case/LICENSE +21 -0
- package/node_modules/snake-case/README.md +37 -0
- package/node_modules/snake-case/dist/index.d.ts +3 -0
- package/node_modules/snake-case/dist/index.js +11 -0
- package/node_modules/snake-case/dist/index.js.map +1 -0
- package/node_modules/snake-case/dist/index.spec.d.ts +1 -0
- package/node_modules/snake-case/dist/index.spec.js +25 -0
- package/node_modules/snake-case/dist/index.spec.js.map +1 -0
- package/node_modules/snake-case/dist.es2015/index.d.ts +3 -0
- package/node_modules/snake-case/dist.es2015/index.js +7 -0
- package/node_modules/snake-case/dist.es2015/index.js.map +1 -0
- package/node_modules/snake-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/snake-case/dist.es2015/index.spec.js +23 -0
- package/node_modules/snake-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/snake-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/snake-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/snake-case/node_modules/tslib/README.md +164 -0
- package/node_modules/snake-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/snake-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/snake-case/node_modules/tslib/package.json +42 -0
- package/node_modules/snake-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/snake-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/snake-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/snake-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/snake-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/snake-case/package.json +94 -0
- package/node_modules/upper-case/README.md +34 -0
- package/node_modules/upper-case/dist/index.d.ts +8 -0
- package/node_modules/upper-case/dist/index.js +49 -0
- package/node_modules/upper-case/dist/index.js.map +1 -0
- package/node_modules/upper-case/dist/index.spec.d.ts +1 -0
- package/node_modules/upper-case/dist/index.spec.js +34 -0
- package/node_modules/upper-case/dist/index.spec.js.map +1 -0
- package/node_modules/upper-case/dist.es2015/index.d.ts +8 -0
- package/node_modules/upper-case/dist.es2015/index.js +44 -0
- package/node_modules/upper-case/dist.es2015/index.js.map +1 -0
- package/node_modules/upper-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/upper-case/dist.es2015/index.spec.js +32 -0
- package/node_modules/upper-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/upper-case/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/upper-case/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/upper-case/node_modules/tslib/README.md +164 -0
- package/node_modules/upper-case/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/upper-case/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/upper-case/node_modules/tslib/package.json +42 -0
- package/node_modules/upper-case/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/upper-case/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/upper-case/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/upper-case/node_modules/tslib/tslib.html +1 -0
- package/node_modules/upper-case/node_modules/tslib/tslib.js +317 -0
- package/node_modules/upper-case/package.json +90 -0
- package/node_modules/upper-case-first/LICENSE +21 -0
- package/node_modules/upper-case-first/README.md +32 -0
- package/node_modules/upper-case-first/dist/index.d.ts +4 -0
- package/node_modules/upper-case-first/dist/index.js +11 -0
- package/node_modules/upper-case-first/dist/index.js.map +1 -0
- package/node_modules/upper-case-first/dist/index.spec.d.ts +1 -0
- package/node_modules/upper-case-first/dist/index.spec.js +20 -0
- package/node_modules/upper-case-first/dist/index.spec.js.map +1 -0
- package/node_modules/upper-case-first/dist.es2015/index.d.ts +4 -0
- package/node_modules/upper-case-first/dist.es2015/index.js +7 -0
- package/node_modules/upper-case-first/dist.es2015/index.js.map +1 -0
- package/node_modules/upper-case-first/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/upper-case-first/dist.es2015/index.spec.js +18 -0
- package/node_modules/upper-case-first/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/upper-case-first/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/upper-case-first/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/upper-case-first/node_modules/tslib/README.md +164 -0
- package/node_modules/upper-case-first/node_modules/tslib/modules/index.js +55 -0
- package/node_modules/upper-case-first/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/upper-case-first/node_modules/tslib/package.json +42 -0
- package/node_modules/upper-case-first/node_modules/tslib/tslib.d.ts +398 -0
- package/node_modules/upper-case-first/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/upper-case-first/node_modules/tslib/tslib.es6.js +248 -0
- package/node_modules/upper-case-first/node_modules/tslib/tslib.html +1 -0
- package/node_modules/upper-case-first/node_modules/tslib/tslib.js +317 -0
- package/node_modules/upper-case-first/package.json +91 -0
- package/package.json +149 -0
|
@@ -0,0 +1,1449 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
4
|
+
|
|
5
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
6
|
+
|
|
7
|
+
var parser = require('./parser');
|
|
8
|
+
|
|
9
|
+
var transformer = require('./transformer');
|
|
10
|
+
|
|
11
|
+
var nodes = require('./nodes');
|
|
12
|
+
|
|
13
|
+
var _require = require('./lib'),
|
|
14
|
+
TemplateError = _require.TemplateError;
|
|
15
|
+
|
|
16
|
+
var _require2 = require('./runtime'),
|
|
17
|
+
Frame = _require2.Frame;
|
|
18
|
+
|
|
19
|
+
var _require3 = require('./object'),
|
|
20
|
+
Obj = _require3.Obj; // These are all the same for now, but shouldn't be passed straight
|
|
21
|
+
// through
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var compareOps = {
|
|
25
|
+
'==': '==',
|
|
26
|
+
'===': '===',
|
|
27
|
+
'!=': '!=',
|
|
28
|
+
'!==': '!==',
|
|
29
|
+
'<': '<',
|
|
30
|
+
'>': '>',
|
|
31
|
+
'<=': '<=',
|
|
32
|
+
'>=': '>='
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var Compiler = /*#__PURE__*/function (_Obj) {
|
|
36
|
+
_inheritsLoose(Compiler, _Obj);
|
|
37
|
+
|
|
38
|
+
function Compiler() {
|
|
39
|
+
return _Obj.apply(this, arguments) || this;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
var _proto = Compiler.prototype;
|
|
43
|
+
|
|
44
|
+
_proto.init = function init(templateName, throwOnUndefined) {
|
|
45
|
+
this.templateName = templateName;
|
|
46
|
+
this.codebuf = [];
|
|
47
|
+
this.lastId = 0;
|
|
48
|
+
this.buffer = null;
|
|
49
|
+
this.bufferStack = [];
|
|
50
|
+
this._scopeClosers = '';
|
|
51
|
+
this.inBlock = false;
|
|
52
|
+
this.throwOnUndefined = throwOnUndefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
_proto.fail = function fail(msg, lineno, colno) {
|
|
56
|
+
if (lineno !== undefined) {
|
|
57
|
+
lineno += 1;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (colno !== undefined) {
|
|
61
|
+
colno += 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
throw new TemplateError(msg, lineno, colno);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
_proto._pushBuffer = function _pushBuffer() {
|
|
68
|
+
var id = this._tmpid();
|
|
69
|
+
|
|
70
|
+
this.bufferStack.push(this.buffer);
|
|
71
|
+
this.buffer = id;
|
|
72
|
+
|
|
73
|
+
this._emit("var " + this.buffer + " = \"\";");
|
|
74
|
+
|
|
75
|
+
return id;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
_proto._popBuffer = function _popBuffer() {
|
|
79
|
+
this.buffer = this.bufferStack.pop();
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
_proto._emit = function _emit(code) {
|
|
83
|
+
this.codebuf.push(code);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
_proto._emitLine = function _emitLine(code) {
|
|
87
|
+
this._emit(code + '\n');
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
_proto._emitLines = function _emitLines() {
|
|
91
|
+
var _this = this;
|
|
92
|
+
|
|
93
|
+
for (var _len = arguments.length, lines = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
94
|
+
lines[_key] = arguments[_key];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
lines.forEach(function (line) {
|
|
98
|
+
return _this._emitLine(line);
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
_proto._emitFuncBegin = function _emitFuncBegin(node, name) {
|
|
103
|
+
this.buffer = 'output';
|
|
104
|
+
this._scopeClosers = '';
|
|
105
|
+
|
|
106
|
+
this._emitLine("function " + name + "(env, context, frame, runtime, cb) {");
|
|
107
|
+
|
|
108
|
+
this._emitLine("var lineno = " + node.lineno + ";");
|
|
109
|
+
|
|
110
|
+
this._emitLine("var colno = " + node.colno + ";");
|
|
111
|
+
|
|
112
|
+
this._emitLine("var " + this.buffer + " = \"\";");
|
|
113
|
+
|
|
114
|
+
this._emitLine('try {');
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
_proto._emitFuncEnd = function _emitFuncEnd(noReturn) {
|
|
118
|
+
if (!noReturn) {
|
|
119
|
+
this._emitLine('cb(null, ' + this.buffer + ');');
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
this._closeScopeLevels();
|
|
123
|
+
|
|
124
|
+
this._emitLine('} catch (e) {');
|
|
125
|
+
|
|
126
|
+
this._emitLine(' cb(runtime.handleError(e, lineno, colno));');
|
|
127
|
+
|
|
128
|
+
this._emitLine('}');
|
|
129
|
+
|
|
130
|
+
this._emitLine('}');
|
|
131
|
+
|
|
132
|
+
this.buffer = null;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
_proto._addScopeLevel = function _addScopeLevel() {
|
|
136
|
+
this._scopeClosers += '})';
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
_proto._closeScopeLevels = function _closeScopeLevels() {
|
|
140
|
+
this._emitLine(this._scopeClosers + ';');
|
|
141
|
+
|
|
142
|
+
this._scopeClosers = '';
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
_proto._withScopedSyntax = function _withScopedSyntax(func) {
|
|
146
|
+
var _scopeClosers = this._scopeClosers;
|
|
147
|
+
this._scopeClosers = '';
|
|
148
|
+
func.call(this);
|
|
149
|
+
|
|
150
|
+
this._closeScopeLevels();
|
|
151
|
+
|
|
152
|
+
this._scopeClosers = _scopeClosers;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
_proto._makeCallback = function _makeCallback(res) {
|
|
156
|
+
var err = this._tmpid();
|
|
157
|
+
|
|
158
|
+
return 'function(' + err + (res ? ',' + res : '') + ') {\n' + 'if(' + err + ') { cb(' + err + '); return; }';
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
_proto._tmpid = function _tmpid() {
|
|
162
|
+
this.lastId++;
|
|
163
|
+
return 't_' + this.lastId;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
_proto._templateName = function _templateName() {
|
|
167
|
+
return this.templateName == null ? 'undefined' : JSON.stringify(this.templateName);
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
_proto._compileChildren = function _compileChildren(node, frame) {
|
|
171
|
+
var _this2 = this;
|
|
172
|
+
|
|
173
|
+
node.children.forEach(function (child) {
|
|
174
|
+
_this2.compile(child, frame);
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
_proto._compileAggregate = function _compileAggregate(node, frame, startChar, endChar) {
|
|
179
|
+
var _this3 = this;
|
|
180
|
+
|
|
181
|
+
if (startChar) {
|
|
182
|
+
this._emit(startChar);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
node.children.forEach(function (child, i) {
|
|
186
|
+
if (i > 0) {
|
|
187
|
+
_this3._emit(',');
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
_this3.compile(child, frame);
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
if (endChar) {
|
|
194
|
+
this._emit(endChar);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
_proto._compileExpression = function _compileExpression(node, frame) {
|
|
199
|
+
// TODO: I'm not really sure if this type check is worth it or
|
|
200
|
+
// not.
|
|
201
|
+
this.assertType(node, nodes.Literal, nodes.Symbol, nodes.Group, nodes.Array, nodes.Dict, nodes.FunCall, nodes.Caller, nodes.Filter, nodes.LookupVal, nodes.Compare, nodes.InlineIf, nodes.In, nodes.Is, nodes.And, nodes.Or, nodes.Not, nodes.Add, nodes.Concat, nodes.Sub, nodes.Mul, nodes.Div, nodes.FloorDiv, nodes.Mod, nodes.Pow, nodes.Neg, nodes.Pos, nodes.Compare, nodes.NodeList);
|
|
202
|
+
this.compile(node, frame);
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
_proto.assertType = function assertType(node) {
|
|
206
|
+
for (var _len2 = arguments.length, types = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
207
|
+
types[_key2 - 1] = arguments[_key2];
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (!types.some(function (t) {
|
|
211
|
+
return node instanceof t;
|
|
212
|
+
})) {
|
|
213
|
+
this.fail("assertType: invalid type: " + node.typename, node.lineno, node.colno);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
_proto.compileCallExtension = function compileCallExtension(node, frame, async) {
|
|
218
|
+
var _this4 = this;
|
|
219
|
+
|
|
220
|
+
var args = node.args;
|
|
221
|
+
var contentArgs = node.contentArgs;
|
|
222
|
+
var autoescape = typeof node.autoescape === 'boolean' ? node.autoescape : true;
|
|
223
|
+
|
|
224
|
+
if (!async) {
|
|
225
|
+
this._emit(this.buffer + " += runtime.suppressValue(");
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
this._emit("env.getExtension(\"" + node.extName + "\")[\"" + node.prop + "\"](");
|
|
229
|
+
|
|
230
|
+
this._emit('context');
|
|
231
|
+
|
|
232
|
+
if (args || contentArgs) {
|
|
233
|
+
this._emit(',');
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (args) {
|
|
237
|
+
if (!(args instanceof nodes.NodeList)) {
|
|
238
|
+
this.fail('compileCallExtension: arguments must be a NodeList, ' + 'use `parser.parseSignature`');
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
args.children.forEach(function (arg, i) {
|
|
242
|
+
// Tag arguments are passed normally to the call. Note
|
|
243
|
+
// that keyword arguments are turned into a single js
|
|
244
|
+
// object as the last argument, if they exist.
|
|
245
|
+
_this4._compileExpression(arg, frame);
|
|
246
|
+
|
|
247
|
+
if (i !== args.children.length - 1 || contentArgs.length) {
|
|
248
|
+
_this4._emit(',');
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
if (contentArgs.length) {
|
|
254
|
+
contentArgs.forEach(function (arg, i) {
|
|
255
|
+
if (i > 0) {
|
|
256
|
+
_this4._emit(',');
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
if (arg) {
|
|
260
|
+
_this4._emitLine('function(cb) {');
|
|
261
|
+
|
|
262
|
+
_this4._emitLine('if(!cb) { cb = function(err) { if(err) { throw err; }}}');
|
|
263
|
+
|
|
264
|
+
var id = _this4._pushBuffer();
|
|
265
|
+
|
|
266
|
+
_this4._withScopedSyntax(function () {
|
|
267
|
+
_this4.compile(arg, frame);
|
|
268
|
+
|
|
269
|
+
_this4._emitLine("cb(null, " + id + ");");
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
_this4._popBuffer();
|
|
273
|
+
|
|
274
|
+
_this4._emitLine("return " + id + ";");
|
|
275
|
+
|
|
276
|
+
_this4._emitLine('}');
|
|
277
|
+
} else {
|
|
278
|
+
_this4._emit('null');
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
if (async) {
|
|
284
|
+
var res = this._tmpid();
|
|
285
|
+
|
|
286
|
+
this._emitLine(', ' + this._makeCallback(res));
|
|
287
|
+
|
|
288
|
+
this._emitLine(this.buffer + " += runtime.suppressValue(" + res + ", " + autoescape + " && env.opts.autoescape);");
|
|
289
|
+
|
|
290
|
+
this._addScopeLevel();
|
|
291
|
+
} else {
|
|
292
|
+
this._emit(')');
|
|
293
|
+
|
|
294
|
+
this._emit(", " + autoescape + " && env.opts.autoescape);\n");
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
_proto.compileCallExtensionAsync = function compileCallExtensionAsync(node, frame) {
|
|
299
|
+
this.compileCallExtension(node, frame, true);
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
_proto.compileNodeList = function compileNodeList(node, frame) {
|
|
303
|
+
this._compileChildren(node, frame);
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
_proto.compileLiteral = function compileLiteral(node) {
|
|
307
|
+
if (typeof node.value === 'string') {
|
|
308
|
+
var val = node.value.replace(/\\/g, '\\\\');
|
|
309
|
+
val = val.replace(/"/g, '\\"');
|
|
310
|
+
val = val.replace(/\n/g, '\\n');
|
|
311
|
+
val = val.replace(/\r/g, '\\r');
|
|
312
|
+
val = val.replace(/\t/g, '\\t');
|
|
313
|
+
val = val.replace(/\u2028/g, "\\u2028");
|
|
314
|
+
|
|
315
|
+
this._emit("\"" + val + "\"");
|
|
316
|
+
} else if (node.value === null) {
|
|
317
|
+
this._emit('null');
|
|
318
|
+
} else {
|
|
319
|
+
this._emit(node.value.toString());
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
_proto.compileSymbol = function compileSymbol(node, frame) {
|
|
324
|
+
var name = node.value;
|
|
325
|
+
var v = frame.lookup(name);
|
|
326
|
+
|
|
327
|
+
if (v) {
|
|
328
|
+
this._emit(v);
|
|
329
|
+
} else {
|
|
330
|
+
this._emit('runtime.contextOrFrameLookup(' + 'context, frame, "' + name + '")');
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
_proto.compileGroup = function compileGroup(node, frame) {
|
|
335
|
+
this._compileAggregate(node, frame, '(', ')');
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
_proto.compileArray = function compileArray(node, frame) {
|
|
339
|
+
this._compileAggregate(node, frame, '[', ']');
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
_proto.compileDict = function compileDict(node, frame) {
|
|
343
|
+
this._compileAggregate(node, frame, '{', '}');
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
_proto.compilePair = function compilePair(node, frame) {
|
|
347
|
+
var key = node.key;
|
|
348
|
+
var val = node.value;
|
|
349
|
+
|
|
350
|
+
if (key instanceof nodes.Symbol) {
|
|
351
|
+
key = new nodes.Literal(key.lineno, key.colno, key.value);
|
|
352
|
+
} else if (!(key instanceof nodes.Literal && typeof key.value === 'string')) {
|
|
353
|
+
this.fail('compilePair: Dict keys must be strings or names', key.lineno, key.colno);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
this.compile(key, frame);
|
|
357
|
+
|
|
358
|
+
this._emit(': ');
|
|
359
|
+
|
|
360
|
+
this._compileExpression(val, frame);
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
_proto.compileInlineIf = function compileInlineIf(node, frame) {
|
|
364
|
+
this._emit('(');
|
|
365
|
+
|
|
366
|
+
this.compile(node.cond, frame);
|
|
367
|
+
|
|
368
|
+
this._emit('?');
|
|
369
|
+
|
|
370
|
+
this.compile(node.body, frame);
|
|
371
|
+
|
|
372
|
+
this._emit(':');
|
|
373
|
+
|
|
374
|
+
if (node.else_ !== null) {
|
|
375
|
+
this.compile(node.else_, frame);
|
|
376
|
+
} else {
|
|
377
|
+
this._emit('""');
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
this._emit(')');
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
_proto.compileIn = function compileIn(node, frame) {
|
|
384
|
+
this._emit('runtime.inOperator(');
|
|
385
|
+
|
|
386
|
+
this.compile(node.left, frame);
|
|
387
|
+
|
|
388
|
+
this._emit(',');
|
|
389
|
+
|
|
390
|
+
this.compile(node.right, frame);
|
|
391
|
+
|
|
392
|
+
this._emit(')');
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
_proto.compileIs = function compileIs(node, frame) {
|
|
396
|
+
// first, we need to try to get the name of the test function, if it's a
|
|
397
|
+
// callable (i.e., has args) and not a symbol.
|
|
398
|
+
var right = node.right.name ? node.right.name.value // otherwise go with the symbol value
|
|
399
|
+
: node.right.value;
|
|
400
|
+
|
|
401
|
+
this._emit('env.getTest("' + right + '").call(context, ');
|
|
402
|
+
|
|
403
|
+
this.compile(node.left, frame); // compile the arguments for the callable if they exist
|
|
404
|
+
|
|
405
|
+
if (node.right.args) {
|
|
406
|
+
this._emit(',');
|
|
407
|
+
|
|
408
|
+
this.compile(node.right.args, frame);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
this._emit(') === true');
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
_proto._binOpEmitter = function _binOpEmitter(node, frame, str) {
|
|
415
|
+
this.compile(node.left, frame);
|
|
416
|
+
|
|
417
|
+
this._emit(str);
|
|
418
|
+
|
|
419
|
+
this.compile(node.right, frame);
|
|
420
|
+
} // ensure concatenation instead of addition
|
|
421
|
+
// by adding empty string in between
|
|
422
|
+
;
|
|
423
|
+
|
|
424
|
+
_proto.compileOr = function compileOr(node, frame) {
|
|
425
|
+
return this._binOpEmitter(node, frame, ' || ');
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
_proto.compileAnd = function compileAnd(node, frame) {
|
|
429
|
+
return this._binOpEmitter(node, frame, ' && ');
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
_proto.compileAdd = function compileAdd(node, frame) {
|
|
433
|
+
return this._binOpEmitter(node, frame, ' + ');
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
_proto.compileConcat = function compileConcat(node, frame) {
|
|
437
|
+
return this._binOpEmitter(node, frame, ' + "" + ');
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
_proto.compileSub = function compileSub(node, frame) {
|
|
441
|
+
return this._binOpEmitter(node, frame, ' - ');
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
_proto.compileMul = function compileMul(node, frame) {
|
|
445
|
+
return this._binOpEmitter(node, frame, ' * ');
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
_proto.compileDiv = function compileDiv(node, frame) {
|
|
449
|
+
return this._binOpEmitter(node, frame, ' / ');
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
_proto.compileMod = function compileMod(node, frame) {
|
|
453
|
+
return this._binOpEmitter(node, frame, ' % ');
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
_proto.compileNot = function compileNot(node, frame) {
|
|
457
|
+
this._emit('!');
|
|
458
|
+
|
|
459
|
+
this.compile(node.target, frame);
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
_proto.compileFloorDiv = function compileFloorDiv(node, frame) {
|
|
463
|
+
this._emit('Math.floor(');
|
|
464
|
+
|
|
465
|
+
this.compile(node.left, frame);
|
|
466
|
+
|
|
467
|
+
this._emit(' / ');
|
|
468
|
+
|
|
469
|
+
this.compile(node.right, frame);
|
|
470
|
+
|
|
471
|
+
this._emit(')');
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
_proto.compilePow = function compilePow(node, frame) {
|
|
475
|
+
this._emit('Math.pow(');
|
|
476
|
+
|
|
477
|
+
this.compile(node.left, frame);
|
|
478
|
+
|
|
479
|
+
this._emit(', ');
|
|
480
|
+
|
|
481
|
+
this.compile(node.right, frame);
|
|
482
|
+
|
|
483
|
+
this._emit(')');
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
_proto.compileNeg = function compileNeg(node, frame) {
|
|
487
|
+
this._emit('-');
|
|
488
|
+
|
|
489
|
+
this.compile(node.target, frame);
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
_proto.compilePos = function compilePos(node, frame) {
|
|
493
|
+
this._emit('+');
|
|
494
|
+
|
|
495
|
+
this.compile(node.target, frame);
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
_proto.compileCompare = function compileCompare(node, frame) {
|
|
499
|
+
var _this5 = this;
|
|
500
|
+
|
|
501
|
+
this.compile(node.expr, frame);
|
|
502
|
+
node.ops.forEach(function (op) {
|
|
503
|
+
_this5._emit(" " + compareOps[op.type] + " ");
|
|
504
|
+
|
|
505
|
+
_this5.compile(op.expr, frame);
|
|
506
|
+
});
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
_proto.compileLookupVal = function compileLookupVal(node, frame) {
|
|
510
|
+
this._emit('runtime.memberLookup((');
|
|
511
|
+
|
|
512
|
+
this._compileExpression(node.target, frame);
|
|
513
|
+
|
|
514
|
+
this._emit('),');
|
|
515
|
+
|
|
516
|
+
this._compileExpression(node.val, frame);
|
|
517
|
+
|
|
518
|
+
this._emit(')');
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
_proto._getNodeName = function _getNodeName(node) {
|
|
522
|
+
switch (node.typename) {
|
|
523
|
+
case 'Symbol':
|
|
524
|
+
return node.value;
|
|
525
|
+
|
|
526
|
+
case 'FunCall':
|
|
527
|
+
return 'the return value of (' + this._getNodeName(node.name) + ')';
|
|
528
|
+
|
|
529
|
+
case 'LookupVal':
|
|
530
|
+
return this._getNodeName(node.target) + '["' + this._getNodeName(node.val) + '"]';
|
|
531
|
+
|
|
532
|
+
case 'Literal':
|
|
533
|
+
return node.value.toString();
|
|
534
|
+
|
|
535
|
+
default:
|
|
536
|
+
return '--expression--';
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
_proto.compileFunCall = function compileFunCall(node, frame) {
|
|
541
|
+
// Keep track of line/col info at runtime by settings
|
|
542
|
+
// variables within an expression. An expression in javascript
|
|
543
|
+
// like (x, y, z) returns the last value, and x and y can be
|
|
544
|
+
// anything
|
|
545
|
+
this._emit('(lineno = ' + node.lineno + ', colno = ' + node.colno + ', ');
|
|
546
|
+
|
|
547
|
+
this._emit('runtime.callWrap('); // Compile it as normal.
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
this._compileExpression(node.name, frame); // Output the name of what we're calling so we can get friendly errors
|
|
551
|
+
// if the lookup fails.
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
this._emit(', "' + this._getNodeName(node.name).replace(/"/g, '\\"') + '", context, ');
|
|
555
|
+
|
|
556
|
+
this._compileAggregate(node.args, frame, '[', '])');
|
|
557
|
+
|
|
558
|
+
this._emit(')');
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
_proto.compileFilter = function compileFilter(node, frame) {
|
|
562
|
+
var name = node.name;
|
|
563
|
+
this.assertType(name, nodes.Symbol);
|
|
564
|
+
|
|
565
|
+
this._emit('env.getFilter("' + name.value + '").call(context, ');
|
|
566
|
+
|
|
567
|
+
this._compileAggregate(node.args, frame);
|
|
568
|
+
|
|
569
|
+
this._emit(')');
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
_proto.compileFilterAsync = function compileFilterAsync(node, frame) {
|
|
573
|
+
var name = node.name;
|
|
574
|
+
var symbol = node.symbol.value;
|
|
575
|
+
this.assertType(name, nodes.Symbol);
|
|
576
|
+
frame.set(symbol, symbol);
|
|
577
|
+
|
|
578
|
+
this._emit('env.getFilter("' + name.value + '").call(context, ');
|
|
579
|
+
|
|
580
|
+
this._compileAggregate(node.args, frame);
|
|
581
|
+
|
|
582
|
+
this._emitLine(', ' + this._makeCallback(symbol));
|
|
583
|
+
|
|
584
|
+
this._addScopeLevel();
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
_proto.compileKeywordArgs = function compileKeywordArgs(node, frame) {
|
|
588
|
+
this._emit('runtime.makeKeywordArgs(');
|
|
589
|
+
|
|
590
|
+
this.compileDict(node, frame);
|
|
591
|
+
|
|
592
|
+
this._emit(')');
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
_proto.compileSet = function compileSet(node, frame) {
|
|
596
|
+
var _this6 = this;
|
|
597
|
+
|
|
598
|
+
var ids = []; // Lookup the variable names for each identifier and create
|
|
599
|
+
// new ones if necessary
|
|
600
|
+
|
|
601
|
+
node.targets.forEach(function (target) {
|
|
602
|
+
var name = target.value;
|
|
603
|
+
var id = frame.lookup(name);
|
|
604
|
+
|
|
605
|
+
if (id === null || id === undefined) {
|
|
606
|
+
id = _this6._tmpid(); // Note: This relies on js allowing scope across
|
|
607
|
+
// blocks, in case this is created inside an `if`
|
|
608
|
+
|
|
609
|
+
_this6._emitLine('var ' + id + ';');
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
ids.push(id);
|
|
613
|
+
});
|
|
614
|
+
|
|
615
|
+
if (node.value) {
|
|
616
|
+
this._emit(ids.join(' = ') + ' = ');
|
|
617
|
+
|
|
618
|
+
this._compileExpression(node.value, frame);
|
|
619
|
+
|
|
620
|
+
this._emitLine(';');
|
|
621
|
+
} else {
|
|
622
|
+
this._emit(ids.join(' = ') + ' = ');
|
|
623
|
+
|
|
624
|
+
this.compile(node.body, frame);
|
|
625
|
+
|
|
626
|
+
this._emitLine(';');
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
node.targets.forEach(function (target, i) {
|
|
630
|
+
var id = ids[i];
|
|
631
|
+
var name = target.value; // We are running this for every var, but it's very
|
|
632
|
+
// uncommon to assign to multiple vars anyway
|
|
633
|
+
|
|
634
|
+
_this6._emitLine("frame.set(\"" + name + "\", " + id + ", true);");
|
|
635
|
+
|
|
636
|
+
_this6._emitLine('if(frame.topLevel) {');
|
|
637
|
+
|
|
638
|
+
_this6._emitLine("context.setVariable(\"" + name + "\", " + id + ");");
|
|
639
|
+
|
|
640
|
+
_this6._emitLine('}');
|
|
641
|
+
|
|
642
|
+
if (name.charAt(0) !== '_') {
|
|
643
|
+
_this6._emitLine('if(frame.topLevel) {');
|
|
644
|
+
|
|
645
|
+
_this6._emitLine("context.addExport(\"" + name + "\", " + id + ");");
|
|
646
|
+
|
|
647
|
+
_this6._emitLine('}');
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
_proto.compileSwitch = function compileSwitch(node, frame) {
|
|
653
|
+
var _this7 = this;
|
|
654
|
+
|
|
655
|
+
this._emit('switch (');
|
|
656
|
+
|
|
657
|
+
this.compile(node.expr, frame);
|
|
658
|
+
|
|
659
|
+
this._emit(') {');
|
|
660
|
+
|
|
661
|
+
node.cases.forEach(function (c, i) {
|
|
662
|
+
_this7._emit('case ');
|
|
663
|
+
|
|
664
|
+
_this7.compile(c.cond, frame);
|
|
665
|
+
|
|
666
|
+
_this7._emit(': ');
|
|
667
|
+
|
|
668
|
+
_this7.compile(c.body, frame); // preserve fall-throughs
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
if (c.body.children.length) {
|
|
672
|
+
_this7._emitLine('break;');
|
|
673
|
+
}
|
|
674
|
+
});
|
|
675
|
+
|
|
676
|
+
if (node.default) {
|
|
677
|
+
this._emit('default:');
|
|
678
|
+
|
|
679
|
+
this.compile(node.default, frame);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
this._emit('}');
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
_proto.compileIf = function compileIf(node, frame, async) {
|
|
686
|
+
var _this8 = this;
|
|
687
|
+
|
|
688
|
+
this._emit('if(');
|
|
689
|
+
|
|
690
|
+
this._compileExpression(node.cond, frame);
|
|
691
|
+
|
|
692
|
+
this._emitLine(') {');
|
|
693
|
+
|
|
694
|
+
this._withScopedSyntax(function () {
|
|
695
|
+
_this8.compile(node.body, frame);
|
|
696
|
+
|
|
697
|
+
if (async) {
|
|
698
|
+
_this8._emit('cb()');
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
|
|
702
|
+
if (node.else_) {
|
|
703
|
+
this._emitLine('}\nelse {');
|
|
704
|
+
|
|
705
|
+
this._withScopedSyntax(function () {
|
|
706
|
+
_this8.compile(node.else_, frame);
|
|
707
|
+
|
|
708
|
+
if (async) {
|
|
709
|
+
_this8._emit('cb()');
|
|
710
|
+
}
|
|
711
|
+
});
|
|
712
|
+
} else if (async) {
|
|
713
|
+
this._emitLine('}\nelse {');
|
|
714
|
+
|
|
715
|
+
this._emit('cb()');
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
this._emitLine('}');
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
_proto.compileIfAsync = function compileIfAsync(node, frame) {
|
|
722
|
+
this._emit('(function(cb) {');
|
|
723
|
+
|
|
724
|
+
this.compileIf(node, frame, true);
|
|
725
|
+
|
|
726
|
+
this._emit('})(' + this._makeCallback());
|
|
727
|
+
|
|
728
|
+
this._addScopeLevel();
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
_proto._emitLoopBindings = function _emitLoopBindings(node, arr, i, len) {
|
|
732
|
+
var _this9 = this;
|
|
733
|
+
|
|
734
|
+
var bindings = [{
|
|
735
|
+
name: 'index',
|
|
736
|
+
val: i + " + 1"
|
|
737
|
+
}, {
|
|
738
|
+
name: 'index0',
|
|
739
|
+
val: i
|
|
740
|
+
}, {
|
|
741
|
+
name: 'revindex',
|
|
742
|
+
val: len + " - " + i
|
|
743
|
+
}, {
|
|
744
|
+
name: 'revindex0',
|
|
745
|
+
val: len + " - " + i + " - 1"
|
|
746
|
+
}, {
|
|
747
|
+
name: 'first',
|
|
748
|
+
val: i + " === 0"
|
|
749
|
+
}, {
|
|
750
|
+
name: 'last',
|
|
751
|
+
val: i + " === " + len + " - 1"
|
|
752
|
+
}, {
|
|
753
|
+
name: 'length',
|
|
754
|
+
val: len
|
|
755
|
+
}];
|
|
756
|
+
bindings.forEach(function (b) {
|
|
757
|
+
_this9._emitLine("frame.set(\"loop." + b.name + "\", " + b.val + ");");
|
|
758
|
+
});
|
|
759
|
+
};
|
|
760
|
+
|
|
761
|
+
_proto.compileFor = function compileFor(node, frame) {
|
|
762
|
+
var _this10 = this;
|
|
763
|
+
|
|
764
|
+
// Some of this code is ugly, but it keeps the generated code
|
|
765
|
+
// as fast as possible. ForAsync also shares some of this, but
|
|
766
|
+
// not much.
|
|
767
|
+
var i = this._tmpid();
|
|
768
|
+
|
|
769
|
+
var len = this._tmpid();
|
|
770
|
+
|
|
771
|
+
var arr = this._tmpid();
|
|
772
|
+
|
|
773
|
+
frame = frame.push();
|
|
774
|
+
|
|
775
|
+
this._emitLine('frame = frame.push();');
|
|
776
|
+
|
|
777
|
+
this._emit("var " + arr + " = ");
|
|
778
|
+
|
|
779
|
+
this._compileExpression(node.arr, frame);
|
|
780
|
+
|
|
781
|
+
this._emitLine(';');
|
|
782
|
+
|
|
783
|
+
this._emit("if(" + arr + ") {");
|
|
784
|
+
|
|
785
|
+
this._emitLine(arr + ' = runtime.fromIterator(' + arr + ');'); // If multiple names are passed, we need to bind them
|
|
786
|
+
// appropriately
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
if (node.name instanceof nodes.Array) {
|
|
790
|
+
this._emitLine("var " + i + ";"); // The object could be an arroy or object. Note that the
|
|
791
|
+
// body of the loop is duplicated for each condition, but
|
|
792
|
+
// we are optimizing for speed over size.
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
this._emitLine("if(runtime.isArray(" + arr + ")) {");
|
|
796
|
+
|
|
797
|
+
this._emitLine("var " + len + " = " + arr + ".length;");
|
|
798
|
+
|
|
799
|
+
this._emitLine("for(" + i + "=0; " + i + " < " + arr + ".length; " + i + "++) {"); // Bind each declared var
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
node.name.children.forEach(function (child, u) {
|
|
803
|
+
var tid = _this10._tmpid();
|
|
804
|
+
|
|
805
|
+
_this10._emitLine("var " + tid + " = " + arr + "[" + i + "][" + u + "];");
|
|
806
|
+
|
|
807
|
+
_this10._emitLine("frame.set(\"" + child + "\", " + arr + "[" + i + "][" + u + "]);");
|
|
808
|
+
|
|
809
|
+
frame.set(node.name.children[u].value, tid);
|
|
810
|
+
});
|
|
811
|
+
|
|
812
|
+
this._emitLoopBindings(node, arr, i, len);
|
|
813
|
+
|
|
814
|
+
this._withScopedSyntax(function () {
|
|
815
|
+
_this10.compile(node.body, frame);
|
|
816
|
+
});
|
|
817
|
+
|
|
818
|
+
this._emitLine('}');
|
|
819
|
+
|
|
820
|
+
this._emitLine('} else {'); // Iterate over the key/values of an object
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
var _node$name$children = node.name.children,
|
|
824
|
+
key = _node$name$children[0],
|
|
825
|
+
val = _node$name$children[1];
|
|
826
|
+
|
|
827
|
+
var k = this._tmpid();
|
|
828
|
+
|
|
829
|
+
var v = this._tmpid();
|
|
830
|
+
|
|
831
|
+
frame.set(key.value, k);
|
|
832
|
+
frame.set(val.value, v);
|
|
833
|
+
|
|
834
|
+
this._emitLine(i + " = -1;");
|
|
835
|
+
|
|
836
|
+
this._emitLine("var " + len + " = runtime.keys(" + arr + ").length;");
|
|
837
|
+
|
|
838
|
+
this._emitLine("for(var " + k + " in " + arr + ") {");
|
|
839
|
+
|
|
840
|
+
this._emitLine(i + "++;");
|
|
841
|
+
|
|
842
|
+
this._emitLine("var " + v + " = " + arr + "[" + k + "];");
|
|
843
|
+
|
|
844
|
+
this._emitLine("frame.set(\"" + key.value + "\", " + k + ");");
|
|
845
|
+
|
|
846
|
+
this._emitLine("frame.set(\"" + val.value + "\", " + v + ");");
|
|
847
|
+
|
|
848
|
+
this._emitLoopBindings(node, arr, i, len);
|
|
849
|
+
|
|
850
|
+
this._withScopedSyntax(function () {
|
|
851
|
+
_this10.compile(node.body, frame);
|
|
852
|
+
});
|
|
853
|
+
|
|
854
|
+
this._emitLine('}');
|
|
855
|
+
|
|
856
|
+
this._emitLine('}');
|
|
857
|
+
} else {
|
|
858
|
+
// Generate a typical array iteration
|
|
859
|
+
var _v = this._tmpid();
|
|
860
|
+
|
|
861
|
+
frame.set(node.name.value, _v);
|
|
862
|
+
|
|
863
|
+
this._emitLine("var " + len + " = " + arr + ".length;");
|
|
864
|
+
|
|
865
|
+
this._emitLine("for(var " + i + "=0; " + i + " < " + arr + ".length; " + i + "++) {");
|
|
866
|
+
|
|
867
|
+
this._emitLine("var " + _v + " = " + arr + "[" + i + "];");
|
|
868
|
+
|
|
869
|
+
this._emitLine("frame.set(\"" + node.name.value + "\", " + _v + ");");
|
|
870
|
+
|
|
871
|
+
this._emitLoopBindings(node, arr, i, len);
|
|
872
|
+
|
|
873
|
+
this._withScopedSyntax(function () {
|
|
874
|
+
_this10.compile(node.body, frame);
|
|
875
|
+
});
|
|
876
|
+
|
|
877
|
+
this._emitLine('}');
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
this._emitLine('}');
|
|
881
|
+
|
|
882
|
+
if (node.else_) {
|
|
883
|
+
this._emitLine('if (!' + len + ') {');
|
|
884
|
+
|
|
885
|
+
this.compile(node.else_, frame);
|
|
886
|
+
|
|
887
|
+
this._emitLine('}');
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
this._emitLine('frame = frame.pop();');
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
_proto._compileAsyncLoop = function _compileAsyncLoop(node, frame, parallel) {
|
|
894
|
+
var _this11 = this;
|
|
895
|
+
|
|
896
|
+
// This shares some code with the For tag, but not enough to
|
|
897
|
+
// worry about. This iterates across an object asynchronously,
|
|
898
|
+
// but not in parallel.
|
|
899
|
+
var i = this._tmpid();
|
|
900
|
+
|
|
901
|
+
var len = this._tmpid();
|
|
902
|
+
|
|
903
|
+
var arr = this._tmpid();
|
|
904
|
+
|
|
905
|
+
var asyncMethod = parallel ? 'asyncAll' : 'asyncEach';
|
|
906
|
+
frame = frame.push();
|
|
907
|
+
|
|
908
|
+
this._emitLine('frame = frame.push();');
|
|
909
|
+
|
|
910
|
+
this._emit('var ' + arr + ' = runtime.fromIterator(');
|
|
911
|
+
|
|
912
|
+
this._compileExpression(node.arr, frame);
|
|
913
|
+
|
|
914
|
+
this._emitLine(');');
|
|
915
|
+
|
|
916
|
+
if (node.name instanceof nodes.Array) {
|
|
917
|
+
var arrayLen = node.name.children.length;
|
|
918
|
+
|
|
919
|
+
this._emit("runtime." + asyncMethod + "(" + arr + ", " + arrayLen + ", function(");
|
|
920
|
+
|
|
921
|
+
node.name.children.forEach(function (name) {
|
|
922
|
+
_this11._emit(name.value + ",");
|
|
923
|
+
});
|
|
924
|
+
|
|
925
|
+
this._emit(i + ',' + len + ',next) {');
|
|
926
|
+
|
|
927
|
+
node.name.children.forEach(function (name) {
|
|
928
|
+
var id = name.value;
|
|
929
|
+
frame.set(id, id);
|
|
930
|
+
|
|
931
|
+
_this11._emitLine("frame.set(\"" + id + "\", " + id + ");");
|
|
932
|
+
});
|
|
933
|
+
} else {
|
|
934
|
+
var id = node.name.value;
|
|
935
|
+
|
|
936
|
+
this._emitLine("runtime." + asyncMethod + "(" + arr + ", 1, function(" + id + ", " + i + ", " + len + ",next) {");
|
|
937
|
+
|
|
938
|
+
this._emitLine('frame.set("' + id + '", ' + id + ');');
|
|
939
|
+
|
|
940
|
+
frame.set(id, id);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
this._emitLoopBindings(node, arr, i, len);
|
|
944
|
+
|
|
945
|
+
this._withScopedSyntax(function () {
|
|
946
|
+
var buf;
|
|
947
|
+
|
|
948
|
+
if (parallel) {
|
|
949
|
+
buf = _this11._pushBuffer();
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
_this11.compile(node.body, frame);
|
|
953
|
+
|
|
954
|
+
_this11._emitLine('next(' + i + (buf ? ',' + buf : '') + ');');
|
|
955
|
+
|
|
956
|
+
if (parallel) {
|
|
957
|
+
_this11._popBuffer();
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
|
|
961
|
+
var output = this._tmpid();
|
|
962
|
+
|
|
963
|
+
this._emitLine('}, ' + this._makeCallback(output));
|
|
964
|
+
|
|
965
|
+
this._addScopeLevel();
|
|
966
|
+
|
|
967
|
+
if (parallel) {
|
|
968
|
+
this._emitLine(this.buffer + ' += ' + output + ';');
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
if (node.else_) {
|
|
972
|
+
this._emitLine('if (!' + arr + '.length) {');
|
|
973
|
+
|
|
974
|
+
this.compile(node.else_, frame);
|
|
975
|
+
|
|
976
|
+
this._emitLine('}');
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
this._emitLine('frame = frame.pop();');
|
|
980
|
+
};
|
|
981
|
+
|
|
982
|
+
_proto.compileAsyncEach = function compileAsyncEach(node, frame) {
|
|
983
|
+
this._compileAsyncLoop(node, frame);
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
_proto.compileAsyncAll = function compileAsyncAll(node, frame) {
|
|
987
|
+
this._compileAsyncLoop(node, frame, true);
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
_proto._compileMacro = function _compileMacro(node, frame) {
|
|
991
|
+
var _this12 = this;
|
|
992
|
+
|
|
993
|
+
var args = [];
|
|
994
|
+
var kwargs = null;
|
|
995
|
+
|
|
996
|
+
var funcId = 'macro_' + this._tmpid();
|
|
997
|
+
|
|
998
|
+
var keepFrame = frame !== undefined; // Type check the definition of the args
|
|
999
|
+
|
|
1000
|
+
node.args.children.forEach(function (arg, i) {
|
|
1001
|
+
if (i === node.args.children.length - 1 && arg instanceof nodes.Dict) {
|
|
1002
|
+
kwargs = arg;
|
|
1003
|
+
} else {
|
|
1004
|
+
_this12.assertType(arg, nodes.Symbol);
|
|
1005
|
+
|
|
1006
|
+
args.push(arg);
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
var realNames = [].concat(args.map(function (n) {
|
|
1010
|
+
return "l_" + n.value;
|
|
1011
|
+
}), ['kwargs']); // Quoted argument names
|
|
1012
|
+
|
|
1013
|
+
var argNames = args.map(function (n) {
|
|
1014
|
+
return "\"" + n.value + "\"";
|
|
1015
|
+
});
|
|
1016
|
+
var kwargNames = (kwargs && kwargs.children || []).map(function (n) {
|
|
1017
|
+
return "\"" + n.key.value + "\"";
|
|
1018
|
+
}); // We pass a function to makeMacro which destructures the
|
|
1019
|
+
// arguments so support setting positional args with keywords
|
|
1020
|
+
// args and passing keyword args as positional args
|
|
1021
|
+
// (essentially default values). See runtime.js.
|
|
1022
|
+
|
|
1023
|
+
var currFrame;
|
|
1024
|
+
|
|
1025
|
+
if (keepFrame) {
|
|
1026
|
+
currFrame = frame.push(true);
|
|
1027
|
+
} else {
|
|
1028
|
+
currFrame = new Frame();
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
this._emitLines("var " + funcId + " = runtime.makeMacro(", "[" + argNames.join(', ') + "], ", "[" + kwargNames.join(', ') + "], ", "function (" + realNames.join(', ') + ") {", 'var callerFrame = frame;', 'frame = ' + (keepFrame ? 'frame.push(true);' : 'new runtime.Frame();'), 'kwargs = kwargs || {};', 'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {', 'frame.set("caller", kwargs.caller); }'); // Expose the arguments to the template. Don't need to use
|
|
1032
|
+
// random names because the function
|
|
1033
|
+
// will create a new run-time scope for us
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
args.forEach(function (arg) {
|
|
1037
|
+
_this12._emitLine("frame.set(\"" + arg.value + "\", l_" + arg.value + ");");
|
|
1038
|
+
|
|
1039
|
+
currFrame.set(arg.value, "l_" + arg.value);
|
|
1040
|
+
}); // Expose the keyword arguments
|
|
1041
|
+
|
|
1042
|
+
if (kwargs) {
|
|
1043
|
+
kwargs.children.forEach(function (pair) {
|
|
1044
|
+
var name = pair.key.value;
|
|
1045
|
+
|
|
1046
|
+
_this12._emit("frame.set(\"" + name + "\", ");
|
|
1047
|
+
|
|
1048
|
+
_this12._emit("Object.prototype.hasOwnProperty.call(kwargs, \"" + name + "\")");
|
|
1049
|
+
|
|
1050
|
+
_this12._emit(" ? kwargs[\"" + name + "\"] : ");
|
|
1051
|
+
|
|
1052
|
+
_this12._compileExpression(pair.value, currFrame);
|
|
1053
|
+
|
|
1054
|
+
_this12._emit(');');
|
|
1055
|
+
});
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
var bufferId = this._pushBuffer();
|
|
1059
|
+
|
|
1060
|
+
this._withScopedSyntax(function () {
|
|
1061
|
+
_this12.compile(node.body, currFrame);
|
|
1062
|
+
});
|
|
1063
|
+
|
|
1064
|
+
this._emitLine('frame = ' + (keepFrame ? 'frame.pop();' : 'callerFrame;'));
|
|
1065
|
+
|
|
1066
|
+
this._emitLine("return new runtime.SafeString(" + bufferId + ");");
|
|
1067
|
+
|
|
1068
|
+
this._emitLine('});');
|
|
1069
|
+
|
|
1070
|
+
this._popBuffer();
|
|
1071
|
+
|
|
1072
|
+
return funcId;
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
_proto.compileMacro = function compileMacro(node, frame) {
|
|
1076
|
+
var funcId = this._compileMacro(node); // Expose the macro to the templates
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
var name = node.name.value;
|
|
1080
|
+
frame.set(name, funcId);
|
|
1081
|
+
|
|
1082
|
+
if (frame.parent) {
|
|
1083
|
+
this._emitLine("frame.set(\"" + name + "\", " + funcId + ");");
|
|
1084
|
+
} else {
|
|
1085
|
+
if (node.name.value.charAt(0) !== '_') {
|
|
1086
|
+
this._emitLine("context.addExport(\"" + name + "\");");
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
this._emitLine("context.setVariable(\"" + name + "\", " + funcId + ");");
|
|
1090
|
+
}
|
|
1091
|
+
};
|
|
1092
|
+
|
|
1093
|
+
_proto.compileCaller = function compileCaller(node, frame) {
|
|
1094
|
+
// basically an anonymous "macro expression"
|
|
1095
|
+
this._emit('(function (){');
|
|
1096
|
+
|
|
1097
|
+
var funcId = this._compileMacro(node, frame);
|
|
1098
|
+
|
|
1099
|
+
this._emit("return " + funcId + ";})()");
|
|
1100
|
+
};
|
|
1101
|
+
|
|
1102
|
+
_proto._compileGetTemplate = function _compileGetTemplate(node, frame, eagerCompile, ignoreMissing) {
|
|
1103
|
+
var parentTemplateId = this._tmpid();
|
|
1104
|
+
|
|
1105
|
+
var parentName = this._templateName();
|
|
1106
|
+
|
|
1107
|
+
var cb = this._makeCallback(parentTemplateId);
|
|
1108
|
+
|
|
1109
|
+
var eagerCompileArg = eagerCompile ? 'true' : 'false';
|
|
1110
|
+
var ignoreMissingArg = ignoreMissing ? 'true' : 'false';
|
|
1111
|
+
|
|
1112
|
+
this._emit('env.getTemplate(');
|
|
1113
|
+
|
|
1114
|
+
this._compileExpression(node.template, frame);
|
|
1115
|
+
|
|
1116
|
+
this._emitLine(", " + eagerCompileArg + ", " + parentName + ", " + ignoreMissingArg + ", " + cb);
|
|
1117
|
+
|
|
1118
|
+
return parentTemplateId;
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
_proto.compileImport = function compileImport(node, frame) {
|
|
1122
|
+
var target = node.target.value;
|
|
1123
|
+
|
|
1124
|
+
var id = this._compileGetTemplate(node, frame, false, false);
|
|
1125
|
+
|
|
1126
|
+
this._addScopeLevel();
|
|
1127
|
+
|
|
1128
|
+
this._emitLine(id + '.getExported(' + (node.withContext ? 'context.getVariables(), frame, ' : '') + this._makeCallback(id));
|
|
1129
|
+
|
|
1130
|
+
this._addScopeLevel();
|
|
1131
|
+
|
|
1132
|
+
frame.set(target, id);
|
|
1133
|
+
|
|
1134
|
+
if (frame.parent) {
|
|
1135
|
+
this._emitLine("frame.set(\"" + target + "\", " + id + ");");
|
|
1136
|
+
} else {
|
|
1137
|
+
this._emitLine("context.setVariable(\"" + target + "\", " + id + ");");
|
|
1138
|
+
}
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
_proto.compileFromImport = function compileFromImport(node, frame) {
|
|
1142
|
+
var _this13 = this;
|
|
1143
|
+
|
|
1144
|
+
var importedId = this._compileGetTemplate(node, frame, false, false);
|
|
1145
|
+
|
|
1146
|
+
this._addScopeLevel();
|
|
1147
|
+
|
|
1148
|
+
this._emitLine(importedId + '.getExported(' + (node.withContext ? 'context.getVariables(), frame, ' : '') + this._makeCallback(importedId));
|
|
1149
|
+
|
|
1150
|
+
this._addScopeLevel();
|
|
1151
|
+
|
|
1152
|
+
node.names.children.forEach(function (nameNode) {
|
|
1153
|
+
var name;
|
|
1154
|
+
var alias;
|
|
1155
|
+
|
|
1156
|
+
var id = _this13._tmpid();
|
|
1157
|
+
|
|
1158
|
+
if (nameNode instanceof nodes.Pair) {
|
|
1159
|
+
name = nameNode.key.value;
|
|
1160
|
+
alias = nameNode.value.value;
|
|
1161
|
+
} else {
|
|
1162
|
+
name = nameNode.value;
|
|
1163
|
+
alias = name;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
_this13._emitLine("if(Object.prototype.hasOwnProperty.call(" + importedId + ", \"" + name + "\")) {");
|
|
1167
|
+
|
|
1168
|
+
_this13._emitLine("var " + id + " = " + importedId + "." + name + ";");
|
|
1169
|
+
|
|
1170
|
+
_this13._emitLine('} else {');
|
|
1171
|
+
|
|
1172
|
+
_this13._emitLine("cb(new Error(\"cannot import '" + name + "'\")); return;");
|
|
1173
|
+
|
|
1174
|
+
_this13._emitLine('}');
|
|
1175
|
+
|
|
1176
|
+
frame.set(alias, id);
|
|
1177
|
+
|
|
1178
|
+
if (frame.parent) {
|
|
1179
|
+
_this13._emitLine("frame.set(\"" + alias + "\", " + id + ");");
|
|
1180
|
+
} else {
|
|
1181
|
+
_this13._emitLine("context.setVariable(\"" + alias + "\", " + id + ");");
|
|
1182
|
+
}
|
|
1183
|
+
});
|
|
1184
|
+
};
|
|
1185
|
+
|
|
1186
|
+
_proto.compileBlock = function compileBlock(node) {
|
|
1187
|
+
var id = this._tmpid(); // If we are executing outside a block (creating a top-level
|
|
1188
|
+
// block), we really don't want to execute its code because it
|
|
1189
|
+
// will execute twice: once when the child template runs and
|
|
1190
|
+
// again when the parent template runs. Note that blocks
|
|
1191
|
+
// within blocks will *always* execute immediately *and*
|
|
1192
|
+
// wherever else they are invoked (like used in a parent
|
|
1193
|
+
// template). This may have behavioral differences from jinja
|
|
1194
|
+
// because blocks can have side effects, but it seems like a
|
|
1195
|
+
// waste of performance to always execute huge top-level
|
|
1196
|
+
// blocks twice
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
if (!this.inBlock) {
|
|
1200
|
+
this._emit('(parentTemplate ? function(e, c, f, r, cb) { cb(""); } : ');
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
this._emit("context.getBlock(\"" + node.name.value + "\")");
|
|
1204
|
+
|
|
1205
|
+
if (!this.inBlock) {
|
|
1206
|
+
this._emit(')');
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
this._emitLine('(env, context, frame, runtime, ' + this._makeCallback(id));
|
|
1210
|
+
|
|
1211
|
+
this._emitLine(this.buffer + " += " + id + ";");
|
|
1212
|
+
|
|
1213
|
+
this._addScopeLevel();
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
_proto.compileSuper = function compileSuper(node, frame) {
|
|
1217
|
+
var name = node.blockName.value;
|
|
1218
|
+
var id = node.symbol.value;
|
|
1219
|
+
|
|
1220
|
+
var cb = this._makeCallback(id);
|
|
1221
|
+
|
|
1222
|
+
this._emitLine("context.getSuper(env, \"" + name + "\", b_" + name + ", frame, runtime, " + cb);
|
|
1223
|
+
|
|
1224
|
+
this._emitLine(id + " = runtime.markSafe(" + id + ");");
|
|
1225
|
+
|
|
1226
|
+
this._addScopeLevel();
|
|
1227
|
+
|
|
1228
|
+
frame.set(id, id);
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
_proto.compileExtends = function compileExtends(node, frame) {
|
|
1232
|
+
var k = this._tmpid();
|
|
1233
|
+
|
|
1234
|
+
var parentTemplateId = this._compileGetTemplate(node, frame, true, false); // extends is a dynamic tag and can occur within a block like
|
|
1235
|
+
// `if`, so if this happens we need to capture the parent
|
|
1236
|
+
// template in the top-level scope
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
this._emitLine("parentTemplate = " + parentTemplateId);
|
|
1240
|
+
|
|
1241
|
+
this._emitLine("for(var " + k + " in parentTemplate.blocks) {");
|
|
1242
|
+
|
|
1243
|
+
this._emitLine("context.addBlock(" + k + ", parentTemplate.blocks[" + k + "]);");
|
|
1244
|
+
|
|
1245
|
+
this._emitLine('}');
|
|
1246
|
+
|
|
1247
|
+
this._addScopeLevel();
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
_proto.compileInclude = function compileInclude(node, frame) {
|
|
1251
|
+
this._emitLine('var tasks = [];');
|
|
1252
|
+
|
|
1253
|
+
this._emitLine('tasks.push(');
|
|
1254
|
+
|
|
1255
|
+
this._emitLine('function(callback) {');
|
|
1256
|
+
|
|
1257
|
+
var id = this._compileGetTemplate(node, frame, false, node.ignoreMissing);
|
|
1258
|
+
|
|
1259
|
+
this._emitLine("callback(null," + id + ");});");
|
|
1260
|
+
|
|
1261
|
+
this._emitLine('});');
|
|
1262
|
+
|
|
1263
|
+
var id2 = this._tmpid();
|
|
1264
|
+
|
|
1265
|
+
this._emitLine('tasks.push(');
|
|
1266
|
+
|
|
1267
|
+
this._emitLine('function(template, callback){');
|
|
1268
|
+
|
|
1269
|
+
this._emitLine('template.render(context.getVariables(), frame, ' + this._makeCallback(id2));
|
|
1270
|
+
|
|
1271
|
+
this._emitLine('callback(null,' + id2 + ');});');
|
|
1272
|
+
|
|
1273
|
+
this._emitLine('});');
|
|
1274
|
+
|
|
1275
|
+
this._emitLine('tasks.push(');
|
|
1276
|
+
|
|
1277
|
+
this._emitLine('function(result, callback){');
|
|
1278
|
+
|
|
1279
|
+
this._emitLine(this.buffer + " += result;");
|
|
1280
|
+
|
|
1281
|
+
this._emitLine('callback(null);');
|
|
1282
|
+
|
|
1283
|
+
this._emitLine('});');
|
|
1284
|
+
|
|
1285
|
+
this._emitLine('env.waterfall(tasks, function(){');
|
|
1286
|
+
|
|
1287
|
+
this._addScopeLevel();
|
|
1288
|
+
};
|
|
1289
|
+
|
|
1290
|
+
_proto.compileTemplateData = function compileTemplateData(node, frame) {
|
|
1291
|
+
this.compileLiteral(node, frame);
|
|
1292
|
+
};
|
|
1293
|
+
|
|
1294
|
+
_proto.compileCapture = function compileCapture(node, frame) {
|
|
1295
|
+
var _this14 = this;
|
|
1296
|
+
|
|
1297
|
+
// we need to temporarily override the current buffer id as 'output'
|
|
1298
|
+
// so the set block writes to the capture output instead of the buffer
|
|
1299
|
+
var buffer = this.buffer;
|
|
1300
|
+
this.buffer = 'output';
|
|
1301
|
+
|
|
1302
|
+
this._emitLine('(function() {');
|
|
1303
|
+
|
|
1304
|
+
this._emitLine('var output = "";');
|
|
1305
|
+
|
|
1306
|
+
this._withScopedSyntax(function () {
|
|
1307
|
+
_this14.compile(node.body, frame);
|
|
1308
|
+
});
|
|
1309
|
+
|
|
1310
|
+
this._emitLine('return output;');
|
|
1311
|
+
|
|
1312
|
+
this._emitLine('})()'); // and of course, revert back to the old buffer id
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
this.buffer = buffer;
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
_proto.compileOutput = function compileOutput(node, frame) {
|
|
1319
|
+
var _this15 = this;
|
|
1320
|
+
|
|
1321
|
+
var children = node.children;
|
|
1322
|
+
children.forEach(function (child) {
|
|
1323
|
+
// TemplateData is a special case because it is never
|
|
1324
|
+
// autoescaped, so simply output it for optimization
|
|
1325
|
+
if (child instanceof nodes.TemplateData) {
|
|
1326
|
+
if (child.value) {
|
|
1327
|
+
_this15._emit(_this15.buffer + " += ");
|
|
1328
|
+
|
|
1329
|
+
_this15.compileLiteral(child, frame);
|
|
1330
|
+
|
|
1331
|
+
_this15._emitLine(';');
|
|
1332
|
+
}
|
|
1333
|
+
} else {
|
|
1334
|
+
_this15._emit(_this15.buffer + " += runtime.suppressValue(");
|
|
1335
|
+
|
|
1336
|
+
if (_this15.throwOnUndefined) {
|
|
1337
|
+
_this15._emit('runtime.ensureDefined(');
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
_this15.compile(child, frame);
|
|
1341
|
+
|
|
1342
|
+
if (_this15.throwOnUndefined) {
|
|
1343
|
+
_this15._emit("," + node.lineno + "," + node.colno + ")");
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
_this15._emit(', env.opts.autoescape);\n');
|
|
1347
|
+
}
|
|
1348
|
+
});
|
|
1349
|
+
};
|
|
1350
|
+
|
|
1351
|
+
_proto.compileRoot = function compileRoot(node, frame) {
|
|
1352
|
+
var _this16 = this;
|
|
1353
|
+
|
|
1354
|
+
if (frame) {
|
|
1355
|
+
this.fail('compileRoot: root node can\'t have frame');
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
frame = new Frame();
|
|
1359
|
+
|
|
1360
|
+
this._emitFuncBegin(node, 'root');
|
|
1361
|
+
|
|
1362
|
+
this._emitLine('var parentTemplate = null;');
|
|
1363
|
+
|
|
1364
|
+
this._compileChildren(node, frame);
|
|
1365
|
+
|
|
1366
|
+
this._emitLine('if(parentTemplate) {');
|
|
1367
|
+
|
|
1368
|
+
this._emitLine('parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);');
|
|
1369
|
+
|
|
1370
|
+
this._emitLine('} else {');
|
|
1371
|
+
|
|
1372
|
+
this._emitLine("cb(null, " + this.buffer + ");");
|
|
1373
|
+
|
|
1374
|
+
this._emitLine('}');
|
|
1375
|
+
|
|
1376
|
+
this._emitFuncEnd(true);
|
|
1377
|
+
|
|
1378
|
+
this.inBlock = true;
|
|
1379
|
+
var blockNames = [];
|
|
1380
|
+
var blocks = node.findAll(nodes.Block);
|
|
1381
|
+
blocks.forEach(function (block, i) {
|
|
1382
|
+
var name = block.name.value;
|
|
1383
|
+
|
|
1384
|
+
if (blockNames.indexOf(name) !== -1) {
|
|
1385
|
+
throw new Error("Block \"" + name + "\" defined more than once.");
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
blockNames.push(name);
|
|
1389
|
+
|
|
1390
|
+
_this16._emitFuncBegin(block, "b_" + name);
|
|
1391
|
+
|
|
1392
|
+
var tmpFrame = new Frame();
|
|
1393
|
+
|
|
1394
|
+
_this16._emitLine('var frame = frame.push(true);');
|
|
1395
|
+
|
|
1396
|
+
_this16.compile(block.body, tmpFrame);
|
|
1397
|
+
|
|
1398
|
+
_this16._emitFuncEnd();
|
|
1399
|
+
});
|
|
1400
|
+
|
|
1401
|
+
this._emitLine('return {');
|
|
1402
|
+
|
|
1403
|
+
blocks.forEach(function (block, i) {
|
|
1404
|
+
var blockName = "b_" + block.name.value;
|
|
1405
|
+
|
|
1406
|
+
_this16._emitLine(blockName + ": " + blockName + ",");
|
|
1407
|
+
});
|
|
1408
|
+
|
|
1409
|
+
this._emitLine('root: root\n};');
|
|
1410
|
+
};
|
|
1411
|
+
|
|
1412
|
+
_proto.compile = function compile(node, frame) {
|
|
1413
|
+
var _compile = this['compile' + node.typename];
|
|
1414
|
+
|
|
1415
|
+
if (_compile) {
|
|
1416
|
+
_compile.call(this, node, frame);
|
|
1417
|
+
} else {
|
|
1418
|
+
this.fail("compile: Cannot compile node: " + node.typename, node.lineno, node.colno);
|
|
1419
|
+
}
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1422
|
+
_proto.getCode = function getCode() {
|
|
1423
|
+
return this.codebuf.join('');
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1426
|
+
return Compiler;
|
|
1427
|
+
}(Obj);
|
|
1428
|
+
|
|
1429
|
+
module.exports = {
|
|
1430
|
+
compile: function compile(src, asyncFilters, extensions, name, opts) {
|
|
1431
|
+
if (opts === void 0) {
|
|
1432
|
+
opts = {};
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
var c = new Compiler(name, opts.throwOnUndefined); // Run the extension preprocessors against the source.
|
|
1436
|
+
|
|
1437
|
+
var preprocessors = (extensions || []).map(function (ext) {
|
|
1438
|
+
return ext.preprocess;
|
|
1439
|
+
}).filter(function (f) {
|
|
1440
|
+
return !!f;
|
|
1441
|
+
});
|
|
1442
|
+
var processedSrc = preprocessors.reduce(function (s, processor) {
|
|
1443
|
+
return processor(s);
|
|
1444
|
+
}, src);
|
|
1445
|
+
c.compile(transformer.transform(parser.parse(processedSrc, extensions, opts), asyncFilters, name));
|
|
1446
|
+
return c.getCode();
|
|
1447
|
+
},
|
|
1448
|
+
Compiler: Compiler
|
|
1449
|
+
};
|