9 Commits

Author SHA1 Message Date
jwetzell cc14c4c886 bump @jwetzell/osc to v1.6.0 2024-10-25 12:15:25 -05:00
jwetzell a4b29de9c9 Merge pull request #27 from jwetzell/dependabot/npm_and_yarn/types/node-22.7.7
Bump @types/node from 22.7.5 to 22.7.7
2024-10-25 12:13:41 -05:00
jwetzell 86f062a2ce fix import in decode test 2024-10-25 09:25:07 -05:00
jwetzell b7d129556a Merge pull request #29 from jwetzell/esm-and-cjs
add support for bundling both esm and cjs versions
2024-10-25 09:15:48 -05:00
jwetzell 2ee515ae5b npm run format:write 2024-10-25 09:10:52 -05:00
jwetzell 2089893a25 fix import in tests 2024-10-25 09:05:33 -05:00
jwetzell 2377599f12 add support for bundling both esm and cjs versions 2024-10-24 16:59:17 -05:00
jwetzell f18327d7b1 Create LICENSE 2024-10-22 08:35:24 -05:00
dependabot[bot] ad4efcf43d Bump @types/node from 22.7.5 to 22.7.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.7.5 to 22.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-21 17:47:28 +00:00
12 changed files with 79 additions and 23 deletions
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 Joel Wetzell
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+5 -5
View File
@@ -255,9 +255,9 @@
"peer": true
},
"node_modules/@types/node": {
"version": "22.7.5",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz",
"integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==",
"version": "22.7.7",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.7.tgz",
"integrity": "sha512-SRxCrrg9CL/y54aiMCG3edPKdprgMVGDXjA3gB8UmmBW5TcXzRUYAh8EWzTnSJFAd1rgImPELza+A3bJ+qxz8Q==",
"dev": true,
"dependencies": {
"undici-types": "~6.19.2"
@@ -3651,10 +3651,10 @@
},
"packages/osc": {
"name": "@jwetzell/osc",
"version": "1.5.0",
"version": "1.6.0",
"license": "MIT",
"devDependencies": {
"@types/node": "22.7.5",
"@types/node": "22.7.7",
"rimraf": "6.0.1",
"typescript": "5.6.3"
}
+16 -5
View File
@@ -1,12 +1,23 @@
{
"name": "@jwetzell/osc",
"version": "1.5.0",
"version": "1.6.0",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts"
}
},
"scripts": {
"prebuild": "rimraf dist",
"build": "tsc",
"build": "npm run build:cjs && npm run build:esm && npm run build:types",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:types": "tsc -p tsconfig.types.json",
"prepublishOnly": "npm run build",
"pretest": "npm run build",
"test": "node --test --experimental-test-coverage"
@@ -25,7 +36,7 @@
},
"license": "MIT",
"devDependencies": {
"@types/node": "22.7.5",
"@types/node": "22.7.7",
"rimraf": "6.0.1",
"typescript": "5.6.3"
}
+1 -1
View File
@@ -1,6 +1,6 @@
const { deepEqual, equal, throws } = require('assert');
const { describe, it } = require('node:test');
const osc = require('../dist/index');
const osc = require('../dist/cjs/index');
const goodTests = [
{
+1 -1
View File
@@ -1,6 +1,6 @@
const { deepEqual } = require('assert');
const { describe, it } = require('node:test');
const osc = require('../dist/index');
const osc = require('../dist/cjs/index');
const tests = [
{
+2 -2
View File
@@ -1,6 +1,6 @@
const { deepEqual, equal, throws } = require('assert');
const { deepEqual, equal } = require('assert');
const { describe, it } = require('node:test');
const osc = require('../dist/index');
const osc = require('../dist/cjs/index');
const tests = [
{
+1 -1
View File
@@ -1,6 +1,6 @@
const { deepEqual, throws, equal } = require('assert');
const { describe, it } = require('node:test');
const osc = require('../dist/index');
const osc = require('../dist/cjs/index');
const goodTests = [
{
+1 -1
View File
@@ -1,6 +1,6 @@
const { deepEqual, throws } = require('assert');
const { describe, it } = require('node:test');
const osc = require('../dist/index');
const osc = require('../dist/cjs/index');
const goodTests = [
{
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"declaration": false,
"outDir": "./dist/cjs"
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"declaration": false,
"outDir": "./dist/esm"
}
}
+7 -7
View File
@@ -1,12 +1,12 @@
{
"compilerOptions": {
"moduleResolution": "Node",
"lib": ["ESNext"],
"target": "ESNext",
"esModuleInterop": true,
"module": "commonjs",
"target": "ES2020",
"declaration": true,
"rootDir": "./src",
"strict": true,
"outDir": "dist"
"isolatedModules": true,
"rootDir": "src/",
"strict": true
},
"exclude": ["node_modules", "dist", "examples"]
"include": ["src/"]
}
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"emitDeclarationOnly": true,
"declaration": true,
"outDir": "./dist/types"
}
}