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

@bedrock/core

Package Overview
Dependencies
Maintainers
5
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bedrock/core - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

8

CHANGELOG.md
# `@bedrock/core` ChangeLog
## 5.0.3 - 2022-03-31
### Fixed
- Fix `index.js` dev entry point.
- Fix test coverage scripts.
## 5.0.2 - 2022-03-31

@@ -17,3 +23,3 @@

- **BREAKING**: Rename package to `@bedrock/core`.
- **BREAKING**: Use pure ESM implementation.
- **BREAKING**: Convert to module (ESM).
- **BREAKING**: Remove default export.

@@ -20,0 +26,0 @@ - **BREAKING**: Require node 14.x.

6

index.js
/*!
* Copyright (c) 2012-2018 Digital Bazaar, Inc. All rights reserved.
* Copyright (c) 2012-2022 Digital Bazaar, Inc. All rights reserved.
*/
'use strict';
import * as bedrock from './lib/index.js';
const bedrock = require('./lib/bedrock');
// run with development defaults
bedrock.start();
{
"name": "@bedrock/core",
"version": "5.0.2",
"version": "5.0.3",
"type": "module",

@@ -5,0 +5,0 @@ "description": "A core foundation for rich Web applications.",

@@ -51,12 +51,12 @@ <img src="https://digitalbazaar.com/wp-content/uploads/BedrockLogo.png">

```js
const bedrock = require('bedrock');
import * as bedrock from '@bedrock/core';
// modules
require('bedrock-express');
require('bedrock-mongodb');
require('bedrock-server');
require('bedrock-session-mongodb');
require('bedrock-validation');
require('bedrock-views');
require('bedrock-webpack');
import 'bedrock-express';
import 'bedrock-mongodb';
import 'bedrock-server';
import 'bedrock-session-mongodb';
import 'bedrock-validation';
import 'bedrock-views';
import 'bedrock-webpack';

@@ -76,6 +76,6 @@ bedrock.start();

```js
const bedrock = require('bedrock');
import * as bedrock from '@bedrock/core';
// modules
require('bedrock-express');
import 'bedrock-express';

@@ -95,8 +95,8 @@ bedrock.events.on('bedrock-express.configure.routes', function(app) {

```js
const bedrock = require('bedrock');
import * as bedrock from '@bedrock/core';
// modules
require('bedrock-express');
require('bedrock-session-mongodb');
const database = require('bedrock-mongodb');
import 'bedrock-express';
import 'bedrock-session-mongodb';
import * as database from 'bedrock-mongodb';

@@ -174,4 +174,4 @@ bedrock.events.on('bedrock-mongodb.ready', async () => {

```js
const bedrock = require('bedrock');
const http = require('http');
import * as bedrock from '@bedrock/core';
import http from 'http';

@@ -249,6 +249,6 @@ // setup default module config

```js
const bedrock = require('bedrock');
import * as bedrock from '@bedrock/core';
// load bedrock-example-server dependency
require('./bedrock-example-server');
import './bedrock-example-server.js';

@@ -267,7 +267,7 @@ // emitted to allow listeners to be attached to the example server

```js
const bedrock = require('bedrock');
import * as bedrock from '@bedrock/core';
// bedrock modules to load
require('./bedrock-example-server');
require('./bedrock-example-listener');
import './bedrock-example-server.js';
import './bedrock-example-listener.js';

@@ -304,5 +304,5 @@ // change the port to use

Bedrock is a modular system built on node.js. Node.js modules typically
communicate with each other using the CommonJS API (eg: `require` and
`module.exports`, etc.), and Bedrock modules are no different. However,
Bedrock is a modular system built on node.js. Node.js modules can
communicate with each other using the ESM API (eg: `export` and
`import`, etc.), and Bedrock modules are no different. However,
Bedrock also provides some additional low-level subsystems to help modules

@@ -313,3 +313,3 @@ coordinate. These include: `bedrock.config`, `bedrock.events`,

To create a Bedrock project, all you need to do is create a JavaScript file,
for example `project.js`, that requires `bedrock`, any other Bedrock modules
for example `project.js`, that imports `bedrock`, any other Bedrock modules
you're interested in, and that then calls `bedrock.start()`. To run your

@@ -316,0 +316,0 @@ project, run:

@@ -7,6 +7,6 @@ {

"scripts": {
"test": "node --preserve-symlinks test test",
"coverage": "cross-env NODE_ENV=test ESM_OPTIONS='{cache:false}' nyc --reporter=lcov --reporter=text-summary npm test",
"coverage-ci": "cross-env NODE_ENV=test ESM_OPTIONS='{cache:false}' nyc --reporter=lcovonly npm test",
"coverage-report": "nyc report"
"test": "node --preserve-symlinks test.js test",
"coverage": "cross-env NODE_ENV=test c8 --reporter=lcov --reporter=text-summary npm test",
"coverage-ci": "cross-env NODE_ENV=test c8 --reporter=lcovonly npm test",
"coverage-report": "c8 report"
},

@@ -18,14 +18,15 @@ "dependencies": {

"devDependencies": {
"cross-env": "^7.0.2",
"nyc": "^15.0.1"
"c8": "^7.11.0",
"cross-env": "^7.0.3"
},
"nyc": {
"c8": {
"excludeNodeModules": false,
"include": [
"node_modules/bedrock/**"
"node_modules/@bedrock/core/**"
],
"exclude": [
"node_modules/bedrock/node_modules/**"
"node_modules/@bedrock/core/node_modules/**"
]
}
}

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