Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ang-tangle

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ang-tangle - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

samples/sample-01/ang/views/hello.md

7

lib/ang-tangle.js

@@ -52,3 +52,2 @@ // Generated by CoffeeScript 1.6.3

logv("options: " + (JSON.stringify(options, null, 4)));
logv("");
fileNames = sh.ls("-R", iDir);

@@ -92,6 +91,6 @@ files = {};

out.push("//# sourceMappingURL=" + (path.basename(oFileMap)) + "\n");
log("generating: " + oFile);
logv("generating: " + oFile);
sh.mkdir("-p", path.dirname(oFile));
fs.writeFileSync(oFile, out.join(""));
log("generating: " + oFileMap);
logv("generating: " + oFileMap);
content = out.sourceNode.toStringWithSourceMap({

@@ -229,3 +228,3 @@ file: path.basename(oFile)

pedantic: false,
sanitize: true,
sanitize: false,
smartLists: true,

@@ -232,0 +231,0 @@ smartypants: false

@@ -32,6 +32,3 @@ // Generated by CoffeeScript 1.6.3

opt = opts[name];
for (name in opts) {
opt = opts[name];
shortOpts[opt[0]] = "--" + name;
}
shortOpts[opt[0]] = "--" + name;
longOpts[name] = opt[1];

@@ -38,0 +35,0 @@ }

@@ -8,3 +8,3 @@ {

"author": "pmuellr",
"version": "0.1.4",
"version": "0.1.5",
"licenses": [{ "type": "Apache License" }],

@@ -11,0 +11,0 @@ "dependencies":

@@ -138,3 +138,3 @@ ;(function(){

return $scope.text = {
world: "WORLD!!!"
world: "WORLD"
};

@@ -160,3 +160,3 @@ });

AngTangle.constant('views', {
"views/hello": "<p>Hello, <span ng-bind=\"text.world\"></span>",
"views/hello": "<p>Hello, <span ng-bind=\"text.world\"></span>!!!</p>\n<p>Lots going on here:</p>\n<ul>\n<li>markdown for markup</li>\n<li>using <i>html</i> tags IN the markup</li>\n<li>it&#39;s github-flavored, so supports tables</li>\n</ul>\n<table>\n<thead>\n<tr>\n<th align=\"left\">col1</th>\n<th align=\"right\">col2</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"left\">a</td>\n<td align=\"right\">1.1</td>\n</tr>\n<tr>\n<td align=\"left\">b</td>\n<td align=\"right\">2.2</td>\n</tr>\n<tr>\n<td align=\"left\">c</td>\n<td align=\"right\">3.3</td>\n</tr>\n</tbody>\n</table>\n",
"views/home": "<p>Welcome to the home page!"

@@ -163,0 +163,0 @@ });

@@ -14,3 +14,3 @@ {

"names": [],
"mappings": ";;;AAEA;;;GAEI,MAFJ;CAEI,IAAe,QAAf;EAKA,KAAe,MAAf;CAPJ;;AAqBM,CArBN,QAqBe;CAGE;CAET;EAA6B,CAAT,CAApB,EAAoB,GAAC,QAArB;GACI,MAAC,IAAD;CACI,GAAuD,IAAvD;KAAM;SAAN;CACO,CAAqB,EAA5B,EAAO,SAAP;CAHY,MAChB;CADJ,IAAoB;CAApB,CAK6B,CAAT,CAApB,EAAoB,GAAC,QAArB;EACW,CAAP,MAAC,IAAD;CACI,GAAuD,IAAvD;KAAM;SAAN;CACO,CAAqB,EAA5B,EAAO,SAAP;CAHY,MAChB;CANJ,IAKoB;CAKpB;;;CACI,CAAgD,CAApC,CAAV,EAAF,GAAuC,QAA3B;CADhB,IAVA;CAaA;;;CACI,CAAgD,CAApC,CAAV,EAAF,GAAuC,QAA3B;CADhB,IAfS;CAAb,EAAa;;CAAb,EAoBQ,GAAR,GAAQ;CAEJ;IAFK,mDAEL;KAAsB,CAAf;CACH,GAA8C,EAA9C;KAAM;OAAN;EAEiD,CAA9B,GAAnB,CAA0B,EAAjB;KAHb;CAKA,QAAgB,EAAT;CA3BX,EAoBQ;;CApBR;;CAxBJ;;AAsDM,CAtDN,QAsDe;CAGE,eAAE;CAEX;GAFW,CAAD,EAEV;GAFoB,CAAD,MAEnB;EAA6B,CAAT,CAApB,EAAoB,GAAC,QAArB;GACI,MAAC,IAAD;CACI,GAAuD,IAAvD;KAAM;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J;A;;;ACCI,CAAU,CAAc,GAAxB,IAAS;A;;;;;;ACHb,CAAU,CAAwB,CAAjB,GAAjB,GAAS,KAAQ;CAEb;GAAW,KAAX,CAAY;;GAAW,GAAL;KACd;CAAe,CACX,CADJ,WAAc;CACV,CAAW,CAAc,CAAR,EAAjB;EACY,EADZ,EACA;CAHG,KACP;CADJ,EAAW;CAAX,CAKA,YAAc;CAAW,CAAY,CAAZ;CALzB,GAKA;CALA,CAOA;CACS,MAAT;CAVa;A;;;;;ACAjB,CAAU,EAAW,MAAZ,CAAT;CACW,EACH,CADJ,EAAM,GAAN;CACI,CAAO,EAAP;CAFa;;A;;;;;ACArB,CAAU,EAAW,MAAZ,CAAT;A;;;;;ACAA,CAAU,CAAiB,IAA3B,GAAS;A;;;;;ACAT,CAAU,CAAkB,KAA5B,EAAS;CAAmB,CACxB,yjBADwB;EAExB,4BAFwB;CAA5B;A",
"sourcesContent": [

@@ -20,7 +20,7 @@ "# Licensed under the Apache License. See footer for details.\n\nAngTangle =\n\n OneArgMethods: [\n \"config\"\n \"run\"\n ]\n\n TwoArgMethods: [\n \"animation\"\n \"constant\"\n \"controller\"\n \"directive\"\n \"factory\"\n \"filter\"\n \"provider\"\n \"service\"\n \"value\"\n ]\n\n\n#-------------------------------------------------------------------------------\nclass AngTangle.Init\n\n #---------------------------------------------------------------------------\n constructor: ->\n\n getOneArgFunction = (module, method) ->\n (thing) ->\n throw Error \"module not defined in init script\" unless module?\n module[method].call module, thing\n\n getTwoArgFunction = (module, method) ->\n (name, thing) ->\n throw Error \"module not defined in init script\" unless module?\n module[method].call module, name, thing\n\n for method in AngTangle.OneArgMethods\n @[method] = getOneArgFunction AngTangle.Module, method\n\n for method in AngTangle.TwoArgMethods\n @[method] = getTwoArgFunction AngTangle.Module, method\n\n\n #---------------------------------------------------------------------------\n module: (args...) ->\n\n unless args.length is 0\n throw Error \"module() method called twice\" if AngTangle.Module?\n\n AngTangle.Module = angular.module.apply(angular, args)\n\n return AngTangle.Module\n\n#-------------------------------------------------------------------------------\nclass AngTangle.Script\n\n #---------------------------------------------------------------------------\n constructor: (@module, @scriptName) ->\n\n getOneArgFunction = (module, method) ->\n (thing) ->\n throw Error \"module not defined in init script\" unless module?\n module[method].call module, thing\n\n getTwoArgFunction = (module, method, scriptName) ->\n (name, thing) ->\n unless thing\n thing = name\n name = scriptName\n\n throw Error \"module not defined in init script\" unless module?\n module[method].call module, name, thing\n\n for method in AngTangle.OneArgMethods\n @[method] = getOneArgFunction @module, method\n\n for method in AngTangle.TwoArgMethods\n @[method] = getTwoArgFunction @module, method, @scriptName\n\n return @\n\n #---------------------------------------------------------------------------\n module: () ->\n return @module\n\n#-------------------------------------------------------------------------------\n# Copyright 2014 Patrick Mueller\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#-------------------------------------------------------------------------------\n",

"AngTangle.config ($routeProvider, views) ->\n\n addRoute = (name, url=\"/#{name}\") ->\n $routeProvider.when url,\n template: views[\"views/#{name}\"]\n controller: name\n\n $routeProvider.otherwise redirectTo: \"/\"\n\n addRoute \"home\", \"/\"\n addRoute \"hello\"\n",
"AngTangle.controller ($scope) ->\n $scope.text =\n world: \"WORLD!!!\"\n",
"AngTangle.controller ($scope) ->\n $scope.text =\n world: \"WORLD\"\n",
"AngTangle.controller ($scope) ->\n",
"AngTangle.constant 'data', {}",
"AngTangle.constant 'views', {\n \"views/hello\": \"<p>Hello, <span ng-bind=\\\"text.world\\\"></span>\",\n \"views/home\": \"<p>Welcome to the home page!\"\n}"
"AngTangle.constant 'views', {\n \"views/hello\": \"<p>Hello, <span ng-bind=\\\"text.world\\\"></span>!!!</p>\\n<p>Lots going on here:</p>\\n<ul>\\n<li>markdown for markup</li>\\n<li>using <i>html</i> tags IN the markup</li>\\n<li>it&#39;s github-flavored, so supports tables</li>\\n</ul>\\n<table>\\n<thead>\\n<tr>\\n<th align=\\\"left\\\">col1</th>\\n<th align=\\\"right\\\">col2</th>\\n</tr>\\n</thead>\\n<tbody>\\n<tr>\\n<td align=\\\"left\\\">a</td>\\n<td align=\\\"right\\\">1.1</td>\\n</tr>\\n<tr>\\n<td align=\\\"left\\\">b</td>\\n<td align=\\\"right\\\">2.2</td>\\n</tr>\\n<tr>\\n<td align=\\\"left\\\">c</td>\\n<td align=\\\"right\\\">3.3</td>\\n</tr>\\n</tbody>\\n</table>\\n\",\n \"views/home\": \"<p>Welcome to the home page!\"\n}"
]
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc