Socket
Socket
Sign inDemoInstall

dgeni-packages

Package Overview
Dependencies
Maintainers
1
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dgeni-packages - npm Package Compare versions

Comparing version 0.9.5 to 0.9.6

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## v0.9.6 07/21/2014
* feat(api-docs): allow packageName to be specified as a tag 08:08 PM Peter Bacon Darwin 211a4cb4
## v0.9.5 07/17/2014

@@ -2,0 +7,0 @@

8

ngdoc/processors/api-docs.js

@@ -46,5 +46,7 @@ var _ = require('lodash');

if ( match ) {
var packageName = match[1].toLowerCase();
if ( packageName ) { packageName = '-' + packageName; }
doc.packageName = 'angular' + packageName;
if ( !doc.packageName ) {
var packageName = match[1].toLowerCase();
if ( packageName ) { packageName = '-' + packageName; }
doc.packageName = 'angular' + packageName;
}
doc.packageFile = doc.packageName + '.js';

@@ -51,0 +53,0 @@ }

@@ -36,2 +36,16 @@ var rewire = require('rewire');

it("should compute the packageName and packageFile if not already provided", function() {
var doc1 = { area: 'api', docType: 'module', name: 'ng' };
var doc2 = { area: 'api', docType: 'module', name: 'ngResource' };
var doc3 = { area: 'api', docType: 'module', name: 'ngMock', packageName: 'angular-mocks' };
var moduleMap = {};
processor.process([doc1,doc2, doc3], config, new PartialNames(), moduleMap);
expect(doc1.packageName).toEqual('angular');
expect(doc1.packageFile).toEqual('angular.js');
expect(doc2.packageName).toEqual('angular-resource');
expect(doc2.packageFile).toEqual('angular-resource.js');
expect(doc3.packageName).toEqual('angular-mocks');
expect(doc3.packageFile).toEqual('angular-mocks.js');
});
it("should extract the container and member from the name if it is a memberOf type", function() {

@@ -38,0 +52,0 @@ var doc = {

@@ -117,3 +117,4 @@ var path = require('canonical-path');

{ name: 'parent' },
{ name: 'packageName' }
];
{
"name": "dgeni-packages",
"version": "0.9.5",
"version": "0.9.6",
"description": "A collection of dgeni packages for generating documentation from source code",

@@ -5,0 +5,0 @@ "scripts": {

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